Salome HOME
Bug #490: batch mode error.
[modules/hydro.git] / src / HYDROData / HYDROData_ImmersibleZone.h
index d8ea781c33d761aba6394d19dc58660ac9754eae..9e0b929db973e7ee00af9b12098851049200e4d4 100644 (file)
@@ -48,6 +48,11 @@ public:
    */
   HYDRODATA_EXPORT virtual void Update();
 
+  /**
+   * Checks that object has 2D presentation. Reimlemented to retun true.
+   */
+  HYDRODATA_EXPORT virtual bool IsHas2dPrs() const;
+
   /**
    * Returns the top shape of the object.
    */
@@ -83,9 +88,27 @@ public:
    */
   HYDRODATA_EXPORT virtual void RemovePolyline();
 
+  HYDRODATA_EXPORT TopoDS_Shape generateTopShape() const;
+  HYDRODATA_EXPORT static TopoDS_Shape generateTopShape( const Handle(HYDROData_PolylineXY)& );
+
+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;
+
 private:
 
-  TopoDS_Shape generateTopShape() const;
+  /**
+   * Create all necessary child group objects.
+   */
+  HYDRODATA_EXPORT void createGroupObjects();
 
 protected: