#include <FCDGeometrySpline.h>
Inheritance diagram for FCDGeometrySpline:
Public Member Functions | |
FCDGeometrySpline (FCDocument *document, FCDGeometry *parent) | |
Constructor: do not use directly. | |
virtual | ~FCDGeometrySpline () |
Destructor: do not use directly. | |
FCDGeometry * | GetParent () |
Retrieve the parent of this geometric spline: the geometry entity. | |
const FCDGeometry * | GetParent () const |
See above. | |
FCDCVs & | GetCVs () |
Retrieves the list of control points for the spline. | |
const FCDCVs & | GetCVs () const |
See above. | |
size_t | GetCVCount () const |
Retrieves the number of control points for the spline. | |
FMVector3 * | GetCV (size_t index) |
Retrieves a specific control point of the spline. | |
const FMVector3 * | GetCV (size_t index) const |
See above. | |
FCDKnots & | GetKnots () |
Retrieves the list of knots for the spline. | |
const FCDKnots & | GetKnots () const |
See above. | |
size_t | GetKnotCount () const |
Retrieves the number of knots for the spline. | |
double | GetKnot (size_t index) const |
Retrieves a specific knot of the spline. | |
bool | IsClosed () const |
Retrieves whether this spline is closed. | |
bool | IsOpen () const |
Retrieves whether this spline is open. | |
void | SetCVs (const FCDCVs &_cvs) |
Overwrites the list of control points for this spline with a new ordered list of control points. | |
void | SetKnots (const FCDKnots &_knots) |
Overwrites the list of knots for this spline with a new ordered list of knots. | |
void | SetClosed (bool _isClosed) |
Sets the spline closed state. | |
FUStatus | LoadFromXML (xmlNode *splineNode) |
[INTERNAL] Reads in the <spline> element from a given COLLADA XML tree node. | |
xmlNode * | WriteToXML (xmlNode *parentNode) const |
[INTERNAL] Writes out the <spline> element to the given COLLADA XML tree node. |
A COLLADA spline contains a list of control points (CVs) that define an ordered list of 3D coordinates that influence the spline. The spline also contains a matching list of knots: there should be as many control points as there are knots.
A COLLADA spline may be closed or open. If the spline is closed, then the first control point should be re-used when evaluating the last control point: the result should be a continuous curve, while an open spline will result in a discontinuity at each end.
|
Constructor: do not use directly. Use the FCDGeometry::CreateMesh function instead.
|
|
Destructor: do not use directly. All geometric splines are released with the geometry that they belong to. |
|
Retrieves a specific control point of the spline.
|
|
Retrieves the number of control points for the spline.
|
|
Retrieves the list of control points for the spline.
|
|
Retrieves a specific knot of the spline.
|
|
Retrieves the number of knots for the spline.
|
|
Retrieves the list of knots for the spline.
|
|
Retrieve the parent of this geometric spline: the geometry entity.
|
|
Retrieves whether this spline is closed.
|
|
Retrieves whether this spline is open.
|
|
[INTERNAL] Reads in the <spline> element from a given COLLADA XML tree node.
|
|
Sets the spline closed state.
|
|
Overwrites the list of control points for this spline with a new ordered list of control points.
|
|
Overwrites the list of knots for this spline with a new ordered list of knots.
|
|
[INTERNAL] Writes out the <spline> element to the given COLLADA XML tree node.
|