SoCSGAction Class Reference
[SolidViz]

SolidViz CSGAction class. More...

#include <SolidViz/actions/SoCSGAction.h>

Inheritance diagram for SoCSGAction:
SoAction SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoCSGAction ()
virtual ~SoCSGAction ()
virtual void apply (SoNode *node)
virtual void apply (SoPath *path)
virtual void apply (const SoPathList &pathList, SbBool obeysRules=FALSE)

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

SolidViz CSGAction class.

This action traverses a scene graph and replaces all SoCSGGroup nodes by the sets of polygons (SoFaceSet shapes are used) that form the surfaces of the result of the CSG tree defined by the expression field of each SoCSGGroup. The time consumed by this action is proportional to the complexity (number of polygons) of the children of each SoCSGGroup node traversed and also by the complexity of the CSG tree (defined by the expression field of SoCSGGroup).

Only the geometry is managed by this action; other shape attributes such as material, textures, etc., are ignored.

NOTE: This class is provided on an as-is basis, with no support or warranty.

SEE ALSO

SolidViz Overview, SoCSGGroup SoSolidViz

Deprecated:

Deprecated since Open Inventor 9500
No longer supported.

Constructor & Destructor Documentation

SoCSGAction::SoCSGAction (  ) 

Contructor.

virtual SoCSGAction::~SoCSGAction (  )  [virtual]

Destructor.


Member Function Documentation

virtual void SoCSGAction::apply ( const SoPathList pathList,
SbBool  obeysRules = 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 SoCSGAction::apply ( SoPath path  )  [virtual]

Initiates an action on the graph defined by a path.

Warning: Most actions call ref() on the path before traversing the scene graph, then call unref() after traversal. If the path's reference count was zero (the default), the call to apply() will cause it to be destroyed.

Reimplemented from SoAction.

virtual void SoCSGAction::apply ( SoNode node  )  [virtual]

redefine apply action

Reimplemented from SoAction.

static SoType SoCSGAction::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoAction.

virtual SoType SoCSGAction::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Implements SoTypedObject.


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

Open Inventor Toolkit reference manual, generated on 11 Nov 2019
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/