1#ifndef COIN_SORENDERMANAGER_H
2#define COIN_SORENDERMANAGER_H
36#include <Inventor/SbColor4f.h>
37#include <Inventor/SbVec2s.h>
38#include <Inventor/actions/SoGLRenderAction.h>
49class SoRenderManagerP;
60 CLEARZBUFFER = 0x0002,
72 void setEnabled(SbBool
yes);
73 int getStateFlags(
void)
const;
77 static void changeCB(
void * data,
SoSensor * sensor);
94 QUAD_BUFFER = SEPARATE_OUTPUT,
113 virtual void render(
const SbBool
clearwindow = TRUE,
121 Superimposition * addSuperimposition(
SoNode * scene,
123 Superimposition::AUTOREDRAW |
124 Superimposition::ZBUFFERON |
125 Superimposition::CLEARZBUFFER);
126 void removeSuperimposition(Superimposition * s);
129 virtual SoNode * getSceneGraph(
void)
const;
134 void setAutoClipping(AutoClippingStrategy
autoclipping);
135 AutoClippingStrategy getAutoClipping(
void)
const;
136 void setNearPlaneValue(
float value);
137 float getNearPlaneValue(
void)
const;
138 void setTexturesEnabled(
const SbBool
onoff);
139 SbBool isTexturesEnabled(
void)
const;
140 void setDoubleBuffer(
const SbBool enable);
141 SbBool isDoubleBuffer(
void)
const;
142 void setRenderMode(
const RenderMode mode);
143 RenderMode getRenderMode(
void)
const;
144 void setStereoMode(
const StereoMode mode);
145 StereoMode getStereoMode(
void)
const;
146 void setStereoOffset(
const float offset);
147 float getStereoOffset(
void)
const;
149 void setRenderCallback(SoRenderManagerRenderCB * f,
152 SbBool isAutoRedraw(
void)
const;
153 void setRedrawPriority(
const uint32_t priority);
154 uint32_t getRedrawPriority(
void)
const;
156 void scheduleRedraw(
void);
158 const SbVec2s & getWindowSize(
void)
const;
160 const SbVec2s & getSize(
void)
const;
162 const SbVec2s & getOrigin(
void)
const;
165 void setBackgroundColor(
const SbColor4f & color);
166 const SbColor4f & getBackgroundColor(
void)
const;
167 void setOverlayColor(
const SbColor4f & color);
169 void setBackgroundIndex(
const int index);
170 int getBackgroundIndex(
void)
const;
171 void setRGBMode(
const SbBool
onOrOff);
172 SbBool isRGBMode(
void)
const;
173 virtual void activate(
void);
174 virtual void deactivate(
void);
176 void setAntialiasing(
const SbBool smoothing,
const int numPasses);
177 void getAntialiasing(SbBool & smoothing,
int &
numPasses)
const;
183 static void enableRealTimeUpdate(
const SbBool
flag);
184 static SbBool isRealTimeUpdateEnabled(
void);
185 static uint32_t getDefaultRedrawPriority(
void);
187 void addPreRenderCallback(SoRenderManagerRenderCB * cb,
void * data);
188 void removePreRenderCallback(SoRenderManagerRenderCB * cb,
void * data);
190 void addPostRenderCallback(SoRenderManagerRenderCB * cb,
void * data);
191 void removePostRenderCallback(SoRenderManagerRenderCB * cb,
void * data);
193 void reinitialize(
void);
196 int isActive(
void)
const;
218 void initStencilBufferForInterleavedStereo(
void);
219 void clearBuffers(SbBool color, SbBool depth);
224 void detachRootSensor(
void);
225 void detachClipSensor(
void);
226 static void nodesensorCB(
void * data,
SoSensor *);
229 SoRenderManagerP * pimpl;
230 friend class SoRenderManagerP;
232 friend class Superimposition;
The SbColor4f class contains the red, green, blue and alpha components which make up a color value.
Definition SbColor4f.h:42
The SbList class is a template container class for lists.
Definition SbList.h:70
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition SbVec2s.h:51
The SbViewportRegion class is a viewport within a full window.
Definition SbViewportRegion.h:40
The SoAudioRenderAction class renders the aural parts of the scene graph.
Definition SoAudioRenderAction.h:42
The SoCamera class is the abstract base class for camera definition nodes.
Definition SoCamera.h:64
The SoEvent class is the base class for all Coin events.
Definition SoEvent.h:45
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition SoGLRenderAction.h:50
TransparencyType
Definition SoGLRenderAction.h:61
The SoNodeSensor class detects changes to nodes.
Definition SoNodeSensor.h:38
The SoNode class is the base class for nodes used in scene graphs.
Definition SoNode.h:56
The SoOneShotSensor class is a sensor which will trigger once.
Definition SoOneShotSensor.h:38
Definition SoRenderManager.h:56
The SoRenderManager class is used for controlling the rendering of a scene graph.
Definition SoRenderManager.h:53
StereoMode
Definition SoRenderManager.h:90
@ SEPARATE_OUTPUT
Definition SoRenderManager.h:93
@ INTERLEAVED_ROWS
Definition SoRenderManager.h:95
@ ANAGLYPH
Definition SoRenderManager.h:92
@ MONO
Definition SoRenderManager.h:91
RenderMode
Definition SoRenderManager.h:81
@ WIREFRAME
Definition SoRenderManager.h:83
@ HIDDEN_LINE
Definition SoRenderManager.h:86
@ AS_IS
Definition SoRenderManager.h:82
@ WIREFRAME_OVERLAY
Definition SoRenderManager.h:85
@ POINTS
Definition SoRenderManager.h:84
AutoClippingStrategy
Definition SoRenderManager.h:104
@ FIXED_NEAR_PLANE
Definition SoRenderManager.h:106
@ NO_AUTO_CLIPPING
Definition SoRenderManager.h:105
BufferType
Definition SoRenderManager.h:99
@ BUFFER_SINGLE
Definition SoRenderManager.h:100
The SoSceneManager class provides the main interface between the scene graph and the GUI toolkit.
Definition SoSceneManager.h:53
The SoSensor class is the abstract base class for all sensors.
Definition SoSensor.h:43