Class ISurfPosition

3DS Max Plug-In SDK

Class ISurfPosition

See Also: Class Control, Class INode.

class ISurfPosition : public Control

Description:

This class is available in release 2.0 and later only.

This class provides access to the surface position controller's parameters.

The following values may be used to access the surface controller's references.

SURFCONT_U_REF

SURFCONT_V_REF

SURFCONT_SURFOBJ_REF

All methods of this class are implemented by the system.

Methods:

Prototype:

virtual void SetSurface(INode *node)=0;

Remarks:

Sets the node that this controller uses as the surface object.

Parameters:

INode *node

Points to the node to set.

Prototype:

virtual int GetAlign()=0;

Remarks:

Returns the alignment setting.

Return Value:

One of the following values:

0: No Alignment.

1: Align to U.

2: Align to V.

Prototype:

virtual void SetAlign(int a)=0;

Remarks:

Sets the alignment setting.

Parameters:

int a

One of the following values:

0: No Alignment.

1: Align to U.

2: Align to V.

Prototype:

virtual BOOL GetFlip()=0;

Remarks:

Returns the flip setting. TRUE if on; FALSE if off.

Prototype:

virtual void SetFlip(BOOL f)=0;

Remarks:

Sets the flip setting.

Parameters:

BOOL f

TRUE for on; FALSE for off.