Class SubObjAxisCallback

3DS Max Plug-In SDK

Class SubObjAxisCallback

See Also: Class BaseObject, Class Control.

class SubObjAxisCallback

Description:

The callback is used by the two methods GetSubObjectCenters() and GetSubObjectTMs() found in the classes BaseObject and Control.

Methods:

Prototype:

virtual void Center(Point3 c,int id)=0;

Remarks:

Implemented by the System.

This method is called to specify the individual coordinate system center for the axes whose id is passed.

Parameters:

Point3 c

The center point.

int id

The id of the axis.

Prototype:

virtual void TM(Matrix3 tm,int id)=0;

Remarks:

Implemented by the System.

This method is called to specify the individual coordinate system transformation for the axes whose id is passed.

Parameters:

Matrix3 tm

The transformation matrix.

int id

The id of the axis.

Prototype:

virtual int Type()=0;

Remarks:

Implemented by the System.

The user has three options for center of the coordinate system, center of the selection set, or pivot. For center of the coordinate system the system does not need to call GetSubObjCenters(). The plug-in may call this method to determine which center option it is returning the Centers and TMs for.

Return Value:

One of the following values:

SO_CENTER_SELECTION

SO_CENTER_PIVOT