OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    RWMesh_VertexIterator Class Reference

    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>

    Inheritance diagram for RWMesh_VertexIterator:

    Public Member Functions

     RWMesh_VertexIterator (const TDF_Label &theLabel, const TopLoc_Location &theLocation, const bool 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_VertexVertex () const
     Return current edge.
    const TopoDS_ShapeShape () const override
     Return current vertex.
    const gp_PntPoint () const
     Return current vertex data.
    bool IsEmpty () const override
     Return true if geometry data is defined.
    int ElemLower () const override
     Lower element index in current triangulation.
    int ElemUpper () const override
     Upper element index in current triangulation.
    int NbNodes () const override
     Return number of nodes for the current edge.
    int NodeLower () const override
     Lower node index in current triangulation.
    int NodeUpper () const override
     Upper node index in current triangulation.
    gp_Pnt node (const int) const override
     Return the node with specified index with applied transformation.
    Public Member Functions inherited from RWMesh_ShapeIterator
    const TopoDS_ShapeExploredShape () const
     Return explored shape.
    const XCAFPrs_StyleStyle () const
     Return shape material.
    bool HasColor () const
     Return TRUE if shape color is set.
    const Quantity_ColorRGBAColor () const
     Return shape color.
    gp_Pnt NodeTransformed (const int theNode) const
     Return the node with specified index with applied transformation.

    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 bool 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 inherited from RWMesh_ShapeIterator
    NCollection_DataMap< TopoDS_Shape, XCAFPrs_Style, TopTools_ShapeMapHashermyStyles
     Shape -> Style map.
    XCAFPrs_Style myDefStyle
     default style for shapes without dedicated style
    bool 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
    bool myHasColor
     flag indicating that current shape has assigned color

    Detailed Description

    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.

    Constructor & Destructor Documentation

    ◆ RWMesh_VertexIterator() [1/2]

    RWMesh_VertexIterator::RWMesh_VertexIterator ( const TDF_Label & theLabel,
    const TopLoc_Location & theLocation,
    const bool 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_VertexIterator() [2/2]

    RWMesh_VertexIterator::RWMesh_VertexIterator ( 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

    ◆ ElemLower()

    int RWMesh_VertexIterator::ElemLower ( ) const
    inlineoverridevirtual

    Lower element index in current triangulation.

    Implements RWMesh_ShapeIterator.

    ◆ ElemUpper()

    int RWMesh_VertexIterator::ElemUpper ( ) const
    inlineoverridevirtual

    Upper element index in current triangulation.

    Implements RWMesh_ShapeIterator.

    ◆ IsEmpty()

    bool RWMesh_VertexIterator::IsEmpty ( ) const
    inlineoverridevirtual

    Return true if geometry data is defined.

    Implements RWMesh_ShapeIterator.

    ◆ More()

    bool RWMesh_VertexIterator::More ( ) const
    inlineoverridevirtual

    Return true if iterator points to the valid triangulation.

    Implements RWMesh_ShapeIterator.

    ◆ NbNodes()

    int RWMesh_VertexIterator::NbNodes ( ) const
    inlineoverridevirtual

    Return number of nodes for the current edge.

    Implements RWMesh_ShapeIterator.

    ◆ Next()

    void RWMesh_VertexIterator::Next ( )
    overridevirtual

    Find next value.

    Implements RWMesh_ShapeIterator.

    ◆ node()

    gp_Pnt RWMesh_VertexIterator::node ( const int ) const
    inlineoverridevirtual

    Return the node with specified index with applied transformation.

    Implements RWMesh_ShapeIterator.

    ◆ NodeLower()

    int RWMesh_VertexIterator::NodeLower ( ) const
    inlineoverridevirtual

    Lower node index in current triangulation.

    Implements RWMesh_ShapeIterator.

    ◆ NodeUpper()

    int RWMesh_VertexIterator::NodeUpper ( ) const
    inlineoverridevirtual

    Upper node index in current triangulation.

    Implements RWMesh_ShapeIterator.

    ◆ Point()

    const gp_Pnt & RWMesh_VertexIterator::Point ( ) const
    inline

    Return current vertex data.

    ◆ Shape()

    const TopoDS_Shape & RWMesh_VertexIterator::Shape ( ) const
    inlineoverridevirtual

    Return current vertex.

    Implements RWMesh_ShapeIterator.

    ◆ Vertex()

    const TopoDS_Vertex & RWMesh_VertexIterator::Vertex ( ) const
    inline

    Return current edge.


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