SmallChange
1.0.0
A collection of extensions to Coin3D
|
#include <SmallChange/misc/SmSceneManager.h>
Public Member Functions | |
SmSceneManager () | |
virtual | ~SmSceneManager () |
SoCamera * | getCamera (void) const |
RenderMode | getRenderMode (void) const |
StereoMode | getStereoMode (void) const |
float | getStereoOffset (void) const |
const SbColor & | getWireframeOverlayColor (void) const |
SbBool | isTexturesEnabled (void) const |
virtual void | render (const SbBool clearwindow=TRUE, const SbBool clearzbuffer=TRUE) |
virtual void | render (SoGLRenderAction *action, const SbBool initmatrices=TRUE, const SbBool clearwindow=TRUE, const SbBool clearzbuffer=TRUE) |
void | setCamera (SoCamera *camera) |
void | setRenderMode (const RenderMode mode) |
void | setStereoMode (const StereoMode mode) |
void | setStereoOffset (const float offset) |
void | setTexturesEnabled (const SbBool onoff) |
void | setWireframeOverlayColor (const SbColor &color) |
The SmSceneManager class extends SoSceneManger with render style functionality.
This class makes it possible to easily control the draw style of a scene. It also has support for controlling stereo rendering.
SmSceneManager::SmSceneManager | ( | ) |
Constructor.
|
virtual |
Destructor
Returns the current camera. If no camera has been set, the current scene graph will be searched, and the first active camera will be returned.
SmSceneManager::RenderMode SmSceneManager::getRenderMode | ( | void | ) | const |
Returns the current render mode.
SmSceneManager::StereoMode SmSceneManager::getStereoMode | ( | void | ) | const |
Returns the current stereo mode.
float SmSceneManager::getStereoOffset | ( | void | ) | const |
Returns the current stereo offset.
Returns the WIREFRAME_OVERLAY line color.
SbBool SmSceneManager::isTexturesEnabled | ( | void | ) | const |
Returns whether textures are enabled or not.
Sets the camera to be used. If you do not set a camera, the manager will search the scene graph for a camera (every frame). Set the camera here to avoid this search.
Sets the stereo offset used when doing stereo rendering.
Enable/disable textures when rendering.
Sets the color of the lines in WIREFRAME_OVERLAY rendering mode.