#include <Inventor/SoSceneManager.h>
Public Methods | |
SoSceneManager (void) | |
virtual | ~SoSceneManager () |
virtual void | render (const SbBool clearwindow=TRUE, const SbBool clearzbuffer=TRUE) |
virtual SbBool | processEvent (const SoEvent *const event) |
void | reinitialize (void) |
void | scheduleRedraw (void) |
virtual void | setSceneGraph (SoNode *const sceneroot) |
virtual SoNode * | getSceneGraph (void) const |
void | setWindowSize (const SbVec2s &newsize) |
const SbVec2s & | getWindowSize (void) const |
void | setSize (const SbVec2s &newsize) |
const SbVec2s & | getSize (void) const |
void | setOrigin (const SbVec2s &newOrigin) |
const SbVec2s & | getOrigin (void) const |
void | setViewportRegion (const SbViewportRegion &newRegion) |
const SbViewportRegion & | getViewportRegion (void) const |
void | setBackgroundColor (const SbColor &color) |
const SbColor & | getBackgroundColor (void) const |
void | setBackgroundIndex (const int index) |
int | getBackgroundIndex (void) const |
void | setRGBMode (const SbBool onOrOff) |
SbBool | isRGBMode (void) const |
virtual void | activate (void) |
virtual void | deactivate (void) |
void | setRenderCallback (SoSceneManagerRenderCB *f, void *const userData=NULL) |
SbBool | isAutoRedraw (void) const |
void | setRedrawPriority (const uint32_t priority) |
uint32_t | getRedrawPriority (void) const |
void | setAntialiasing (const SbBool smoothing, const int numPasses) |
void | getAntialiasing (SbBool &smoothing, int &numPasses) const |
void | setGLRenderAction (SoGLRenderAction *const action) |
SoGLRenderAction * | getGLRenderAction (void) const |
void | setHandleEventAction (SoHandleEventAction *hea) |
SoHandleEventAction * | getHandleEventAction (void) const |
Static Public Methods | |
uint32_t | getDefaultRedrawPriority (void) |
void | enableRealTimeUpdate (const SbBool flag) |
SbBool | isRealTimeUpdateEnabled (void) |
Protected Methods | |
int | isActive (void) const |
void | redraw (void) |
The renderarea class from the GUI toolkit you are using uses this class as the interface against the scene graph. Event handling and providing "hooks" to do rendering are the main functions of the class.
A Coin library instance within an application will typically contain a single SoSceneManager object. The pointer for this object is stored in the GUI renderarea class.
|
Constructor. Sets up default SoGLRenderAction and SoHandleEventAction instances. |
|
Destructor. |
|
Render the scene graph.
If clearwindow is |
|
Process the given event by applying an SoHandleEventAction on the scene graph. |
|
Reinitialize after parameters affecting the OpenGL context has changed. |
|
Redraw at first opportunity as system becomes idle. Multiple calls to this method before an actual redraw has taken place will only result in a single redraw of the scene. |
|
Set the node which is top of the scene graph we're managing. The sceneroot node reference count will be increased by 1, and any previously set scene graph top node will have it's reference count decreased by 1.
|
|
Returns pointer to root of scene graph. |
|
Update window size of our SoGLRenderAction's viewport settings. Note that this will only change the information about window dimensions, the actual viewport size and origin (ie the rectangle which redraws are confined to) will stay the same.
|
|
Returns the current render action window size.
|
|
Set size of rendering area for the viewport within the current window. |
|
Returns size of render area. |
|
Set only the origin of the viewport region within the rendering window.
|
|
Returns origin of rendering area viewport.
|
|
Update our SoGLRenderAction's viewport settings. This will change both the information about window dimensions and the actual viewport size and origin.
|
|
Returns current viewport region used by the renderaction and the event handling.
|
|
Sets color of rendering canvas. |
|
Returns color used for clearing the rendering area before rendering the scene. |
|
Set index of background color in the color lookup table if rendering in colorindex mode. Note: colorindex mode is not supported yet in Coin. |
|
Returns index of colormap for background filling.
|
|
Turn RGB truecolor mode on or off. If you turn truecolor mode off, colorindex mode will be used instead. |
|
Returns the "truecolor or colorindex" mode flag. |
|
Activate rendering and event handling. Default is |
|
Deactive rendering and event handling. |
|
Set the callback function f to invoke when rendering the scene. userdata will be passed as the first argument of the function. |
|
Returns
The automatic redraw is turned on and off by setting either a valid callback function with setRenderCallback(), or by passing |
|
Set up the redraw priority for the SoOneShotSensor used to trigger redraws. By setting this lower than for your own sensors, you can make sure some code is always run before redraw happens.
|
|
Returns value of priority on the redraw sensor. |
|
Turn antialiased rendering on or off. See documentation for SoGLRenderAction::setSmoothing() and SoGLRenderAction::setNumPasses(). |
|
Returns rendering pass information.
|
|
Set the action to use for rendering. Overrides the default action made in the constructor. |
|
Returns pointer to render action. |
|
Set the action to use for event handling. Overrides the default action made in the constructor. |
|
Returns pointer to event handler action. |
|
Returns the default priority of the redraw sensor.
|
|
Set whether or not for SoSceneManager instances to "touch" the global
|
|
Returns whether or not we automatically notifies everything connected to the |
|
Returns the active flag. |
|
Do an immediate redraw by calling the redraw callback function. |