Open CASCADE Technology
6.5.4
|
This class provides the indexation and type analysis
services required by the NumShape Directing Shapes of
Swept Primitives.
#include <Sweep_NumShapeTool.hxx>
Public Member Functions | |
DEFINE_STANDARD_ALLOC | Sweep_NumShapeTool (const Sweep_NumShape &aShape) |
Create a new NumShapeTool with <aShape>. The Tool must prepare an indexation for all the subshapes of this shape. | |
Standard_Integer | NbShapes () const |
Returns the number of subshapes in the shape. | |
Standard_Integer | Index (const Sweep_NumShape &aShape) const |
Returns the index of <aShape>. | |
Sweep_NumShape | Shape (const Standard_Integer anIndex) const |
Returns the Shape at index anIndex | |
TopAbs_ShapeEnum | Type (const Sweep_NumShape &aShape) const |
Returns the type of <aShape>. | |
TopAbs_Orientation | Orientation (const Sweep_NumShape &aShape) const |
Returns the orientation of <aShape>. | |
Standard_Boolean | HasFirstVertex () const |
Returns true if there is a First Vertex in the Shape. | |
Standard_Boolean | HasLastVertex () const |
Returns true if there is a Last Vertex in the Shape. | |
Sweep_NumShape | FirstVertex () const |
Returns the first vertex. | |
Sweep_NumShape | LastVertex () const |
Returns the last vertex. |
Standard_Integer Sweep_NumShapeTool::Index | ( | const Sweep_NumShape & | aShape | ) | const |
Sweep_NumShape Sweep_NumShapeTool::LastVertex | ( | ) | const |
Standard_Integer Sweep_NumShapeTool::NbShapes | ( | ) | const |
TopAbs_Orientation Sweep_NumShapeTool::Orientation | ( | const Sweep_NumShape & | aShape | ) | const |
Sweep_NumShape Sweep_NumShapeTool::Shape | ( | const Standard_Integer | anIndex | ) | const |
TopAbs_ShapeEnum Sweep_NumShapeTool::Type | ( | const Sweep_NumShape & | aShape | ) | const |