Simplify action that replaces shapes within a scene graph with versions that contain fewer triangles. More...
#include <Inventor/actions/SoShapeSimplifyAction.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoShapeSimplifyAction (SoSimplifier *_simplifier) | |
~SoShapeSimplifyAction () | |
virtual void | apply (SoNode *node) |
virtual void | apply (SoPath *path) |
virtual void | apply (const SoPathList &path_list, SbBool obeys_rules=FALSE) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
This class traverses a scene graph and replaces every complex shape with a simplified version.
SoAction, SoLevelOfSimplification, SoSimplifyAction, SoGlobalSimplifyAction
SoShapeSimplifyAction::SoShapeSimplifyAction | ( | SoSimplifier * | _simplifier | ) |
Constructor.
The algorithm used for simplifying is defined by the SoSimplifier class that is passed in the constructor.
Typically you will pass an instance of SoDecimator to the constructor. Please see SoDecimator for info about which geometry objects can be simplified.
SoShapeSimplifyAction::~SoShapeSimplifyAction | ( | ) |
Destructor.
virtual void SoShapeSimplifyAction::apply | ( | const SoPathList & | path_list, | |
SbBool | obeys_rules = FALSE | |||
) | [virtual] |
Initiates an action on the graph defined by a list of paths.
TRUE can be passed for the obeysRules flag if the given path list has the following 4 properties:
These rules will be obeyed by path lists returned by picking and by searches for non-group nodes.
Reimplemented from SoAction.
virtual void SoShapeSimplifyAction::apply | ( | SoPath * | path | ) | [virtual] |
Initiates an action on the graph defined by a path.
Reimplemented from SoAction.
virtual void SoShapeSimplifyAction::apply | ( | SoNode * | node | ) | [virtual] |
Initiates an action on the graph defined by a node.
Reimplemented from SoAction.
static SoType SoShapeSimplifyAction::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSimplifyAction.
virtual SoType SoShapeSimplifyAction::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoSimplifyAction.