X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_ImmersibleZone.h;h=9e0b929db973e7ee00af9b12098851049200e4d4;hb=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;hp=f7111a37960632d1aaa5c48fd07e4a20a275a1d6;hpb=34310fe4f26db0f23c2edfef1678e5b02f578204;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_ImmersibleZone.h b/src/HYDROData/HYDROData_ImmersibleZone.h index f7111a37..9e0b929d 100644 --- a/src/HYDROData/HYDROData_ImmersibleZone.h +++ b/src/HYDROData/HYDROData_ImmersibleZone.h @@ -42,6 +42,17 @@ public: */ HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetAllReferenceObjects() const; + /** + * Update the immersible zone object. + * Call this method whenever you made changes for object data. + */ + 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. */ @@ -77,6 +88,28 @@ 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: + + /** + * Create all necessary child group objects. + */ + HYDRODATA_EXPORT void createGroupObjects(); + protected: friend class HYDROData_Iterator;