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();
*/
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