Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoNurbsGroup.h
Go to the documentation of this file.
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-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23#ifndef _SO_NURBS_GROUP_
24#define _SO_NURBS_GROUP_
25
29#include <Inventor/STL/vector>
30
31class SoCache;
32class SoState;
34class SoBrep;
35
36#ifndef HIDDEN_FROM_DOC
37namespace A3DPhigsCrackFreeTess
38{
39 class Pid_polyline_data;
40 class Pid_quad_data;
41}
42class SoTrimList;
43
44#endif
90class SoNurbsGroup : public SoGroup {
91
93
94 public:
95
103 virtual ~SoNurbsGroup();
104
105 private:
106 virtual void GLRender(SoGLRenderAction *action);
107 virtual void rayPick(SoRayPickAction *action);
108 virtual void callback(SoCallbackAction *action);
109
110 private:
111#ifndef HIDDEN_FROM_DOC
112 static void initClass();
113 static void exitClass();
114
115 struct NurbsProperty {
117 int numSamplePoints;
119 float tessAngle;
120 float tessDistance;
121 int steps;
122 };
123#endif
124
125 private:
126 SoNurbsBREPAction *m_brepAction;
127
128 void deleteBrepStruct(SoBrep *brep);
129 void deleteTessData();
130 void dispatchData();
131 void fillCache(SoAction *action, SbBool renderAction);
132 void computeBREP(SoState *state, SoBrep *brep,
134 float tessAngle, float tessDistance);
135
136 SoCache *cache;
137 void createGroupCache(SoState *state);
138
139 size_t m_numPolygons;
140 std::vector<SoTrimList*> m_polygons;
141 class A3DPhigsCrackFreeTess::Pid_polyline_data *m_loops;
142 class A3DPhigsCrackFreeTess::Pid_polyline_data *m_isoParam;
143};
144
145#endif /* _SO_NURBS_GROUP_ */
146
#define SO_NODE_HEADER(className)
Definition SoSubNode.h:151
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.
Base class for all group nodes.
Definition SoGroup.h:122
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Group that encap...
SoNurbsGroup()
Creates an empty NurbsGroup node.
virtual ~SoNurbsGroup()
Destructor.
TessellationType
Tesselation type.
Intersects objects with a ray cast into scene.
Traversal state.
Definition SoState.h:74
int SbBool
Boolean type.
Definition SbBase.h:87