25#ifndef _SO_GLOBAL_SIMPLIFY_ACTION_
26#define _SO_GLOBAL_SIMPLIFY_ACTION_
32#include <Inventor/actions/SoAction.h>
33#include <Inventor/actions/SoSubAction.h>
34#include <Inventor/actions/SoCallbackAction.h>
35#include <Inventor/actions/SoSimplifyAction.h>
36#include <Inventor/nodes/SoMaterial.h>
37#include <Inventor/nodes/SoBaseColor.h>
38#include <Inventor/fields/SoMFFloat.h>
40#include <Inventor/SoType.h>
185 static void initClass();
186 static void exitClass();
189 virtual void beginTraversal(
SoNode *) { beginTraversal();}
190 virtual void endTraversal (
SoNode *) { endTraversal() ;}
196 virtual void beginTraversal();
197 virtual void endTraversal ();
258 static void addTriangleCB (
void *userData,
Performs a generic traversal of a scene graph or path.
Response
Possible responses from a pre or post callback.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Traverses the sc...
void generateNormals(SbBool g)
Sets the normal generation flag.
SbBool isShapeHintAdded() const
Gets whether a shape hints node will be added.
virtual void clearApplyResult()
When applied, an action may reference nodes or create objects (e.g.
void setSimplificationStrategy(Strategy st)
Sets the strategy used to determine how to group triangles into the simplified shapes.
SoGlobalSimplifyAction(SoSimplifier *_simplifier)
Constructor.
void setCatchAllShapesFlag(SbBool c)
Sets the flag that specifies whether simple shapes are simplified.
@ SIMPLIFY_BY_SUBGROUP
Triangles are stored in multiple lists based on material, texture and Separator.
@ SIMPLIFY_GLOBALLY
All triangles are stored in a single list and decimated globally.
SbBool areAllShapesCatched() const
Gets the flag that specifies whether simple shapes are simplified.
SoSeparator * getSimplifiedSceneGraph() const
This returns the new scene graph which contains the simplified result.
Strategy getSimplificationStrategy() const
Gets the strategy used to determine how to group triangles into the simplified shapes.
virtual void apply(SoNode *node)
Initiates an action on the graph defined by a node.
SbBool areNormalGenerated() const
Gets the normal generation flag.
void addShapeHintsNode(SbBool a)
Sets whether a shape hints node is added.
~SoGlobalSimplifyAction()
Destructor.
virtual void apply(const SoPathList &path_list, SbBool obeys_rules=FALSE)
Initiates an action on the graph defined by a list of paths.
virtual void apply(SoPath *path)
Initiates an action on the graph defined by a path.
Surface material definition node.
Abstract base class for all database nodes.
Path that points to a list of hierarchical nodes.
Maintains a list of pointers to paths.
Represents a vertex of a generated primitive.
Group node that saves and restores traversal state.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...