*/
HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const;
+ /**
+ * Update the immersible zone object.
+ * Call this method whenever you made changes for object data.
+ */
+ HYDRODATA_EXPORT virtual void Update();
+
/**
* Returns the top shape of the object.
*/
*/
HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const;
+ /**
+ * Returns default filling color for new obstacle.
+ */
+ HYDRODATA_EXPORT static QColor DefaultFillingColor();
+
+ /**
+ * Returns default border color for new obstacle.
+ */
+ HYDRODATA_EXPORT static QColor DefaultBorderColor();
+
+
+ /**
+ * Sets the 3d shape of the object.
+ */
+ HYDRODATA_EXPORT virtual void SetShape3D( const TopoDS_Shape& theShape );
+
+public:
+
/**
* Imports shape from file containing geometrical object and sets this
* shape as the obstacle shape.
*/
HYDRODATA_EXPORT QString GetGeomObjectEntry() const;
+protected:
+
+ /**
+ * Returns default filling color for new object.
+ */
+ HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
+
+ /**
+ * Returns default border color for new object.
+ */
+ HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
+
+ /**
+ * Returns the type of child altitude object.
+ * Reimplemented to create obstacle altitude object.
+ */
+ HYDRODATA_EXPORT virtual ObjectKind getAltitudeObjectType() const;
+
+private:
+
+ /**
+ * Create all necessary child group objects.
+ */
+ HYDRODATA_EXPORT void createGroupObjects();
+
protected:
friend class HYDROData_Iterator;