INodeDisplayControl Class Reference
 
 
 
INodeDisplayControl Class Reference

#include <nodedisp.h>

Inheritance diagram for INodeDisplayControl:
InterfaceServer MaxHeapOperators

Class Description

See also:
Class InterfaceServer, Class NodeDisplayCallback, Class INode.

Description:
This class is an interface that is used to register the node display callback. To get a pointer to this interface the developer should use the following macro:

#define GetNodeDisplayControl(i) ((INodeDisplayControl*)i->GetInterface(I_NODEDISPLAYCONTROL))

Public Member Functions

virtual void  RegisterNodeDisplayCallback (NodeDisplayCallback *cb)=0
virtual void  UnRegisterNodeDisplayCallback (NodeDisplayCallback *cb)=0
virtual bool  SetNodeCallback (NodeDisplayCallback *hook)=0
virtual NodeDisplayCallback GetNodeCallback ()=0
virtual void  InvalidateNodeDisplay ()=0

Member Function Documentation

virtual void RegisterNodeDisplayCallback ( NodeDisplayCallback cb ) [pure virtual]
Remarks:
Register a node display callback which can be used to control the display of nodes in the scene.
Parameters:
NodeDisplayCallback *cb

Points to the callback object.
virtual void UnRegisterNodeDisplayCallback ( NodeDisplayCallback cb ) [pure virtual]
Remarks:
Un-registers the node display callback.
Parameters:
NodeDisplayCallback *cb

Points to the callback object.
virtual bool SetNodeCallback ( NodeDisplayCallback hook ) [pure virtual]
Remarks:
Sets the current current callback. The callback must be previously registered.
Parameters:
NodeDisplayCallback* hook

Points to the node display callback to set.
Returns:
Returns true if the callback was set; otherwise false.
virtual NodeDisplayCallback* GetNodeCallback ( ) [pure virtual]
Remarks:
Returns a pointer to the current current callback. The callback must be previously registered.
virtual void InvalidateNodeDisplay ( ) [pure virtual]
Remarks:
Viewport refresh routine. Tthis function only invalidates the display, it's up to the callback to select the correct redraw technique.