CSGAction class. More...
#include <SolidViz/actions/SoCSGAction.h>
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 () |
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.SolidViz Overview, SoCSGGroup SoSolidViz
SoCSGAction::SoCSGAction | ( | ) |
Contructor.
virtual SoCSGAction::~SoCSGAction | ( | ) | [virtual] |
Destructor.
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:
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.