Class NURBSCurveOnSurface
See Also: Class NURBSCVCurve.
class NURBSCurveOnSurface : public NURBSCVCurve
Description:
This class is available in release 2.5 and later only.
This class provides access to the CV curve on surface parameters. These curves can be used for trimming the surface they lie on.
Friend Classes:
friend class NURBSSet
Methods:
Prototype:
NURBSCurveOnSurface(void);
Remarks:
Constructor. The data members are initialized as follows:
mType = kNCurveOnSurface;
mpObject = NULL;
mpNSet = NULL;
mParentId = 0;
mParentIndex = -1;
mTrim = FALSE;
mFlipTrim = FALSE;
Prototype:
virtual ~NURBSCurveOnSurface(void);
Remarks:
Destructor.
Prototype:
void SetParent(int index);
Remarks:
Sets the index in the NURBSSet of the parent surface.
Parameters:
int index
The index into the NURBSSet of the parent surface.
Prototype:
void SetParentId(NURBSId id);
Remarks:
Sets the NURBSId of the parent.
Parameters:
NURBSId id
The id to set.
Prototype:
int GetParent();
Remarks:
Returns the index in the NURBSSet of the specified parent object.
Prototype:
NURBSId GetParentId();
Remarks:
Returns the NURBSId of the parent. Note that a NURBSId won't be valid until the object has been instantiated in the scene.
Prototype:
BOOL GetTrim();
Remarks:
Returns the state of the trim surface toggle.
Prototype:
void SetTrim(BOOL trim);
Remarks:
Sets the state of the trim surface toggle.
Parameters:
BOOL trim
TRUE to trim the surface at the curve; FALSE to not trim.
Prototype:
BOOL GetFlipTrim();
Remarks:
Returns the state of the trim flip toggle.
Prototype:
void SetFlipTrim(BOOL flip);
Remarks:
Sets the state of the trim flip toggle. This controls which portion of the surface is trimmed.
Parameters:
BOOL flip
TRUE for on; FALSE for off.
Prototype:
NURBSCurveOnSurface & operator=(const NURBSCurveOnSurface& curve);
Remarks:
Assignment operator.
Parameters:
const NURBSCurveOnSurface& curve
The curve to assign.