Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoRenderToTarget.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2022 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#if !defined(SO_RENDERTOTARGET_H)
25#define SO_RENDERTOTARGET_H
26
27#include <Inventor/fields/SoMFEnum.h>
28#include <Inventor/fields/SoMFNode.h>
29#include <Inventor/fields/SoSFBool.h>
30#include <Inventor/fields/SoSFFloat.h>
31#include <Inventor/fields/SoSFInt32.h>
32#include <Inventor/fields/SoSFVec2i32.h>
33#include <Inventor/fields/SoSFVec4f.h>
34#include <Inventor/nodes/SoSeparator.h>
35#include <Inventor/SbPImpl.h>
36
37SO_PIMPL_PUBLIC_DECLARATION(SoRenderToTarget)
38
39//@TOBEWRAPPED
144{
145 SO_NODE_HEADER( SoRenderToTarget );
146 SO_PIMPL_PUBLIC_HEADER(SoRenderToTarget)
147
148public:
149
180
184 enum Mode
185 {
191
197
202
206 NONE
207 };
208
219
231
273
278
283
288
293
303
310
318
323
330 static SbBool isSupported(SoState* state = NULL);
331
339
340private:
341
343 static void initClass();
344
346 static void exitClass();
347
348private:
349
351 virtual void GLRenderBelowPath(SoGLRenderAction *action);
352
354 virtual void GLRenderInPath(SoGLRenderAction *action);
355
357 virtual void GLRenderOffPath(SoGLRenderAction *action);
358
359private:
361 virtual ~SoRenderToTarget();
362
363 private:
364
365 void commonConstructor();
366};
367
368#endif // SO_RENDERTOTEXTURE_H
369
370
Renders a scene graph using Open Inventor's Render Engine.
Multiple-value field containing any number of enumerated type values.
Definition SoMFEnum.h:95
Multiple-value field containing any number of int32_t integers.
Definition SoMFInt32.h:88
Multiple-value field containing any number of nodes.
Definition SoMFNode.h:94
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Group node that ...
SoSFVec2i32 size
This field allows a custom rendering size for the render to texture.
SoSFVec4f clearColorValue
Value used to clear the color buffer before the rendering.
SoSFFloat antialiasingQuality
This field defines the antialiasing quality between 0.0 and 1.0 for the rendering.
SoSFBool clearTargets
If this field is set the targets are cleared before the rendering.
Mode
This enum defines modifiers for the auto detection mechanism.
@ AUTO
Default value, use OIV auto detection algorithm.
@ INTERNAL
Use an internal buffer for the rendering.
@ TARGET_COPY
After the rendering the rendered content is copied back to the node in CPU memory.
SoSFBool enableFragmentsQuery
This field enables or disables the query counter used to count the number of fragments rasterized dur...
SoRenderToTarget()
Default constructor.
SoMFInt32 layers
This field is used when targets are SoTexture3 or SoTextureCubeMap.
static SbBool isSupported(SoState *state=NULL)
Indicates if this node can be used on the actual hardware.
SoSFFloat clearDepthValue
Value used to clear the depth buffer before the rendering.
SoMFNode targets
This field allows to attach a texture to a specific attachment.
@ COLOR0
Default attachment used for rendering.
int getRasterizedSamplesCount() const
Returns the number of samples generated by the rasterizer during the last GLRender action.
SoMFEnum modes
This defines the mode modifier for the targets.
SoSFInt32 clearStencilValue
Value used to clear the stencil buffer before the rendering.
Field containing a single Boolean value.
Definition SoSFBool.h:79
Field containing a floating-point value.
Definition SoSFFloat.h:78
Field containing a int32_t integer.
Definition SoSFInt32.h:80
Field containing a two-dimensional vector.
Definition SoSFVec2i32.h:52
Field containing a homogeneous three-dimensional vector.
Definition SoSFVec4f.h:80
Group node that saves and restores traversal state.
Traversal state.
Definition SoState.h:74
int SbBool
Boolean type.
Definition SbBase.h:87