|
Open CASCADE Technology
7.9.3
|
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. More... | |
| virtual const TopoDS_Shape & | Shape () const =0 |
| Return shape. More... | |
| virtual bool | More () const =0 |
| Return true if iterator points to the valid triangulation. More... | |
| virtual void | Next ()=0 |
| Find next value. More... | |
| virtual bool | IsEmpty () const =0 |
| Return true if mesh data is defined. More... | |
| const XCAFPrs_Style & | Style () const |
| Return shape material. More... | |
| bool | HasColor () const |
| Return TRUE if shape color is set. More... | |
| const Quantity_ColorRGBA & | Color () const |
| Return shape color. More... | |
| virtual Standard_Integer | ElemLower () const =0 |
| Lower element index in current triangulation. More... | |
| virtual Standard_Integer | ElemUpper () const =0 |
| Upper element index in current triangulation. More... | |
| virtual Standard_Integer | NbNodes () const =0 |
| Return number of nodes for the current shape. More... | |
| virtual Standard_Integer | NodeLower () const =0 |
| Lower node index in current shape. More... | |
| virtual Standard_Integer | NodeUpper () const =0 |
| Upper node index in current shape. More... | |
| gp_Pnt | NodeTransformed (const Standard_Integer theNode) const |
| Return the node with specified index with applied transformation. More... | |
Protected Member Functions | |
| virtual gp_Pnt | node (const Standard_Integer theNode) const =0 |
| Return the node with specified index with applied transformation. More... | |
| 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. More... | |
| RWMesh_ShapeIterator (const TopoDS_Shape &theShape, const TopAbs_ShapeEnum theShapeTypeFind, const TopAbs_ShapeEnum theShapeTypeAvoid, const XCAFPrs_Style &theStyle=XCAFPrs_Style()) | |
| Auxiliary constructor. More... | |
| void | dispatchStyles (const TDF_Label &theLabel, const TopLoc_Location &theLocation, const XCAFPrs_Style &theStyle) |
| Dispatch shape styles. More... | |
| void | resetShape () |
| Reset information for current shape. More... | |
| void | initShape () |
| Initialize shape properties. More... | |
Protected Attributes | |
| NCollection_DataMap< TopoDS_Shape, XCAFPrs_Style, TopTools_ShapeMapHasher > | myStyles |
| Shape -> Style map. More... | |
| XCAFPrs_Style | myDefStyle |
| default style for shapes without dedicated style More... | |
| Standard_Boolean | myToMapColors |
| flag to dispatch styles More... | |
| TopExp_Explorer | myIter |
| shape explorer More... | |
| TopLoc_Location | myLocation |
| current shape location More... | |
| gp_Trsf | myTrsf |
| current shape transformation More... | |
| XCAFPrs_Style | myStyle |
| current shape style More... | |
| Quantity_ColorRGBA | myColor |
| current shape color More... | |
| TopAbs_ShapeEnum | myShapeType |
| type of shape More... | |
| Standard_Boolean | myHasColor |
| flag indicating that current shape has assigned color More... | |
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_FaceIterator, RWMesh_EdgeIterator, and RWMesh_VertexIterator.
|
pure virtual |
Upper element index in current triangulation.
Implemented in RWMesh_FaceIterator, RWMesh_EdgeIterator, 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_FaceIterator, RWMesh_EdgeIterator, and RWMesh_VertexIterator.
|
pure virtual |
Return true if iterator points to the valid triangulation.
Implemented in RWMesh_EdgeIterator, RWMesh_VertexIterator, and RWMesh_FaceIterator.
|
pure virtual |
Return number of nodes for the current shape.
Implemented in RWMesh_FaceIterator, RWMesh_EdgeIterator, and RWMesh_VertexIterator.
|
pure virtual |
Find next value.
Implemented in RWMesh_EdgeIterator, RWMesh_VertexIterator, and RWMesh_FaceIterator.
|
protectedpure virtual |
Return the node with specified index with applied transformation.
Implemented in RWMesh_FaceIterator, RWMesh_EdgeIterator, and RWMesh_VertexIterator.
|
pure virtual |
Lower node index in current shape.
Implemented in RWMesh_FaceIterator, RWMesh_EdgeIterator, and RWMesh_VertexIterator.
|
inline |
Return the node with specified index with applied transformation.
|
pure virtual |
Upper node index in current shape.
Implemented in RWMesh_FaceIterator, RWMesh_EdgeIterator, and RWMesh_VertexIterator.
|
inlineprotected |
Reset information for current shape.
|
pure virtual |
Return shape.
Implemented in RWMesh_EdgeIterator, RWMesh_VertexIterator, and RWMesh_FaceIterator.
|
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
1.8.10