Abstract base class for objects that encapsulate simplification algorithms. More...
#include <Inventor/simplifier/SoSimplifier.h>
Public Types | |
enum | ShapeType { TRIANGLES, TRIANGLE_STRIP, TRIANGLE_FAN } |
Public Member Functions | |
SoSimplifier () | |
virtual | ~SoSimplifier () |
virtual void | beginShape (ShapeType) |
virtual void | endShape () |
virtual void | setVertex (const SbVec3f &) |
void | setNormal (const SbVec3f &) |
void | setData (int numData, const float *) |
void | setColor (const unsigned long &) |
virtual SoNode * | simplify (float)=0 |
virtual void | clear () |
virtual int | getNumTriangles () |
virtual void | setVerbosity (SbBool v) |
SbBool | getVerbosity () const |
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
SoSimplifier::SoSimplifier | ( | ) | [inline] |
Constructor.
virtual SoSimplifier::~SoSimplifier | ( | ) | [virtual] |
Destructor.
virtual void SoSimplifier::beginShape | ( | ShapeType | ) | [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 void SoSimplifier::clear | ( | ) | [virtual] |
Removes all shapes and reset.
Reimplemented in SoDecimator.
virtual void SoSimplifier::endShape | ( | ) | [virtual] |
Ends a shape started by beginShape().
Reimplemented in SoDecimator.
virtual int SoSimplifier::getNumTriangles | ( | void | ) | [inline, virtual] |
Returns the number of triangles actually stored in the object.
If called after simplify(), returns the remaining triangles.
SbBool SoSimplifier::getVerbosity | ( | ) | const [inline] |
Gets whether to print messages while simplifying.
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().
virtual void SoSimplifier::setVerbosity | ( | SbBool | v | ) | [inline, virtual] |
Sets whether to print messages while simplifying.
Reimplemented in SoDecimator.
virtual void SoSimplifier::setVertex | ( | const SbVec3f & | ) | [virtual] |
Specifies a new vertex location.
Reimplemented in SoDecimator.
virtual SoNode* SoSimplifier::simplify | ( | float | ) | [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.