Class INodeTransformed

3DS Max Plug-In SDK

Class INodeTransformed

See Also: Class INode, Modifier Stack Branching

Description:

This class provides a layer that will add in a transformation to the node's objectTM. Most methods pass through to the INode, except for the objectTM methods which pre-multiply in the given matrix. The methods of this class are the same as INode. See Class INode for details. Specifically see the methods related to INodeTransformed in INode - INodeTransformed methods. All methods of this class are implemented by the system.

Data Members:

public:

INode *node;

The original INode pointer.

Matrix3 tm;

The additional transformation.

BOOL deleteMe;

If set to FALSE this INodeTransformed will not get deleted. This may be used if the object is not allocated dynamically. If you create an INodeTransformed on the stack you'll want to set deleteMe to FALSE.

Methods:

Prototype:

void DisposeTemporary();

Remarks:

Deletes this INodeTransformed.

Prototype:

INode *GetActualINode()

Remarks:

Returns the actual INode pointer of this INodeTransformed.

These functions are not part of this class but are available for use:

INodeTransformed can be allocated on the stack, but if you need to create one dynamically, use these methods to create and delete them.

Prototype:

INodeTransformed *CreateINodeTransformed(INode *n, Matrix3 tm,BOOL dm=TRUE);

Remarks:

Creates an INodeTransformed on the heap.

Parameters:

INode *n

The original INode pointer.

Matrix3 tm

The additional transformation matrix.

BOOL dm=TRUE

If TRUE this item will be deleted; otherwise it is left alone.

Return Value:

A pointer to the INodeTransformed created.

Prototype:

void DeleteINodeTransformed(INodeTransformed *n);

Remarks:

Deletes the INodeTransformed passed.

Parameters:

INodeTransformed *n

The INodeTransformed to delete.