Salome HOME
Import/Export new corrections
[modules/hydro.git] / src / HYDROData / HYDROData_LandCover.h
index d740e7b4d765351c61289447aeb1c5d4a8db55a8..289e4bff1820b2778bac1190edd3312d107335c6 100644 (file)
@@ -35,7 +35,9 @@ protected:
     DataTag_First = HYDROData_Entity::DataTag_First + 100, ///< first tag, to reserve
     DataTag_Shape,                                         ///< the shape presentation of the land cover   
     DataTag_StricklerType,                                 ///< the type corresponding to types in the Strickler tables 
-    DataTag_Polylines                                      ///< the set of reference polylines
+    DataTag_Polylines,                                     ///< the set of reference polylines
+    DataTag_FillingColor,                                  ///< filling color of the land cover presentation
+    DataTag_BorderColor                                    ///< border color of the land cover presentation
   };
 
   HYDRODATA_EXPORT HYDROData_LandCover();
@@ -89,21 +91,58 @@ public:
    */
   HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetPolylines() const;
 
-protected:
   /**
-   * Sets shape presentation of the land cover.
+   * Returns the shape presentation of the land cover.
    */
-  HYDRODATA_EXPORT virtual void setShape( const TopoDS_Shape& theShape );
+  HYDRODATA_EXPORT virtual TopoDS_Shape GetShape() const;
 
   /**
-   * Removes the shape from data label of the land cover object.
+   * Sets filling color for land cover.
    */
-  HYDRODATA_EXPORT virtual void removeShape();
+  HYDRODATA_EXPORT virtual void SetFillingColor( const QColor& theColor );
+
+  /**
+   * Returns filling color of land cover.
+   */
+  HYDRODATA_EXPORT virtual QColor GetFillingColor() const;
+
+   /**
+   * Sets border color for land cover.
+   */
+  HYDRODATA_EXPORT virtual void SetBorderColor( const QColor& theColor );
+
+  /**
+   * Returns border color of land cover.
+   */
+  HYDRODATA_EXPORT virtual QColor GetBorderColor() const;
+
+  /**
+   * Returns default filling color for new land cover.
+   */
+  HYDRODATA_EXPORT static QColor DefaultFillingColor();
+
+  /**
+   * Returns default border color for new land cover.
+   */
+  HYDRODATA_EXPORT static QColor DefaultBorderColor();
 
   /**
    * Build the shape presentation of the land cover.
    */
-  HYDRODATA_EXPORT virtual TopoDS_Shape buildShape() const;
+  HYDRODATA_EXPORT static TopoDS_Shape buildShape( const HYDROData_SequenceOfObjects& thePolylines,
+                                                   TCollection_AsciiString& theErrorMsg );
+
+  /**
+   * Sets the shape presentation of the land cover.
+   */
+  HYDRODATA_EXPORT virtual void setShape( const TopoDS_Shape& theShape );
+
+protected:
+
+  /**
+   * Removes the shape from data label of the land cover object.
+   */
+  HYDRODATA_EXPORT virtual void removeShape();
 };
 
 #endif