DEFINE_STANDARD_HANDLE(HYDROData_ImmersibleZone, HYDROData_NaturalObject)
-class Handle(HYDROData_Polyline);
+class Handle(HYDROData_PolylineXY);
/**\class HYDROData_ImmersibleZone
* \brief
enum DataTag
{
DataTag_First = HYDROData_NaturalObject::DataTag_First + 100, ///< first tag, to reserve
- DataTag_FillingColor, ///< filling color of immersible zone
- DataTag_BorderColor, ///< border color of immersible zone
DataTag_Polyline, ///< reference polyline
};
HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const;
/**
- * Returns the top shape of the object.
+ * Returns the list of all reference objects of this object.
*/
- HYDRODATA_EXPORT virtual TopoDS_Shape GetTopShape() const;
+ HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetAllReferenceObjects() const;
/**
- * Returns the 3d shape of the object.
+ * Update the immersible zone object.
+ * Call this method whenever you made changes for object data.
*/
- HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const;
-
+ HYDRODATA_EXPORT virtual void Update();
/**
- * Returns default filling color for new zone.
+ * Returns the top shape of the object.
*/
- HYDRODATA_EXPORT static QColor DefaultFillingColor();
+ HYDRODATA_EXPORT virtual TopoDS_Shape GetTopShape() const;
/**
- * Sets filling color for zone.
+ * Returns the 3d shape of the object.
*/
- HYDRODATA_EXPORT virtual void SetFillingColor( const QColor& theColor );
+ HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const;
/**
- * Returns filling color of zone.
+ * Returns default filling color for new zone.
*/
- HYDRODATA_EXPORT virtual QColor GetFillingColor() const;
-
+ HYDRODATA_EXPORT static QColor DefaultFillingColor();
/**
* Returns default border color for new zone.
HYDRODATA_EXPORT static QColor DefaultBorderColor();
/**
- * Sets border color for zone.
+ * Sets reference polyline object for zone.
*/
- HYDRODATA_EXPORT virtual void SetBorderColor( const QColor& theColor );
+ HYDRODATA_EXPORT virtual void SetPolyline( const Handle(HYDROData_PolylineXY)& thePolyline );
/**
- * Returns border color of zone.
+ * Returns reference polyline object of zone.
*/
- HYDRODATA_EXPORT virtual QColor GetBorderColor() const;
-
+ HYDRODATA_EXPORT virtual Handle(HYDROData_PolylineXY) GetPolyline() const;
/**
- * Sets reference polyline object for zone.
+ * Remove reference polyline object of zone.
*/
- HYDRODATA_EXPORT virtual void SetPolyline( const Handle(HYDROData_Polyline)& thePolyline );
+ HYDRODATA_EXPORT virtual void RemovePolyline();
+
+protected:
/**
- * Returns reference polyline object of zone.
+ * Returns default filling color for new object.
*/
- HYDRODATA_EXPORT virtual Handle(HYDROData_Polyline) GetPolyline() const;
+ HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
/**
- * Remove reference polyline object of zone.
+ * Returns default border color for new object.
*/
- HYDRODATA_EXPORT virtual void RemovePolyline();
+ HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
+
+private:
+
+ TopoDS_Shape generateTopShape() const;
protected: