Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoDecimator.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 : Pascal DOUX (Apr 1998)
22**=======================================================================*/
23
24
25#ifndef _SO_DECIMATOR_
26#define _SO_DECIMATOR_
27
28
29#include <Inventor/SbLinear.h>
30#include <Inventor/simplifier/SoSimplifier.h>
31
32class IDoDecimate;
33
85class SoDecimator : public SoSimplifier {
86
87public:
96
100 virtual void beginShape(ShapeType);
101
105 virtual void endShape();
106
110 virtual void setVertex (const SbVec3f&);
111
119 virtual void setSimplifiedShapeType(SoType simplifiedShapeType) ;
120
125 virtual SoNode* simplify (float ) ;
126
130 virtual void clear();
131
135 virtual void setVerbosity(SbBool v);
136
137private:
138
139 SoType simplifiedShapeType ;
140
141 IDoDecimate *decimer;
142
143 int edge[2];
144 int edgeCount;
145
146 SbBool isModelComplete;
147
148};
149
150#endif // _SO_DECIMATOR_
151
152
153
154
155
156
157
158
3D vector class.
Definition SbVec.h:932
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Encapsulates an ...
Definition SoDecimator.h:85
virtual void endShape()
End shape.
virtual void setVerbosity(SbBool v)
Verbose mode.
virtual void setSimplifiedShapeType(SoType simplifiedShapeType)
Sets the shape type used for building the simplified node.
virtual void beginShape(ShapeType)
Starts a new shape.
virtual void setVertex(const SbVec3f &)
Methods used to specify data to simplify.
SoDecimator()
Constructor.
virtual void clear()
Removes all shapes and reset.
~SoDecimator()
Destructor.
virtual SoNode * simplify(float)
Performs the simplification on the shapes and builds the simplified node.
Abstract base class for all database nodes.
Definition SoNode.h:145
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
ShapeType
ShapeType.
Stores runtime type information.
Definition SoType.h:98
int SbBool
Boolean type.
Definition SbBase.h:87