#include <QPainterPath>
#include <QList>
+class TopoDS_Wire;
+
DEFINE_STANDARD_HANDLE(HYDROData_Polyline, HYDROData_Object)
struct PolylineSection
DataTag_SectionsName,
DataTag_SectionsClosed,
DataTag_SectionsSize,
- DataTag_SectionsType
+ DataTag_SectionsType,
+ DataTag_Wire
};
public:
*/
HYDRODATA_EXPORT void removeAll();
-
/**
- * Returns the painter path. The painter path is construct by lines
+ * Returns the painter path.
+ * Note: currently only the first section of the polyline data is taken into account.
*/
HYDRODATA_EXPORT QPainterPath painterPath() const;
+ /**
+ * Sets the wire contour of the object.
+ */
+ HYDRODATA_EXPORT void SetWire( const TopoDS_Wire& theWire );
+
+ /**
+ * Returns the wire contour of the object.
+ */
+ HYDRODATA_EXPORT TopoDS_Wire Wire() const;
+
+protected:
+ /**
+ * Update the wire contour on the basis of the polyline data.
+ */
+ void UpdateWire( const PolylineData& theSections );
protected: