|
How use those classes:
- INodeEventCallback
- ISceneEventCallback
To get the callback if for example new geometry is created?
|
|
|
|
I think you have to create a subclass of INodeEventCallback and override
virtual void Added(NodeKeyTab &nodes)
. Then register this class using the RegisterCallback function of ISceneEventManager.
Greetings,
Satara
|
|
|
|
Hi,
thanks for answering..
Yes, I extended the INodeCallback class by overwriting the Added function,
but now I can’t figure out how to register it,
this call is not working:
ISceneEventManager::RegisterCallback( myNodeCallback.GetINodeEventCallback(), false, 0, false );
( illegal call of non-static member function )
If I would created the ISceneEventManager object I also should register it somewhere,
cant figure it out…
Maybe you have some ideas?
|
|
|
|
Ok, I solved it…
I used:
GetISceneEventManager() to get the handle, and then just:
GetISceneEventManager()->RegisterCallback( my_NodeEventCallback.GetINodeEventCallback(), false, 0, false );
cheers…
|
|
|