SoSimplifier Class Reference
[Large Model]

VSG extension Abstract base class for objects that encapsulate simplification algorithms. More...

#include <Inventor/simplifier/SoSimplifier.h>

Inheritance diagram for SoSimplifier:
SoDecimator

List of all members.

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 SoNodesimplify (float)=0
virtual void clear ()
virtual int getNumTriangles ()
virtual void setVerbosity (SbBool v)
SbBool getVerbosity () const

Detailed Description

VSG extension 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.

SEE ALSO

SoDecimator, SoSimplifyAction, SoShapeSimplifyAction, SoGlobalSimplifyAction


Member Enumeration Documentation

ShapeType.

Enumerator:
TRIANGLES 

TRIANGLES.

TRIANGLE_STRIP 

TRIANGLE_STRIP.

TRIANGLE_FAN 

TRIANGLE_FAN.


Constructor & Destructor Documentation

SoSimplifier::SoSimplifier (  )  [inline]

Constructor.

virtual SoSimplifier::~SoSimplifier (  )  [virtual]

Destructor.


Member Function Documentation

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 (  )  [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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/