SoShapeSimplifyAction Class Reference
[ActionsLarge Model]

VSG extension Simplify action that replaces shapes within a scene graph with versions that contain fewer triangles. More...

#include <Inventor/actions/SoShapeSimplifyAction.h>

Inheritance diagram for SoShapeSimplifyAction:
SoSimplifyAction SoAction SoTypedObject

List of all members.

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

Detailed Description

VSG extension Simplify action that replaces shapes within a scene graph with versions that contain fewer triangles.

This class traverses a scene graph and replaces every complex shape with a simplified version.

SEE ALSO

SoAction, SoLevelOfSimplification, SoSimplifyAction, SoGlobalSimplifyAction

See related examples:

InteractiveSimplification


Constructor & Destructor Documentation

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.


Member Function Documentation

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:

  1. All paths have the same head node.
  2. Paths are sorted in traversal order.
  3. If one path ends at node A, no other path continues through A.
  4. No two paths are the same.

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.


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

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/