Observers

Callback registration functions for observed node events.

Functions


void VRAddCallbackNodeChildAdded(const char * metaName,
NodeChildAddedFunc callback,
void * userData
)

Registers a function to be called whenever a node has a child added to it.

Parameters
metaName

the name of the metanode (type of node) to observe

callback

the function to call on creation

userData

arbitrary data to pass to the callback


void VRAddCallbackNodeChildRemoved(const char * metaName,
NodeChildRemovedFunc callback,
void * userData
)

Registers a function to be called whenever a node has a child removed from it.

Parameters
metaName

the name of the metanode (type of node) to observe

callback

the function to call on creation

userData

arbitrary data to pass to the callback


void VRAddCallbackNodeCreation(const char * metaName,
NodeCreatedFunc callback,
void * userData
)

Registers a function to be called whenever a node is created.

Parameters
metaName

the name of the metanode (type of node) to observe

callback

the function to call on creation

userData

arbitrary data to pass to the callback


void VRAddCallbackNodeDestruction(const char * metaName,
NodeDestroyingFunc callback,
void * userData
)

Registers a function to be called whenever a node is deleted.

Parameters
metaName

the name of the metanode (type of node) to observe

callback

the function to call on deletion

userData

arbitrary data to pass to the callback


void VRAddCallbackNodeParentChanged(const char * metaName,
NodeParentChangedFunc callback,
void * userData
)

Registers a function to be called whenever a node is moved to a new parent.

Parameters
metaName

the name of the metanode (type of node) to observe

callback

the function to call on creation

userData

arbitrary data to pass to the callback


void VRAddCallbackNodeRenamed(const char * metaName,
NodeRenamedFunc callback,
void * userData
)

Registers a function to be called whenever a node is renamed.

Parameters
metaName

the name of the metanode (type of node) to observe

callback

the function to call on creation

userData

arbitrary data to pass to the callback


void VRAddCallbackNodeValuesChanged(const char * metaName,
NodeValuesChangedFunc callback,
void * userData
)

Registers a function to be called whenever a node is modified.

Parameters
metaName

the name of the metanode (type of node) to observe

callback

the function to call on creation

userData

arbitrary data to pass to the callback


void VRAddCallbackUpdate(UpdateFunc callback,
void * userData
)

Registers a function to be called whenever VRTree updates (either by the host application or by a call to VRUpdate)

Parameters
metaName

the name of the metanode (type of node) to observe

callback

the function to call on creation

userData

arbitrary data to pass to the callback


void VRRemoveCallbackNodeChildAdded(const char * metaName,
NodeChildAddedFunc callback
)

Unregisters a function called whenever a node has children added to it.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove


void VRRemoveCallbackNodeChildAddedEx(const char * metaName,
NodeChildAddedFunc callback,
void * userData
)

Unregisters a function called whenever a node has children added to it.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove

userData

arbitrary data to passed to the callback


void VRRemoveCallbackNodeChildRemoved(const char * metaName,
NodeChildRemovedFunc callback
)

Unregisters a function called whenever a node has children removed from it.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove


void VRRemoveCallbackNodeChildRemovedEx(const char * metaName,
NodeChildRemovedFunc callback,
void * userData
)

Unregisters a function called whenever a node has children removed from it.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove

userData

arbitrary data to passed to the callback


void VRRemoveCallbackNodeCreation(const char * metaName,
NodeCreatedFunc callback
)

Unregisters a function called whenever a node is created.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove


void VRRemoveCallbackNodeCreationEx(const char * metaName,
NodeCreatedFunc callback,
void * userData
)

Unregisters a function called whenever a node is created.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove

userData

arbitrary data to passed to the callback


void VRRemoveCallbackNodeDestruction(const char * metaName,
NodeDestroyingFunc callback
)

Unregisters a function called whenever a node is destroyed.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove


void VRRemoveCallbackNodeDestructionEx(const char * metaName,
NodeDestroyingFunc callback,
void * userData
)

Unregisters a function called whenever a node is destroyed.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove

userData

arbitrary data to passed to the callback


void VRRemoveCallbackNodeParentChanged(const char * metaName,
NodeParentChangedFunc callback
)

Unregisters a function called whenever a node is moved somewhere else in the tree.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove


void VRRemoveCallbackNodeParentChangedEx(const char * metaName,
NodeParentChangedFunc callback,
void * userData
)

Unregisters a function called whenever a node is moved somewhere else in the tree.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove

userData

arbitrary data to passed to the callback


void VRRemoveCallbackNodeRenamed(const char * metaName,
NodeRenamedFunc callback
)

Unregisters a function called whenever a node is renamed.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove


void VRRemoveCallbackNodeRenamedEx(const char * metaName,
NodeRenamedFunc callback,
void * userData
)

Unregisters a function called whenever a node is renamed.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove

userData

arbitrary data to passed to the callback


void VRRemoveCallbackNodeValuesChanged(const char * metaName,
NodeValuesChangedFunc callback
)

Unregisters a function called whenever a node is modified.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove


void VRRemoveCallbackNodeValuesChangedEx(const char * metaName,
NodeValuesChangedFunc callback,
void * userData
)

Unregisters a function called whenever a node is modified.

Parameters
metaName

the name of the metanode (type of node) to stop observing

callback

the previously added function to remove

userData

arbitrary data to passed to the callback


Unregisters an update function.

Parameters
callback

the previously added function to remove


void VRRemoveCallbackUpdateEx(UpdateFunc callback,
void * userData
)

Unregisters an update function.

Parameters
callback

the previously added function to remove

userData

arbitrary data to passed to the callback

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtree_cppCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API