Class NURBSXFormCurve

3DS Max Plug-In SDK

Class NURBSXFormCurve

See Also: Class NURBSCurve.

class NURBSXFormCurve : public NURBSCurve

Description:

This class is available in release 2.0 and later only.

This class defines a dependent transform (xform) curve. A transform curve is a copy of the original curve with a different position, rotation, or scale.

All methods of this class are implemented by the system.

Friend Classes:

friend class NURBSSet

Methods:

protected:

Prototype:

void Clean(NURBSIdTab ids);

Remarks:

This method is available in release 3.0 and later only.

This methods breaks the relation between this NURBSObject and a NURBSSet.

Parameters:

NURBSIdTab ids

A table with the IDs of each object in the NURBSSet.

public:

Prototype:

NURBSXFormCurve();

Remarks:

Constructor. The data members are initialized as follows:

 mType = kNXFormCurve;

 mpObject = NULL;

 mpNSet = NULL;

 mParentId = 0;

 mParentIndex = -1;

 mXForm.IdentityMatrix();

Prototype:

~NURBSXFormCurve();

Remarks:

Destructor.

Prototype:

void SetParent(int index);

Remarks:

Sets the index in the NURBSSet of the specified parent object.

Parameters:

int index

The index into the NURBSSet of the parent curve.

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 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:

void SetXForm(TimeValue t, Matrix3& mat);

Remarks:

Sets the transformation used to move/rotate/scale the curve from the original.

Parameters:

TimeValue t

The time to set the transformation.

Matrix3& mat

The transformation matrix to set.

Prototype:

Matrix3& GetXForm(TimeValue t);

Remarks:

Returns the transformation used to move/rotate/scale the curve from the original.

Parameters:

TimeValue t

The time to get the transformation.

Operators:

Prototype:

NURBSXFormCurve & operator=(const NURBSXFormCurve& curve);

Remarks:

Assignment operator.

Parameters:

const NURBSXFormCurve& curve

The curve to assign.