23#ifndef _SO_BEVEL_ACTION
24#define _SO_BEVEL_ACTION
26#include <Inventor/actions/SoCallbackAction.h>
27#include <Inventor/SbBasic.h>
181 SbBool obeysRules = FALSE);
190 static void initClass();
191 static void exitClass();
205 BevelMaterial* m_material;
207 VertexArray *_generatedPoints;
208 IntArray *_generatedTriangles;
214 void _bevel(SoBevelData *);
215 SoBevelData* _getData(
SoNode *) {
return NULL;}
226 SoBevelData* _getData(
SoCube *);
227 SoBevelData* _getData(
SoCone *);
Abstract base class for all actions.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Creates a scene ...
SbBool isDuplicateTestEnabled() const
If TRUE, a test is performed to remove duplicate faces in the shapes being beveled.
virtual ~SoBevelAction()
Destructor.
float getAngle() const
Returns the minimum angle (in radians) between two adjacent face normals required to bevel the edge c...
virtual void apply(SoNode *node)
Initiates an action on the graph defined by a node.
float getRadius() const
Returns the bevel radius.
void enableCoplanarTest(SbBool flag=TRUE)
If TRUE, a coplanar test is performed on each shape before beveling it.
void enableDuplicateTest(SbBool flag=TRUE)
If TRUE, examine each shape to bevel, removing duplicate faces if found.
virtual void apply(const SoPathList &pathList, SbBool obeysRules=FALSE)
Initiates an action on the graph defined by a list of paths.
SbBool isAbsoluteRadiusEnabled() const
Returns TRUE if the radius is absolute, FALSE if it is relative to the shape.
void enableOrderingTest(SbBool flag=TRUE)
If TRUE, each shape to bevel is re-ordered so that each face is oriented like the first face of the s...
SbBool isCoplanarTestEnabled() const
Returns TRUE if a coplanar test is performed before the beveling.
SoGroup * getSceneGraph()
This method returns the scene graph containing the beveled shapes created by the action.
void enableAbsoluteRadius(SbBool flag=TRUE)
Sets the absolute radius flag.
virtual void apply(SoPath *path)
Initiates an action on the graph defined by a path.
void setAngle(float angle)
Sets the minimum angle (in radians) between two adjacent face normals required to bevel the edge comm...
SoBevelAction()
Constructor.
void setRadius(float radius)
Sets the bevel radius.
SbBool isOrderingTestEnabled() const
Returns TRUE if the shapes are re-ordered before being beveled.
Performs a generic traversal of a scene graph or path.
Response
Possible responses from a pre or post callback.
Polygonal face shape node.
Base class for all group nodes.
Indexed polygonal face shape node.
Indexed triangle strip set shape 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.
Quadrilateral mesh shape node.
Triangle strip set shape node.