Open Inventor Release 2024.1.1
 
Loading...
Searching...
No Matches
SoBillboard.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-2023 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20
21
22#ifndef _SO_BILLBOARD_H_
23#define _SO_BILLBOARD_H_
24
25#include <Inventor/fields/SoSFBool.h>
26#include <Inventor/fields/SoSFEnum.h>
27#include <Inventor/fields/SoSFVec3f.h>
28#include <Inventor/fields/SoSFNode.h>
29#include <Inventor/fields/SoSFBitMask.h>
30#include <Inventor/nodes/SoSeparator.h>
31#include <Inventor/nodes/SoMatrixTransform.h>
32
34namespace inventor
35{
36namespace node
37{
38 class SoBillboardTransform;
39}
40}
116{
117 SO_NODE_HEADER(SoBillboard);
118
119 public:
124
136
141
143 SoBillboard(int nChildren);
144
145 private:
146 // Implement actions
147 virtual void doAction(SoAction *action);
148 virtual void callback(SoCallbackAction *action);
149 virtual void GLRender(SoGLRenderAction *action);
150 virtual void getBoundingBox(SoGetBoundingBoxAction *action);
151 virtual void rayPick(SoRayPickAction *action);
152
153 private:
154 static void initClass();
155 static void exitClass();
156
157 private:
158
159 // Destructor.
160 virtual ~SoBillboard();
161
162 private:
163 // call by constructor
164 void commonConstructor(const int nChildren);
165
166 inventor::node::SoBillboardTransform* m_billboardTransform;
167
168 // OIV_BILLBOARD_EXTRA_BBOX environment variable status
169 static bool s_extraBboxActivated;
170};
171
172#endif /* _SO_BILLBOARD_H_ */
Abstract base class for all actions.
Definition SoAction.h:132
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Grouping node th...
SoSFBool useSphereBBox
Specifies if the bounding box returned by SoBillboard::getBoundingBox() method should be extended to ...
SoBillboard()
Constructor.
SoBillboard(int nChildren)
Constructor that takes approximate number of children.
SoSFVec3f axisOfRotation
Specifies which axis to use to perform the rotation.
Performs a generic traversal of a scene graph or path.
Renders a scene graph using Open Inventor's Render Engine.
Computes bounding box of a scene.
Intersects objects with a ray cast into scene.
Field containing a single Boolean value.
Definition SoSFBool.h:79
Field containing a three-dimensional vector.
Definition SoSFVec3f.h:80
Group node that saves and restores traversal state.