Class INodeDisplayControl
See Also: Class InterfaceServer, Class NodeDisplayCallback, Class INode.
class INodeDisplayControl : public InterfaceServer
Description:
This class is available in release 4.0 and later only.
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))
Methods:
public:
Prototype:
virtual void RegisterNodeDisplayCallback(NodeDisplayCallback *cb)=0;
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.
Prototype:
virtual void UnRegisterNodeDisplayCallback(NodeDisplayCallback *cb)=0;
Remarks:
Un-registers the node display callback.
Parameters:
NodeDisplayCallback *cb
Points to the callback object.
Prototype:
virtual bool SetNodeCallback(NodeDisplayCallback* hook)=0;
Remarks:
Sets the current current callback. The callback must be previously registered.
Parameters:
NodeDisplayCallback* hook
Points to the node display callback to set.
Return Value:
Returns true if the callback was set; otherwise false.
Prototype:
virtual NodeDisplayCallback* GetNodeCallback()=0;
Remarks:
Returns a pointer to the current current callback. The callback must be previously registered.
Prototype:
virtual void InvalidateNodeDisplay()=0;
Remarks:
Viewport refresh routine. Tthis function only invalidates the display, it's up to the callback to select the correct redraw technique.