1 #ifndef COIN_SORENDERMANAGER_H 2 #define COIN_SORENDERMANAGER_H 36 #include <Inventor/SbColor4f.h> 37 #include <Inventor/SbVec2s.h> 49 class SoRenderManagerP;
51 typedef void SoRenderManagerRenderCB(
void * userdata,
class SoRenderManager * mgr);
60 CLEARZBUFFER = 0x0002,
72 void setEnabled(SbBool yes);
73 int getStateFlags(
void)
const;
77 static void changeCB(
void * data,
SoSensor * sensor);
78 class SuperimpositionP * pimpl;
94 QUAD_BUFFER = SEPARATE_OUTPUT,
113 virtual void render(
const SbBool clearwindow = TRUE,
114 const SbBool clearzbuffer = TRUE);
117 const SbBool initmatrices = TRUE,
118 const SbBool clearwindow = TRUE,
119 const SbBool clearzbuffer = TRUE);
121 Superimposition * addSuperimposition(
SoNode * scene,
123 Superimposition::AUTOREDRAW |
124 Superimposition::ZBUFFERON |
125 Superimposition::CLEARZBUFFER);
126 void removeSuperimposition(Superimposition * s);
128 virtual void setSceneGraph(
SoNode *
const sceneroot);
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,
150 void *
const userData = NULL);
152 SbBool isAutoRedraw(
void)
const;
153 void setRedrawPriority(
const uint32_t priority);
154 uint32_t getRedrawPriority(
void)
const;
156 void scheduleRedraw(
void);
157 void setWindowSize(
const SbVec2s & newsize);
158 const SbVec2s & getWindowSize(
void)
const;
159 void setSize(
const SbVec2s & newsize);
160 const SbVec2s & getSize(
void)
const;
161 void setOrigin(
const SbVec2s & newOrigin);
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;
204 const SbBool initmatrices = TRUE,
205 const SbBool clearwindow = TRUE,
206 const SbBool clearzbuffer = TRUE);
211 SbBool clearzbuffer);
216 SbBool clearzbuffer);
218 void initStencilBufferForInterleavedStereo(
void);
219 void clearBuffers(SbBool color, SbBool depth);
222 void attachRootSensor(
SoNode *
const sceneroot);
223 void attachClipSensor(
SoNode *
const sceneroot);
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;
236 #endif // !COIN_SORENDERMANAGER_H Definition: SoRenderManager.h:105
StereoMode
Definition: SoRenderManager.h:90
The SoCamera class is the abstract base class for camera definition nodes.
Definition: SoCamera.h:64
Definition: SoRenderManager.h:56
Definition: SoRenderManager.h:83
The SbColor4f class contains the red, green, blue and alpha components which make up a color value...
Definition: SbColor4f.h:42
Definition: SoRenderManager.h:95
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:56
AutoClippingStrategy
Definition: SoRenderManager.h:104
The SoNodeSensor class detects changes to nodes.
Definition: SoNodeSensor.h:38
Definition: SoRenderManager.h:93
Definition: SoRenderManager.h:106
BufferType
Definition: SoRenderManager.h:99
The SoSensor class is the abstract base class for all sensors.
Definition: SoSensor.h:43
The SoRenderManager class is used for controlling the rendering of a scene graph. ...
Definition: SoRenderManager.h:53
Definition: SoRenderManager.h:84
TransparencyType
Definition: SoGLRenderAction.h:61
The SoAudioRenderAction class renders the aural parts of the scene graph.
Definition: SoAudioRenderAction.h:42
Definition: SoRenderManager.h:91
The SoOneShotSensor class is a sensor which will trigger once.
Definition: SoOneShotSensor.h:38
Definition: SoRenderManager.h:92
Definition: SoRenderManager.h:85
Definition: SoRenderManager.h:82
The SoEvent class is the base class for all Coin events.
Definition: SoEvent.h:45
The SoSceneManager class provides the main interface between the scene graph and the GUI toolkit...
Definition: SoSceneManager.h:53
RenderMode
Definition: SoRenderManager.h:81
The SbViewportRegion class is a viewport within a full window.
Definition: SbViewportRegion.h:40
Definition: SoRenderManager.h:86
Definition: SoRenderManager.h:100
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition: SbVec2s.h:51
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition: SoGLRenderAction.h:50