SoSceneManagerRenderCallback Property |
The render callback provides a mechanism for automatically redrawing the scene in response to changes in the scene graph.
Namespace: OIV.Inventor
The scene manager employs a sensor to detect scene graph changes. When the sensor is triggered, the render callback registered here is invoked. If the callback is set to NULL (the default), auto-redraw is turned off.
If the application is not using an Open Inventor render area or viewer, the callback should make sure that an OpenGL render context is current, then call the scene manager OIV.Inventor.SoSceneManager.Render() method. See the OIV.Inventor.SoSceneManager.Render() method for more information.
If the application is using an Open Inventor render area or viewer, then the callback should call OIV.Inventor.SoSceneManager.Render() method on the render area or viewer object.
The callback should not modify any nodes in the scene graph before or after calling the OIV.Inventor.SoSceneManager.Render() method. The modification will be detected by the scene manager, which will schedule another call to the render callback, resulting in continuous calls to the render callback. If necessary the callback can temporarily disable notification by calling enableNotify() on the node that will be modified.