#include <nurbs.h>
Public Member Functions | |
int | n () const |
NurbsCurveArray (NurbsCurve< T, N > *Ca, int size) | |
virtual NurbsCurve< T, N > & | operator[] (int i) |
virtual NurbsCurve< T, N > | operator[] (int i) const |
virtual void | resize (int s) |
void | init (NurbsCurve< T, N > *Ca, int size) |
int | read (const char *filename) |
int | write (const char *filename) |
int | writePS (const char *, int cp=0, T magFact=T(-1), T dash=T(5), bool bOpen=true) const |
int | writePSp (const char *, const Vector< Point_nD< T, N > > &, const Vector< Point_nD< T, N > > &, int cp=0, T magFact=0.0, T dash=5.0, bool bOpen=true) const |
Protected Member Functions | |
NurbsCurve< T, N > & | curve (int i) |
NurbsCurve< T, N > | curve (int i) const |
Protected Attributes | |
int | sze |
int | rsize |
NurbsCurve< T, N > ** | C |
This class represents an array of NurbsCurve.
PLib::NurbsCurveArray< T, N >::NurbsCurveArray | ( | NurbsCurve< T, N > * | Ca, | |
int | s | |||
) |
Constructor from a pointer to an array of curves.
void PLib::NurbsCurveArray< T, N >::resize | ( | int | size | ) | [virtual] |
void PLib::NurbsCurveArray< T, N >::init | ( | NurbsCurve< T, N > * | ca, | |
int | size | |||
) |
Initialize the array of curves with a vector of nurbs curve.
ca | a pointer to a vector of NURBS curve | |
size | the size of the array |
int PLib::NurbsCurveArray< T, N >::read | ( | const char * | filename | ) |
Reads a NurbsCurveArray from a file.
filename | the filename to read the curve array from |
int PLib::NurbsCurveArray< T, N >::write | ( | const char * | filename | ) |
Writes a NurbsCurveArray from a file.
filename | --> the filename to read the curve array from |
int PLib::NurbsCurveArray< T, N >::writePS | ( | const char * | filename, | |
int | cp = 0 , |
|||
T | magFact = T(-1) , |
|||
T | dash = T(5) , |
|||
bool | bOpen = true | |||
) | const |
Writes a post-script file representing an array of curves.
filename | the file to write the postscript file to | |
cp | a flag indicating if the control points should be drawn, 0 = no and 1 = yes | |
magFact | a magnification factor, the 2D point of the control points will be magnified by this value. The size is measured in postscript points. If the magFact is set to a value smaller or equal to 0, than the program will try to guess a magnification factor such that the curve is large enough to fill the page. | |
dash | the size of the dash in postscript points . A size smaller or equal to 0 indicates that the line joining the control points is plain. |
int PLib::NurbsCurveArray< T, N >::writePSp | ( | const char * | filename, | |
const Vector< Point_nD< T, N > > & | points, | |||
const Vector< Point_nD< T, N > > & | vectors, | |||
int | cp = 0 , |
|||
T | magFact = 0.0 , |
|||
T | dash = 5.0 , |
|||
bool | bOpen = true | |||
) | const |
Writes a post-script file representing the array of curves.
Writes the array of curves in the postscript format to a file, it also draws the points defined in $points$ with their associated vectors if $vector$ is used.
filename | the file to write the postscript file to | |
points | draws these additional points as empty circles | |
vectors | specify a vector associated with the points (this can be an empty vector) | |
cp | a flag indicating if the control points should be drawn, 0 = no and 1 = yes | |
magFact | a magnification factor, the 2D point of the control points will be magnified by this value. The size is measured in postscript points. If the magFact is set to a value smaller or equal to 0, than the program will try to guess a magnification factor such that the curve is large enough to fill the page. | |
dash | the size of the dash in postscript points . A size smaller or equal to 0 indicates that the line joining the control points is plain. |