![]() |
Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
#include <SmSceneManager.h>
Inherits SoSceneManager.
Public Types | |
enum | RenderMode { AS_IS, WIREFRAME, POINTS, WIREFRAME_OVERLAY, HIDDEN_LINE, BOUNDING_BOX } |
enum | StereoMode { MONO, RED_CYAN, RED_BLUE, QUAD_BUFFER, INTERLEAVED_ROWS, INTERLEAVED_COLUMNS } |
Public Member Functions | |
SmSceneManager () | |
virtual | ~SmSceneManager () |
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) |
SoCamera * | getCamera (void) const |
void | setRenderMode (const RenderMode mode) |
RenderMode | getRenderMode (void) const |
void | setStereoMode (const StereoMode mode) |
StereoMode | getStereoMode (void) const |
void | setStereoOffset (const float offset) |
float | getStereoOffset (void) const |
void | setTexturesEnabled (const SbBool onoff) |
SbBool | isTexturesEnabled (void) const |
void | setWireframeOverlayColor (const SbColor &color) |
const SbColor & | getWireframeOverlayColor (void) const |
![]() | |
SoSceneManager (void) | |
virtual | ~SoSceneManager () |
void | setCamera (SoCamera *camera) |
SoCamera * | getCamera (void) const |
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 | setAudioRenderAction (SoAudioRenderAction *const action) |
SoAudioRenderAction * | getAudioRenderAction (void) const |
void | setHandleEventAction (SoHandleEventAction *hea) |
SoHandleEventAction * | getHandleEventAction (void) const |
Additional Inherited Members | |
![]() | |
static uint32_t | getDefaultRedrawPriority (void) |
static void | enableRealTimeUpdate (const SbBool flag) |
static SbBool | isRealTimeUpdateEnabled (void) |
![]() | |
int | isActive (void) const |
void | redraw (void) |
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
SoCamera * SmSceneManager::getCamera | ( | void | ) | const |
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.
const SbColor & SmSceneManager::getWireframeOverlayColor | ( | void | ) | const |
Returns the WIREFRAME_OVERLAY line color.
SbBool SmSceneManager::isTexturesEnabled | ( | void | ) | const |
Returns whether textures are enabled or not.
|
virtual |
Reimplemented from SoSceneManager.
|
virtual |
Reimplemented from SoSceneManager.
void SmSceneManager::setCamera | ( | SoCamera * | camera | ) |
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.
void SmSceneManager::setRenderMode | ( | const RenderMode | mode | ) |
Sets the render mode.
void SmSceneManager::setStereoMode | ( | const StereoMode | mode | ) |
Sets the stereo mode.
void SmSceneManager::setStereoOffset | ( | const float | offset | ) |
Sets the stereo offset used when doing stereo rendering.
void SmSceneManager::setTexturesEnabled | ( | const SbBool | onoff | ) |
Enable/disable textures when rendering.
void SmSceneManager::setWireframeOverlayColor | ( | const SbColor & | color | ) |
Sets the color of the lines in WIREFRAME_OVERLAY rendering mode.