DEFINE_STANDARD_HANDLE(HYDROData_ImmersibleZone, HYDROData_NaturalObject)
-class Handle(HYDROData_Bathymetry);
-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
- DataTag_Bathymetry, ///< reference bathymetry
};
public:
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.
- */
- HYDRODATA_EXPORT virtual void SetBorderColor( const QColor& theColor );
-
- /**
- * Returns border color of zone.
- */
- HYDRODATA_EXPORT virtual QColor GetBorderColor() const;
-
-
/**
* Sets reference polyline object for zone.
*/
- HYDRODATA_EXPORT virtual void SetPolyline( const Handle(HYDROData_Polyline)& thePolyline );
+ HYDRODATA_EXPORT virtual void SetPolyline( const Handle(HYDROData_PolylineXY)& thePolyline );
/**
* Returns reference polyline object of zone.
*/
- HYDRODATA_EXPORT virtual Handle(HYDROData_Polyline) GetPolyline() const;
+ HYDRODATA_EXPORT virtual Handle(HYDROData_PolylineXY) GetPolyline() const;
/**
* Remove reference polyline object of zone.
*/
HYDRODATA_EXPORT virtual void RemovePolyline();
+ HYDRODATA_EXPORT TopoDS_Shape generateTopShape() const;
+ HYDRODATA_EXPORT static TopoDS_Shape generateTopShape( const Handle(HYDROData_PolylineXY)& );
+
+protected:
/**
- * Set reference bathymetry object for zone.
+ * Returns default filling color for new object.
*/
- HYDRODATA_EXPORT virtual void SetBathymetry( const Handle(HYDROData_Bathymetry)& theBathymetry );
+ HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
/**
- * Returns reference bathymetry object of zone.
+ * Returns default border color for new object.
*/
- HYDRODATA_EXPORT virtual Handle(HYDROData_Bathymetry) GetBathymetry() const;
+ HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
+
+private:
/**
- * Clear the bathymetry object for zone.
+ * Create all necessary child group objects.
*/
- HYDRODATA_EXPORT virtual void RemoveBathymetry();
+ HYDRODATA_EXPORT void createGroupObjects();
protected: