DEFINE_STANDARD_HANDLE(HYDROData_PolylineXY, HYDROData_IPolyline)
class QPainterPath;
+class TopoDS_Wire;
+class gp_XYZ;
/**\class HYDROData_PolylineXY
* \brief Class that stores/retreives information about the
*/
HYDRODATA_EXPORT virtual QVariant GetDataVariant();
+public:
+
+ /**
+ * Returns the presentation of polyline section in CAS maner.
+ */
+ HYDRODATA_EXPORT static TopoDS_Wire BuildWire( const SectionType& theType,
+ const bool& theIsClosed,
+ const NCollection_Sequence<gp_XYZ>& thePoints );
+
+ /**
+ * Returns the presentation of polyline section in Qt maner.
+ */
+ HYDRODATA_EXPORT static QPainterPath BuildPainterPath( const SectionType& theType,
+ const bool& theIsClosed,
+ const NCollection_Sequence<gp_XYZ>& thePoints );
+
public:
/**
*/
HYDRODATA_EXPORT bool IsClosed() const;
-
+ /**
+ * Returns the distance beetwen first and point with index thePointIndex
+ * at the section with index theSectionIndex. -1 is returned if error is occurred.
+ */
+ HYDRODATA_EXPORT double GetDistance( const int theSectionIndex,
+ const int thePointIndex ) const;
+
+
/**
* Returns number of sections.
*/