#include <AlCurveNode.h>
class AlCurveNode : public AlDagNode
AlCurveNode();
virtual ~AlCurveNode();
virtual AlObject* copyWrapper() const;
statusCode create( AlCurve* );
virtual AlObjectType type() const;
virtual AlCurveNode* asCurveNodePtr();
AlCurve* curve() const;
AlCurve* curve(AlTM&) const;
AlCurveNodeJoinErrors join(AlCurveNode*);
int curvePrecision() const;
statusCode setCurvePrecision( int );
// obsolete
statusCode getCurvePrecision( int& ) const;
There are two ways to delete an AlCurveNode. If the AlCurveNode deleteObject() method is called, then the node's AlCurve is also deleted. If the AlCurve::deleteObject() method is called, then its associated AlCurveNode is also deleted.
Summary
AlCurveNode::AlCurveNode()
Description
Constructs an AlCurveNode wrapper object. AlCurveNode::~AlCurveNode()
Description
Deletes an AlCurveNode wrapper object. AlObject* AlCurveNode::copyWrapper() const
Description
Returns an exact duplicate of this AlCurveNode wrapper. statusCode AlCurveNode::create( AlCurve *newCurve )
Description
This method allocates the dag node for this object and attaches it to the given AlCurve. This method should only be called once for any AlCurve. It is an error to call this method twice or if the object has been read in from a wire file. Arguments
< newCurve - the curve to create this curve node from. Returns Codes
sSuccess - if everything was successful AlObjectType AlCurveNode::type() const
Description
Returns the class identifier kCurveNodeType. AlCurveNode* AlCurveNode::asCurveNodePtr()
Description
This virtual function returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class. AlCurve* AlCurveNode::curve() const
Description
Returns a pointer to the curve data structure that can be used to access the geometry of the curve. AlCurve* AlCurveNode::curve(AlTM& tm) const
Description
Returns a pointer to the curve data structure that can be used to access the geometry of the curve. The AlTM will be updated with the curveNode's TM if a curve exists. Arguments
> tm - the transformation matrix to be updated with the curveNode's TM AlCurveNodeJoinErrors AlCurveNode::join(AlCurveNode* curveNode)
Description
Joins the passed-in curveNode's curve to the end of this curve if the end is coincident with the beginning of the of the curveNode's curve. This is most useful when using curves with attributes. Arguments
< curveNode - A curve that will be added to the end of this curve. Return code
kJoinSuccess - All ok. Join succeeded. statusCode AlCurveNode::getCurvePrecision( int& precision ) const
Description
obsolete - use AlCurveNode::curvePrecision() int AlCurveNode::curvePrecision() const
Description
Obtains the curve precision for the curve. This method returns -1 if the curve node is invalid. statusCode AlCurveNode::setCurvePrecision( int precision )
Description
Sets the curve precision for the curve. Arguments
< precision - The new curve precision (range is 1-129). Return code
sSuccess - All ok.