Warning, file /include/opencascade/RWMesh_VertexIterator.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _RWMesh_VertexIterator_HeaderFile
0015 #define _RWMesh_VertexIterator_HeaderFile
0016
0017 #include <NCollection_DataMap.hxx>
0018 #include <Poly_Polygon3D.hxx>
0019 #include <RWMesh_ShapeIterator.hxx>
0020 #include <TopExp_Explorer.hxx>
0021 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
0022 #include <TopoDS_Vertex.hxx>
0023 #include <XCAFPrs_Style.hxx>
0024 #include <gp_Trsf.hxx>
0025
0026 #include <algorithm>
0027
0028 class TDF_Label;
0029
0030
0031
0032
0033
0034 class RWMesh_VertexIterator : public RWMesh_ShapeIterator
0035 {
0036 public:
0037
0038
0039
0040
0041
0042 Standard_EXPORT RWMesh_VertexIterator(const TDF_Label& theLabel,
0043 const TopLoc_Location& theLocation,
0044 const Standard_Boolean theToMapColors = false,
0045 const XCAFPrs_Style& theStyle = XCAFPrs_Style());
0046
0047
0048
0049
0050 Standard_EXPORT RWMesh_VertexIterator(const TopoDS_Shape& theShape,
0051 const XCAFPrs_Style& theStyle = XCAFPrs_Style());
0052
0053
0054 bool More() const Standard_OVERRIDE { return !myVertex.IsNull(); }
0055
0056
0057 Standard_EXPORT void Next() Standard_OVERRIDE;
0058
0059
0060 const TopoDS_Vertex& Vertex() const { return myVertex; }
0061
0062
0063 const TopoDS_Shape& Shape() const Standard_OVERRIDE { return myVertex; }
0064
0065
0066 const gp_Pnt& Point() const { return myPoint; }
0067
0068
0069 bool IsEmpty() const Standard_OVERRIDE { return myVertex.IsNull(); }
0070
0071 public:
0072
0073 Standard_Integer ElemLower() const Standard_OVERRIDE { return 1; }
0074
0075
0076 Standard_Integer ElemUpper() const Standard_OVERRIDE { return 1; }
0077
0078 public:
0079
0080 Standard_Integer NbNodes() const Standard_OVERRIDE { return 1; }
0081
0082
0083 Standard_Integer NodeLower() const Standard_OVERRIDE { return 1; }
0084
0085
0086 Standard_Integer NodeUpper() const Standard_OVERRIDE { return 1; }
0087
0088 public:
0089
0090 gp_Pnt node(const Standard_Integer ) const Standard_OVERRIDE { return myPoint; }
0091
0092 private:
0093
0094 void resetVertex()
0095 {
0096 myVertex.Nullify();
0097 resetShape();
0098 }
0099
0100
0101 void initVertex();
0102
0103 private:
0104 TopoDS_Vertex myVertex;
0105 gp_Pnt myPoint;
0106 };
0107
0108 #endif