Open CASCADE Technology  7.9.3
Public Member Functions
RWMesh_EdgeIterator Class Reference

Auxiliary class to iterate through edges. Provides functionality to iterate through the edges of a shape. It inherits from RWMesh_ShapeIterator and implements methods to access and manipulate edge data. More...

#include <RWMesh_EdgeIterator.hxx>

Inheritance diagram for RWMesh_EdgeIterator:
Inheritance graph
[legend]

Public Member Functions

 RWMesh_EdgeIterator (const TDF_Label &theLabel, const TopLoc_Location &theLocation, const Standard_Boolean theToMapColors=false, const XCAFPrs_Style &theStyle=XCAFPrs_Style())
 Main constructor. More...
 
 RWMesh_EdgeIterator (const TopoDS_Shape &theShape, const XCAFPrs_Style &theStyle=XCAFPrs_Style())
 Auxiliary constructor. More...
 
bool More () const override
 Return true if iterator points to the valid triangulation. More...
 
void Next () override
 Find next value. More...
 
const TopoDS_EdgeEdge () const
 Return current edge. More...
 
const TopoDS_ShapeShape () const override
 Return current edge. More...
 
const Handle< Poly_Polygon3D > & Polygon3D () const
 Return current edge data. More...
 
bool IsEmpty () const override
 Return true if geometry data is defined. More...
 
Standard_Integer ElemLower () const override
 Lower element index in current triangulation. More...
 
Standard_Integer ElemUpper () const override
 Upper element index in current triangulation. More...
 
Standard_Integer NbNodes () const override
 Return number of nodes for the current edge. More...
 
Standard_Integer NodeLower () const override
 Lower node index in current triangulation. More...
 
Standard_Integer NodeUpper () const override
 Upper node index in current triangulation. More...
 
gp_Pnt node (const Standard_Integer theNode) const override
 Return the node with specified index with applied transformation. More...
 
- Public Member Functions inherited from RWMesh_ShapeIterator
const TopoDS_ShapeExploredShape () const
 Return explored shape. More...
 
const XCAFPrs_StyleStyle () const
 Return shape material. More...
 
bool HasColor () const
 Return TRUE if shape color is set. More...
 
const Quantity_ColorRGBAColor () const
 Return shape color. More...
 
gp_Pnt NodeTransformed (const Standard_Integer theNode) const
 Return the node with specified index with applied transformation. More...
 

Additional Inherited Members

- Protected Member Functions inherited from RWMesh_ShapeIterator
 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 inherited from RWMesh_ShapeIterator
NCollection_DataMap< TopoDS_Shape, XCAFPrs_Style, TopTools_ShapeMapHashermyStyles
 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...
 

Detailed Description

Auxiliary class to iterate through edges. Provides functionality to iterate through the edges of a shape. It inherits from RWMesh_ShapeIterator and implements methods to access and manipulate edge data.

Constructor & Destructor Documentation

RWMesh_EdgeIterator::RWMesh_EdgeIterator ( const TDF_Label theLabel,
const TopLoc_Location theLocation,
const Standard_Boolean  theToMapColors = false,
const XCAFPrs_Style theStyle = XCAFPrs_Style() 
)

Main constructor.

Parameters
[in]theLabelThe label of the shape.
[in]theLocationThe location of the shape.
[in]theToMapColorsFlag to indicate if colors should be mapped.
[in]theStyleThe style of the shape.
RWMesh_EdgeIterator::RWMesh_EdgeIterator ( const TopoDS_Shape theShape,
const XCAFPrs_Style theStyle = XCAFPrs_Style() 
)

Auxiliary constructor.

Parameters
[in]theShapeThe shape to iterate.
[in]theStyleThe style of the shape.

Member Function Documentation

const TopoDS_Edge& RWMesh_EdgeIterator::Edge ( ) const
inline

Return current edge.

Standard_Integer RWMesh_EdgeIterator::ElemLower ( ) const
inlineoverridevirtual

Lower element index in current triangulation.

Implements RWMesh_ShapeIterator.

Standard_Integer RWMesh_EdgeIterator::ElemUpper ( ) const
inlineoverridevirtual

Upper element index in current triangulation.

Implements RWMesh_ShapeIterator.

bool RWMesh_EdgeIterator::IsEmpty ( ) const
inlineoverridevirtual

Return true if geometry data is defined.

Implements RWMesh_ShapeIterator.

bool RWMesh_EdgeIterator::More ( ) const
inlineoverridevirtual

Return true if iterator points to the valid triangulation.

Implements RWMesh_ShapeIterator.

Standard_Integer RWMesh_EdgeIterator::NbNodes ( ) const
inlineoverridevirtual

Return number of nodes for the current edge.

Implements RWMesh_ShapeIterator.

void RWMesh_EdgeIterator::Next ( )
overridevirtual

Find next value.

Implements RWMesh_ShapeIterator.

gp_Pnt RWMesh_EdgeIterator::node ( const Standard_Integer  theNode) const
inlineoverridevirtual

Return the node with specified index with applied transformation.

Implements RWMesh_ShapeIterator.

Standard_Integer RWMesh_EdgeIterator::NodeLower ( ) const
inlineoverridevirtual

Lower node index in current triangulation.

Implements RWMesh_ShapeIterator.

Standard_Integer RWMesh_EdgeIterator::NodeUpper ( ) const
inlineoverridevirtual

Upper node index in current triangulation.

Implements RWMesh_ShapeIterator.

const Handle< Poly_Polygon3D >& RWMesh_EdgeIterator::Polygon3D ( ) const
inline

Return current edge data.

const TopoDS_Shape& RWMesh_EdgeIterator::Shape ( ) const
inlineoverridevirtual

Return current edge.

Implements RWMesh_ShapeIterator.


The documentation for this class was generated from the following file: