X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Object.h;h=053a39e4a808f65c234cc946e45fa929def83499;hb=424f8230c9003d00fb27499b2441c4b3a2a28292;hp=fec76b16f32e5f07167fd5d39ecafb818e619f8b;hpb=1947d881e6cc89c04ad9463ecd57c48a379f38bb;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Object.h b/src/HYDROData/HYDROData_Object.h index fec76b16..053a39e4 100644 --- a/src/HYDROData/HYDROData_Object.h +++ b/src/HYDROData/HYDROData_Object.h @@ -26,11 +26,25 @@ protected: DataTag_TopShape, DataTag_Shape3D, DataTag_Bathymetry, ///< reference bathymetry + DataTag_FillingColor, ///< filling color of geometrical object + DataTag_BorderColor ///< border color of geometrical object }; public: DEFINE_STANDARD_RTTI(HYDROData_Object); + /** + * Update the geometry object. + * Call this method whenever you made changes for object data. + */ + HYDRODATA_EXPORT virtual void Update(); + + /** + * Returns the list of all reference objects of this object. + */ + HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetAllReferenceObjects() const; + + /** * Sets the top(2d projection) shape of the object. */ @@ -67,6 +81,35 @@ public: */ HYDRODATA_EXPORT virtual void RemoveBathymetry(); + /** + * Sets filling color for object. + */ + HYDRODATA_EXPORT virtual void SetFillingColor( const QColor& theColor ); + + /** + * Returns filling color of object. + */ + HYDRODATA_EXPORT virtual QColor GetFillingColor() const; + + /** + * Sets border color for object. + */ + HYDRODATA_EXPORT virtual void SetBorderColor( const QColor& theColor ); + + /** + * Returns border color of object. + */ + HYDRODATA_EXPORT virtual QColor GetBorderColor() const; + + /** + * Returns default filling color for new object. + */ + HYDRODATA_EXPORT static QColor DefaultFillingColor(); + + /** + * Returns default border color for new object. + */ + HYDRODATA_EXPORT static QColor DefaultBorderColor(); protected: @@ -88,11 +131,21 @@ protected: */ HYDRODATA_EXPORT TopoDS_Shape getTopShape() const; + /** + * Removes the top shape from data label of the object. + */ + HYDRODATA_EXPORT void removeTopShape(); + + /** * Retrieve the 3d shape of the object from data label. */ HYDRODATA_EXPORT TopoDS_Shape getShape3D() const; + /** + * Removes the 3d shape from data label of the object. + */ + HYDRODATA_EXPORT void removeShape3D(); }; #endif