Salome HOME
Dump to python corrected.
[modules/hydro.git] / src / HYDROData / HYDROData_Obstacle.h
index 66db4c38014608aeb4f06a83c054853ad5ca8768..dc78d9f1647a9c4f11cd17caa2b17d8547e2a7df 100644 (file)
@@ -36,6 +36,12 @@ public:
    */
   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.
    */
@@ -46,6 +52,24 @@ public:
    */
   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.
@@ -81,6 +105,31 @@ public:
    */
   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;