Salome HOME
Refs #289 - Spline profile is represented in OCC view as polyline profile
[modules/hydro.git] / src / HYDROData / HYDROData_Obstacle.h
index 66db4c38014608aeb4f06a83c054853ad5ca8768..9a9954fb680c89066fe702243d7b26574e446cf1 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,29 @@ 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;
+
+  /**
+   * Create all necessary child group objects.
+   */
+  HYDRODATA_EXPORT virtual void createGroupObjects();
+
+  /**
+   * Returns the type of child altitude object.
+   * Reimplemented to create obstacle altitude object.
+   */
+  HYDRODATA_EXPORT virtual ObjectKind getAltitudeObjectType() const;
+
 protected:
 
   friend class HYDROData_Iterator;