This is a virtual base class for other shape iterators. Provides an abstract interface for iterating over the elements of a shape. It defines a set of pure virtual methods that must be implemented by derived classes to handle specific types of shapes and their elements. More...
#include <RWMesh_ShapeIterator.hxx>

Public Member Functions | |
| const TopoDS_Shape & | ExploredShape () const |
| Return explored shape. | |
| virtual const TopoDS_Shape & | Shape () const =0 |
| Return shape. | |
| virtual bool | More () const =0 |
| Return true if iterator points to the valid triangulation. | |
| virtual void | Next ()=0 |
| Find next value. | |
| virtual bool | IsEmpty () const =0 |
| Return true if mesh data is defined. | |
| const XCAFPrs_Style & | Style () const |
| Return shape material. | |
| bool | HasColor () const |
| Return TRUE if shape color is set. | |
| const Quantity_ColorRGBA & | Color () const |
| Return shape color. | |
| virtual Standard_Integer | ElemLower () const =0 |
| Lower element index in current triangulation. | |
| virtual Standard_Integer | ElemUpper () const =0 |
| Upper element index in current triangulation. | |
| virtual Standard_Integer | NbNodes () const =0 |
| Return number of nodes for the current shape. | |
| virtual Standard_Integer | NodeLower () const =0 |
| Lower node index in current shape. | |
| virtual Standard_Integer | NodeUpper () const =0 |
| Upper node index in current shape. | |
| gp_Pnt | NodeTransformed (const Standard_Integer theNode) const |
| Return the node with specified index with applied transformation. | |
Protected Member Functions | |
| virtual gp_Pnt | node (const Standard_Integer theNode) const =0 |
| Return the node with specified index with applied transformation. | |
| RWMesh_ShapeIterator (const TDF_Label &theLabel, const TopLoc_Location &theLocation, const TopAbs_ShapeEnum theShapeTypeFind, const TopAbs_ShapeEnum theShapeTypeAvoid, const Standard_Boolean theToMapColors=false, const XCAFPrs_Style &theStyle=XCAFPrs_Style()) | |
| Main constructor. | |
| RWMesh_ShapeIterator (const TopoDS_Shape &theShape, const TopAbs_ShapeEnum theShapeTypeFind, const TopAbs_ShapeEnum theShapeTypeAvoid, const XCAFPrs_Style &theStyle=XCAFPrs_Style()) | |
| Auxiliary constructor. | |
| void | dispatchStyles (const TDF_Label &theLabel, const TopLoc_Location &theLocation, const XCAFPrs_Style &theStyle) |
| Dispatch shape styles. | |
| void | resetShape () |
| Reset information for current shape. | |
| void | initShape () |
| Initialize shape properties. | |
Protected Attributes | |
| NCollection_DataMap< TopoDS_Shape, XCAFPrs_Style, TopTools_ShapeMapHasher > | myStyles |
| Shape -> Style map. | |
| XCAFPrs_Style | myDefStyle |
| default style for shapes without dedicated style | |
| Standard_Boolean | myToMapColors |
| flag to dispatch styles | |
| TopExp_Explorer | myIter |
| shape explorer | |
| TopLoc_Location | myLocation |
| current shape location | |
| gp_Trsf | myTrsf |
| current shape transformation | |
| XCAFPrs_Style | myStyle |
| current shape style | |
| Quantity_ColorRGBA | myColor |
| current shape color | |
| TopAbs_ShapeEnum | myShapeType |
| type of shape | |
| Standard_Boolean | myHasColor |
| flag indicating that current shape has assigned color | |
This is a virtual base class for other shape iterators. Provides an abstract interface for iterating over the elements of a shape. It defines a set of pure virtual methods that must be implemented by derived classes to handle specific types of shapes and their elements.
|
protected |
Main constructor.
|
protected |
Auxiliary constructor.
|
inline |
Return shape color.
|
protected |
Dispatch shape styles.
|
pure virtual |
Lower element index in current triangulation.
Implemented in RWMesh_EdgeIterator, RWMesh_FaceIterator, and RWMesh_VertexIterator.
|
pure virtual |
Upper element index in current triangulation.
Implemented in RWMesh_EdgeIterator, RWMesh_FaceIterator, and RWMesh_VertexIterator.
|
inline |
Return explored shape.
|
inline |
Return TRUE if shape color is set.
|
protected |
Initialize shape properties.
|
pure virtual |
Return true if mesh data is defined.
Implemented in RWMesh_EdgeIterator, RWMesh_FaceIterator, and RWMesh_VertexIterator.
|
pure virtual |
Return true if iterator points to the valid triangulation.
Implemented in RWMesh_EdgeIterator, RWMesh_FaceIterator, and RWMesh_VertexIterator.
|
pure virtual |
Return number of nodes for the current shape.
Implemented in RWMesh_EdgeIterator, RWMesh_FaceIterator, and RWMesh_VertexIterator.
|
pure virtual |
Find next value.
Implemented in RWMesh_EdgeIterator, RWMesh_FaceIterator, and RWMesh_VertexIterator.
|
protectedpure virtual |
Return the node with specified index with applied transformation.
Implemented in RWMesh_EdgeIterator, RWMesh_FaceIterator, and RWMesh_VertexIterator.
|
pure virtual |
Lower node index in current shape.
Implemented in RWMesh_EdgeIterator, RWMesh_FaceIterator, and RWMesh_VertexIterator.
|
inline |
Return the node with specified index with applied transformation.
|
pure virtual |
Upper node index in current shape.
Implemented in RWMesh_EdgeIterator, RWMesh_FaceIterator, and RWMesh_VertexIterator.
|
inlineprotected |
Reset information for current shape.
|
pure virtual |
Return shape.
Implemented in RWMesh_EdgeIterator, RWMesh_FaceIterator, and RWMesh_VertexIterator.
|
inline |
Return shape material.
|
protected |
current shape color
|
protected |
default style for shapes without dedicated style
|
protected |
flag indicating that current shape has assigned color
|
protected |
shape explorer
|
protected |
current shape location
|
protected |
type of shape
|
protected |
current shape style
|
protected |
Shape -> Style map.
|
protected |
flag to dispatch styles
|
protected |
current shape transformation