Abstract base class for objects that encapsulate simplification algorithms.
More...
#include <Inventor/simplifier/SoSimplifier.h>
Inheritance diagram for SoSimplifier:Public Types | |
| enum | ShapeType { TRIANGLES , TRIANGLE_STRIP , TRIANGLE_FAN } |
| ShapeType. More... | |
Public Member Functions | |
| SoSimplifier () | |
| Constructor. | |
| virtual | ~SoSimplifier () |
| Destructor. | |
| virtual void | beginShape (ShapeType) |
| Starts a new shape, ShapeType defines which triangle organization to use. | |
| virtual void | endShape () |
| Ends a shape started by beginShape(). | |
| virtual void | setVertex (const SbVec3f &) |
| Specifies a new vertex location. | |
| void | setNormal (const SbVec3f &) |
| Method to set optional vertex data (normal). | |
| void | setData (int numData, const float *) |
| Method to set optional vertex data (data). | |
| void | setColor (const unsigned long &) |
| Method to set optional vertex data (color). | |
| virtual SoNode * | simplify (float)=0 |
| Performs the simplification on the shapes and returns a simplified node. | |
| virtual void | clear () |
| Removes all shapes and reset. | |
| virtual int | getNumTriangles () |
| Returns the number of triangles actually stored in the object. | |
| virtual void | setVerbosity (SbBool v) |
| Sets whether to print messages while simplifying. | |
| SbBool | getVerbosity () const |
| Gets whether to print messages while simplifying. | |
Abstract base class for objects that encapsulate simplification algorithms.
This class abstract base class for objects that encapsulates simplification algorithms. This object receives a set of triangles and returns a new list representing a simplified version of the original geometry.
SoDecimator, SoSimplifyAction, SoShapeSimplifyAction, SoGlobalSimplifyAction
Definition at line 51 of file SoSimplifier.h.
ShapeType.
| Enumerator | |
|---|---|
| TRIANGLES | TRIANGLES. |
| TRIANGLE_STRIP | TRIANGLE_STRIP. |
| TRIANGLE_FAN | TRIANGLE_FAN. |
Definition at line 66 of file SoSimplifier.h.
|
inline |
Constructor.
Definition at line 57 of file SoSimplifier.h.
|
virtual |
Destructor.
|
virtual |
Starts a new shape, ShapeType defines which triangle organization to use.
ShapeType can be one of TRIANGLES, TRIANGLE_STRIP, TRIANGLE_FAN.
Reimplemented in SoDecimator.
|
virtual |
Removes all shapes and reset.
Reimplemented in SoDecimator.
|
virtual |
Ends a shape started by beginShape().
Reimplemented in SoDecimator.
|
inlinevirtual |
Returns the number of triangles actually stored in the object.
If called after simplify(), returns the remaining triangles.
Definition at line 119 of file SoSimplifier.h.
|
inline |
Gets whether to print messages while simplifying.
Definition at line 128 of file SoSimplifier.h.
| void SoSimplifier::setColor | ( | const unsigned long & | ) |
Method to set optional vertex data (color).
Must be called before setVertex()
| void SoSimplifier::setData | ( | int | numData, |
| const float * | |||
| ) |
Method to set optional vertex data (data).
Must be called before setVertex().
| void SoSimplifier::setNormal | ( | const SbVec3f & | ) |
Method to set optional vertex data (normal).
Must be called before setVertex().
|
inlinevirtual |
Sets whether to print messages while simplifying.
Reimplemented in SoDecimator.
Definition at line 124 of file SoSimplifier.h.
|
virtual |
Specifies a new vertex location.
Reimplemented in SoDecimator.
|
pure virtual |
Performs the simplification on the shapes and returns a simplified node.
On this class, this function is pure virtual; derived classes must implement this function.
Implemented in SoDecimator.