Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoGeoLOD.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-2018 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : Julien SALLANNE (Jun 2009)
22**=======================================================================*/
23
24#ifndef _SO_GEOLOD_
25#define _SO_GEOLOD_
26
27#include <Inventor/nodes/SoGroup.h>
28#include <Inventor/fields/SoMFString.h>
29#include <Inventor/fields/SoSFString.h>
30#include <Inventor/fields/SoSFFloat.h>
31#include <Inventor/fields/SoSFVec3d.h>
32
33class SoWWWInline;
34
94class SoGeoLOD : public SoGroup {
95
96
97 SO_NODE_HEADER(SoGeoLOD);
98
99 public:
100 // Fields
117
122
127
132
137
142
147
152
153
158
162 SoGeoLOD(int nChildren);
163
164 private:
165 virtual void doAction(SoAction *action);
166 virtual void callback(SoCallbackAction *action);
167 virtual void GLRender(SoGLRenderAction *action);
168 virtual void rayPick(SoRayPickAction *action);
169 virtual void getBoundingBox(SoGetBoundingBoxAction *action);
170 virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action);
171
172 private:
173 static void initClass();
174 static void exitClass();
175
176 private:
177 virtual ~SoGeoLOD();
178
179 private:
180 void addWWWInlineChild();
181 void addWWWInlineRoot();
182 bool isInside(SoAction *action);
183 int getNumInlineChild();
184
185 SoWWWInline *m_wwwInlineRoot;
186 SoWWWInline *m_wwwInline1;
187 SoWWWInline *m_wwwInline2;
188 SoWWWInline *m_wwwInline3;
189 SoWWWInline *m_wwwInline4;
190
191 SbVec3f m_geoCenter;
192
193};
194
195#endif /* _SO_GEOLOD_ */
196
197
3D vector class.
Definition SbVec.h:932
Abstract base class for all actions.
Definition SoAction.h:132
Performs a generic traversal of a scene graph or path.
Renders a scene graph using Open Inventor's Render Engine.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Level-of-detail ...
Definition SoGeoLOD.h:94
SoSFString child4Url
Fourth child url : bottom-right quadtree child.
Definition SoGeoLOD.h:136
SoSFString rootUrl
Url of the file that contains the root tile geometry.
Definition SoGeoLOD.h:141
SoMFString geoSystem
Defines the spatial reference frame.
Definition SoGeoLOD.h:116
SoGeoLOD(int nChildren)
Constructor that takes approximate number of children.
SoSFVec3d center
Object-space center of the model.
Definition SoGeoLOD.h:151
SoGeoLOD()
Constructor.
SoSFString child3Url
Third child url : up-right quadtree child.
Definition SoGeoLOD.h:131
SoSFFloat range
World-space distance to use as switching criteria.
Definition SoGeoLOD.h:146
SoSFString child1Url
First child url : bottom-left quadtree child.
Definition SoGeoLOD.h:121
SoSFString child2Url
Second child url : up-left quadtree child.
Definition SoGeoLOD.h:126
Computes bounding box of a scene.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Counts number of...
Base class for all group nodes.
Definition SoGroup.h:122
Multiple-value field containing any number of strings.
Definition SoMFString.h:116
Intersects objects with a ray cast into scene.
Field containing a floating-point value.
Definition SoSFFloat.h:78
Field containing a string.
Definition SoSFString.h:117
Field containing a three-dimensional vector.
Definition SoSFVec3d.h:55
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Node that refers...