SmallChange  1.0.0
A collection of extensions to Coin3D
Loading...
Searching...
No Matches
SmSceneManager Class Reference

#include <SmallChange/misc/SmSceneManager.h>

Inheritance diagram for SmSceneManager:
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 ()
 
SoCameragetCamera (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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SmSceneManager()

SmSceneManager::SmSceneManager ( )

Constructor.

◆ ~SmSceneManager()

SmSceneManager::~SmSceneManager ( )
virtual

Destructor

Member Function Documentation

◆ getCamera()

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.

◆ getRenderMode()

SmSceneManager::RenderMode SmSceneManager::getRenderMode ( void ) const

Returns the current render mode.

◆ getStereoMode()

SmSceneManager::StereoMode SmSceneManager::getStereoMode ( void ) const

Returns the current stereo mode.

◆ getStereoOffset()

float SmSceneManager::getStereoOffset ( void ) const

Returns the current stereo offset.

◆ getWireframeOverlayColor()

const SbColor & SmSceneManager::getWireframeOverlayColor ( void ) const

Returns the WIREFRAME_OVERLAY line color.

◆ isTexturesEnabled()

SbBool SmSceneManager::isTexturesEnabled ( void ) const

Returns whether textures are enabled or not.

◆ setCamera()

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.

◆ setRenderMode()

void SmSceneManager::setRenderMode ( const RenderMode mode)

Sets the render mode.

◆ setStereoMode()

void SmSceneManager::setStereoMode ( const StereoMode mode)

Sets the stereo mode.

◆ setStereoOffset()

void SmSceneManager::setStereoOffset ( const float offset)

Sets the stereo offset used when doing stereo rendering.

◆ setTexturesEnabled()

void SmSceneManager::setTexturesEnabled ( const SbBool onoff)

Enable/disable textures when rendering.

◆ setWireframeOverlayColor()

void SmSceneManager::setWireframeOverlayColor ( const SbColor & color)

Sets the color of the lines in WIREFRAME_OVERLAY rendering mode.


The documentation for this class was generated from the following files: