Public Member Functions

RendPickProc Class Reference

Search for all occurrences

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

See also:
Class IRendParams.

#include <render.h>

Inheritance diagram for RendPickProc:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~RendPickProc ()
  Destructor.
virtual BOOL  Pick (INode *node)=0
  Called when the user picks something.
virtual BOOL  Filter (INode *node)=0
  Return TRUE if this is an acceptable hit; otherwise FALSE.
virtual void  EnterMode ()
  This method is called as the mode is entered.
virtual void  ExitMode ()
  This method is called when the mode is exited.
virtual HCURSOR  GetDefCursor ()
  Returns the handle of the default cursor.
virtual HCURSOR  GetHitCursor ()
  Returns the handle of the hit cursor.
virtual BOOL  AllowMultiSelect ()

Constructor & Destructor Documentation

virtual ~RendPickProc ( ) [inline, virtual]

Destructor.

{ }

Member Function Documentation

virtual BOOL Pick ( INode node ) [pure virtual]

Called when the user picks something.

Parameters:
INode *node

The node that was selected.
Returns:
TRUE to end the pick mode; FALSE to continue.
virtual BOOL Filter ( INode node ) [pure virtual]

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

Parameters:
INode *node

The node that was selected.
virtual void EnterMode ( ) [inline, virtual]

This method is called as the mode is entered.

Default Implementation:
{}
{}
virtual void ExitMode ( ) [inline, virtual]

This method is called when the mode is exited.

Default Implementation:
{}
{}
virtual HCURSOR GetDefCursor ( ) [inline, virtual]

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;}
{return NULL;}
virtual HCURSOR GetHitCursor ( ) [inline, virtual]

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;}
{return NULL;}
virtual BOOL AllowMultiSelect ( ) [inline, virtual]
Remarks:
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.
Returns:
TRUE to allow multiple picks; otherwise FALSE.
Default Implementation:
{return FALSE;}
{return FALSE;}

RendPickProc RendPickProc RendPickProc RendPickProc RendPickProc RendPickProc RendPickProc RendPickProc RendPickProc RendPickProc
RendPickProc RendPickProc RendPickProc RendPickProc RendPickProc RendPickProc RendPickProc RendPickProc RendPickProc RendPickProc