2 #ifndef HYDROData_ProfileUZ_HeaderFile
3 #define HYDROData_ProfileUZ_HeaderFile
5 #include "HYDROData_IPolyline.h"
7 DEFINE_STANDARD_HANDLE(HYDROData_ProfileUZ, HYDROData_IPolyline)
9 /**\class HYDROData_ProfileUZ
10 * \brief Class that stores/retreives information about the
11 * parametric profile points.
13 class HYDROData_ProfileUZ : public HYDROData_IPolyline
17 * Enumeration of tags corresponding to the persistent object parameters.
21 DataTag_First = HYDROData_IPolyline::DataTag_First + 100, ///< first tag, to reserve
25 DEFINE_STANDARD_RTTI(HYDROData_ProfileUZ);
29 * Returns the kind of this object. Must be redefined in all objects of known type.
31 HYDRODATA_EXPORT virtual const ObjectKind GetKind() const {return KIND_PROFILEUZ;}
36 * Returns the 3D presentation of all points.
38 HYDRODATA_EXPORT virtual TopoDS_Wire GetWire() const;
42 * Returns number of sections.
44 HYDRODATA_EXPORT virtual int NbSections() const;
47 * Adds new one section.
48 * \param theIsClosed flag indicates type of polyline
50 HYDRODATA_EXPORT virtual void AddSection( const bool theIsClosed );
53 * Returns true if section with given index is closed.
54 * \param theSectionIndex index of section
56 HYDRODATA_EXPORT virtual bool IsClosedSection( const int theSectionIndex ) const;
59 * Removes section with given index.
60 * \param theSectionIndex index of section
62 HYDRODATA_EXPORT virtual void RemoveSection( const int theSectionIndex );
65 * Removes all sections.
67 HYDRODATA_EXPORT virtual void RemoveSections();
71 * Adds new point for section with index "theSectionIndex".
72 * \param theSectionIndex index of section
73 * \param thePoint point to add
74 * \param theBeforeIndex if not equal -1 then insert point in this pos
76 HYDRODATA_EXPORT virtual void AddPoint( const int theSectionIndex,
77 const Point& thePoint,
78 const int thePointIndex = -1 );
81 * Replaces point for section with index "theSectionIndex".
82 * \param theSectionIndex index of section
83 * \param thePointIndex index of point to replace
84 * \param thePoint new point
86 HYDRODATA_EXPORT virtual void SetPoint( const int theSectionIndex,
87 const int thePointIndex,
88 const Point& thePoint );
91 * Removes point from section with index "theSectionIndex".
92 * \param theSectionIndex index of section
93 * \param thePointIndex index of point
95 HYDRODATA_EXPORT virtual void RemovePoint( const int theSectionIndex,
96 const int thePointIndex );
100 * Returns list of points.
101 * \param theSectionIndex if not equal -1 then list of points returned
102 * only for section with this index
103 * \return list of points
105 HYDRODATA_EXPORT virtual PointsList GetPoints( const int theSectionIndex = -1 ) const;
109 friend class HYDROData_Iterator;
112 * Creates new object in the internal data structure. Use higher level objects
113 * to create objects with real content.
115 HYDROData_ProfileUZ();
118 * Destructs properties of the object and object itself, removes it from the document.
120 ~HYDROData_ProfileUZ();