X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Entity.h;h=3fb5d239b65d111a2d77873151986903866d3950;hb=d5ab854432d2b0ec5a504b7f5bbf67d12bec472a;hp=0aa6a492b7615e1f2f775aa57bc4e6c1e48772f7;hpb=bdc5180a07545c7ec07641a41753add63d08ba36;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Entity.h b/src/HYDROData/HYDROData_Entity.h index 0aa6a492..3fb5d239 100644 --- a/src/HYDROData/HYDROData_Entity.h +++ b/src/HYDROData/HYDROData_Entity.h @@ -26,12 +26,19 @@ const ObjectKind KIND_POLYLINE = 2; const ObjectKind KIND_BATHYMETRY = 3; const ObjectKind KIND_ALTITUDE = 4; const ObjectKind KIND_IMMERSIBLE_ZONE = 5; -const ObjectKind KIND_GUIDE_LINE = 6; -const ObjectKind KIND_PROFILE = 7; -const ObjectKind KIND_CALCULATION = 8; -const ObjectKind KIND_ZONE = 9; -const ObjectKind KIND_REGION = 10; -const ObjectKind KIND_VISUAL_STATE = 11; +const ObjectKind KIND_RIVER = 6; +const ObjectKind KIND_STREAM = 7; +const ObjectKind KIND_CONFLUENCE = 8; +const ObjectKind KIND_CHANNEL = 9; +const ObjectKind KIND_OBSTACLE = 10; +const ObjectKind KIND_DIGUE = 11; +const ObjectKind KIND_PROFILE = 12; +const ObjectKind KIND_PROFILEUZ = 13; +const ObjectKind KIND_POLYLINEXY = 14; +const ObjectKind KIND_CALCULATION = 15; +const ObjectKind KIND_ZONE = 16; +const ObjectKind KIND_REGION = 17; +const ObjectKind KIND_VISUAL_STATE = 18; const ObjectKind KIND_LAST = KIND_VISUAL_STATE; DEFINE_STANDARD_HANDLE(HYDROData_Entity, MMgt_TShared) @@ -62,15 +69,6 @@ protected: // ... }; - /** - * Enumeration of tags corresponding to the child sub-objects of object. - */ - enum ChildTag - { - ChildTag_First = 0 ///< first tag, to reserve - // ... - }; - public: DEFINE_STANDARD_RTTI(HYDROData_Entity); @@ -98,11 +96,9 @@ public: HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const; /** - * Updates object state. - * Base implementation dose nothing. - * \param theIsForce force reupdating of data object + * Updates object state. Base implementation dose nothing. */ - HYDRODATA_EXPORT virtual void Update( const bool theIsForce = true ); + HYDRODATA_EXPORT virtual void Update(); /** * Returns data of object wrapped to QVariant. @@ -110,6 +106,18 @@ public: */ HYDRODATA_EXPORT virtual QVariant GetDataVariant(); + /** + * Sets the "MustBeUpdated" flag: if object is depended on updated features. + * \param theFlag is true for objects that must be updated, false for up-to-date + */ + HYDRODATA_EXPORT void SetToUpdate(bool theFlag); + + /** + * Returns the "MustBeUpdated" flag: is object data must be updated or not + * \returns false if object is up to date + */ + HYDRODATA_EXPORT bool IsMustBeUpdated() const; + /** * Checks is object exists in the data structure. * \returns true is object is not exists in the data model