Class RendPickProc

3DS Max Plug-In SDK

Class RendPickProc

See Also: Class IRendParams.

class RendPickProc

Description:

An instance of this class is passed to IRendParams::SetPickMode(). This is a callback that gets called as the user tries to pick objects in the scene.

Methods:

Prototype:

virtual BOOL Pick(INode *node)=0;

Remarks:

Implemented by the Plug-In.

Called when the user picks something.

Parameters:

INode *node

The node that was selected.

Return Value:

TRUE to end the pick mode; FALSE to continue.

Prototype:

virtual BOOL Filter(INode *node)=0;

Remarks:

Implemented by the Plug-In.

Return TRUE if this is an acceptable hit; otherwise FALSE.

Parameters:

INode *node

The node that was selected.

Prototype:

virtual void EnterMode()

Remarks:

Implemented by the Plug-In.

This method is called as the mode is entered.

Default Implementation:

{}

Prototype:

virtual void ExitMode()

Remarks:

Implemented by the Plug-In.

This method is called when the mode is exited.

Default Implementation:

{}

Prototype:

virtual HCURSOR GetDefCursor()

Remarks:

Implemented by the Plug-In.

Returns the handle of the default cursor. This is the cursor to use when the user is NOT over a pickable object.

Default Implementation:

{return NULL;}

Prototype:

virtual HCURSOR GetHitCursor()

Remarks:

Implemented by the Plug-In.

Returns the handle of the hit cursor. This is the cursor to use when the user IS over a pickable object.

Default Implementation:

{return NULL;}

Prototype:

virtual BOOL AllowMultiSelect();

Remarks:

This method is available in release 2.0 and later only.

Implement this method to return TRUE to allow the user to pick more than one thing. In that case the Pick() method may be called more than once.

Return Value:

TRUE to allow multiple picks; otherwise FALSE.

Default Implementation:

{return FALSE;}