Auxiliary class to iterate through vertices. Provides functionality to iterate through the vertices of a shape. It inherits from RWMesh_ShapeIterator
and implements methods to access and manipulate vertex data.
More...
#include <RWMesh_VertexIterator.hxx>
Public Member Functions | |
RWMesh_VertexIterator (const TDF_Label &theLabel, const TopLoc_Location &theLocation, const Standard_Boolean theToMapColors=false, const XCAFPrs_Style &theStyle=XCAFPrs_Style()) | |
Main constructor. | |
RWMesh_VertexIterator (const TopoDS_Shape &theShape, const XCAFPrs_Style &theStyle=XCAFPrs_Style()) | |
Auxiliary constructor. | |
bool | More () const override |
Return true if iterator points to the valid triangulation. | |
void | Next () override |
Find next value. | |
const TopoDS_Vertex & | Vertex () const |
Return current edge. | |
const TopoDS_Shape & | Shape () const override |
Return current vertex. | |
const gp_Pnt & | Point () const |
Return current vertex data. | |
bool | IsEmpty () const override |
Return true if geometry data is defined. | |
Standard_Integer | ElemLower () const override |
Lower element index in current triangulation. | |
Standard_Integer | ElemUpper () const override |
Upper element index in current triangulation. | |
Standard_Integer | NbNodes () const override |
Return number of nodes for the current edge. | |
Standard_Integer | NodeLower () const override |
Lower node index in current triangulation. | |
Standard_Integer | NodeUpper () const override |
Upper node index in current triangulation. | |
gp_Pnt | node (const Standard_Integer) const override |
Return the node with specified index with applied transformation. | |
![]() | |
const TopoDS_Shape & | ExploredShape () const |
Return explored shape. | |
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. | |
gp_Pnt | NodeTransformed (const Standard_Integer theNode) const |
Return the node with specified index with applied transformation. | |
Additional Inherited Members | |
![]() | |
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. | |
![]() | |
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 | |
Auxiliary class to iterate through vertices. Provides functionality to iterate through the vertices of a shape. It inherits from RWMesh_ShapeIterator
and implements methods to access and manipulate vertex data.
RWMesh_VertexIterator::RWMesh_VertexIterator | ( | const TDF_Label & | theLabel, |
const TopLoc_Location & | theLocation, | ||
const Standard_Boolean | theToMapColors = false, | ||
const XCAFPrs_Style & | theStyle = XCAFPrs_Style() ) |
Main constructor.
[in] | theLabel | The label of the shape. |
[in] | theLocation | The location of the shape. |
[in] | theToMapColors | Flag to indicate if colors should be mapped. |
[in] | theStyle | The style of the shape. |
RWMesh_VertexIterator::RWMesh_VertexIterator | ( | const TopoDS_Shape & | theShape, |
const XCAFPrs_Style & | theStyle = XCAFPrs_Style() ) |
Auxiliary constructor.
[in] | theShape | The shape to iterate. |
[in] | theStyle | The style of the shape. |
|
inlineoverridevirtual |
Lower element index in current triangulation.
Implements RWMesh_ShapeIterator.
|
inlineoverridevirtual |
Upper element index in current triangulation.
Implements RWMesh_ShapeIterator.
|
inlineoverridevirtual |
Return true if geometry data is defined.
Implements RWMesh_ShapeIterator.
|
inlineoverridevirtual |
Return true if iterator points to the valid triangulation.
Implements RWMesh_ShapeIterator.
|
inlineoverridevirtual |
Return number of nodes for the current edge.
Implements RWMesh_ShapeIterator.
|
overridevirtual |
Find next value.
Implements RWMesh_ShapeIterator.
|
inlineoverridevirtual |
Return the node with specified index with applied transformation.
Implements RWMesh_ShapeIterator.
|
inlineoverridevirtual |
Lower node index in current triangulation.
Implements RWMesh_ShapeIterator.
|
inlineoverridevirtual |
Upper node index in current triangulation.
Implements RWMesh_ShapeIterator.
|
inline |
Return current vertex data.
|
inlineoverridevirtual |
Return current vertex.
Implements RWMesh_ShapeIterator.
|
inline |
Return current edge.