Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoDepthOffset.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-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : Nicolas DAGUISE (Dec 2008)
22**=======================================================================*/
23
24
25#ifndef SO_DEPTH_OFFSET_H
26#define SO_DEPTH_OFFSET_H
27
28#include <Inventor/nodes/SoNode.h>
29#include <Inventor/fields/SoSFFloat.h>
30#include <Inventor/fields/SoSFBool.h>
31#include <Inventor/SbMatrix.h>
32
91class SoDepthOffset : public SoNode
92{
93 SO_NODE_HEADER(SoDepthOffset);
94
95public:
100
108
114
115
116private:
117 static void initClass();
118 static void exitClass();
119
120private:
122 virtual void GLRender(SoGLRenderAction* action);
124 virtual void search( SoSearchAction* action );
125
130 static void setupGlobalParameters(SoState *state);
132 static void computeNDCadjustment(SoState *state, SbMatrix& matrix);
133
134private:
136 virtual ~SoDepthOffset();
137
138// Re-open this scope here to avoid breaking binary compatibility
139private:
140 virtual void doAction( SoAction* action );
141 virtual void rayPick( SoRayPickAction* action );
142
143private:
144 static SbBool s_compat80;
145 static uint32_t instanceCount;
146};
147
148#endif //SO_DEPTH_OFFSET_H
149
150
151
152
4x4 matrix class.
Definition SbMatrix.h:309
Abstract base class for all actions.
Definition SoAction.h:132
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Property node th...
SoSFBool on
Enables depth offset.
SoDepthOffset()
Constructor.
SoSFFloat offset
Offset to apply to the projection matrix.
Renders a scene graph using Open Inventor's Render Engine.
Abstract base class for all database nodes.
Definition SoNode.h:145
Intersects objects with a ray cast into scene.
Field containing a single Boolean value.
Definition SoSFBool.h:79
Field containing a floating-point value.
Definition SoSFFloat.h:78
Searches for nodes in a scene graph.
Traversal state.
Definition SoState.h:74
int SbBool
Boolean type.
Definition SbBase.h:87