Class NURBSXFormSurface

3DS Max Plug-In SDK

Class NURBSXFormSurface

See Also: Class NURBSSurface.

class NURBSXFormSurface : public NURBSSurface

Description:

This class is available in release 2.0 and later only.

This class defines a dependent transform (xform) surface. A transform surface is a copy of the original surface with a different position, rotation, or scale. Methods are available to get/set the indices of the parent surface in the NURBSSet and the parent Ids and to specify/retrieve the transformation used on the surface.

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:

NURBSXFormSurface();

Remarks:

Constructor. The data members are initialized as follows:

 mType = kNXFormSurface;

 mpObject = NULL;

 mpNSet = NULL;

 mParentId = 0;

 mParentIndex = -1;

 mXForm.IdentityMatrix();

Prototype:

virtual ~NURBSXFormSurface();

Remarks:

Destructor.

Prototype:

void SetParent(int index);

Remarks:

Sets the index in the NURBSSet of the parent object.

Parameters:

int index

The index in the NURBSSet of the parent object.

Prototype:

void SetParentId(NURBSId id);

Remarks:

Set the NURBSId of the parent object.

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 object.

Prototype:

void SetXForm(TimeValue t, Matrix3& mat);

Remarks:

Sets the transformation from the parent surface.

Parameters:

TimeValue t

The time at which to set the transformation.

Matrix3& mat

The transformation to set.

Prototype:

Matrix3& GetXForm(TimeValue t);

Remarks:

Returns the transformation from the parent surface.

Parameters:

TimeValue t

The time at which the transformation is returned.

Operators:

Prototype:

NURBSXFormSurface & operator=(const NURBSXFormSurface& surf);

Remarks:

Assignment operator.

Parameters:

const NURBSXFormSurface& surf

The surface to assign.