X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FHYDROData%2FHYDROData_Entity.h;h=f55fa33acf5ecbc56ec86ecb009dceea6cc8e6c2;hb=6120f6f24e5568ffa69e959689789e1fbe59d58a;hp=7042b8d06db4731f66b1c9ab1a60c16c27a1b02a;hpb=4e3040ddfcb6e24198d1dab909eb59b94d34b437;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Entity.h b/src/HYDROData/HYDROData_Entity.h index 7042b8d0..f55fa33a 100644 --- a/src/HYDROData/HYDROData_Entity.h +++ b/src/HYDROData/HYDROData_Entity.h @@ -25,6 +25,15 @@ #include #include #include +#include + +#ifdef NONLS +#undef NONLS +#endif + +#ifdef NOMINMAX +#undef NOMINMAX +#endif class QColor; class QVariant; @@ -67,7 +76,8 @@ const ObjectKind KIND_LAND_COVER_OBSOLETE = 27; const ObjectKind KIND_CHANNEL_ALTITUDE = 28; const ObjectKind KIND_LAND_COVER_MAP = 29; const ObjectKind KIND_DTM = 30; -const ObjectKind KIND_LAST = KIND_DTM; +const ObjectKind KIND_BC_POLYGON = 31; +const ObjectKind KIND_LAST = KIND_BC_POLYGON+1; class MapOfTreatedObjects : public QMap { @@ -121,6 +131,9 @@ public: public: DEFINE_STANDARD_RTTIEXT(HYDROData_Entity, MMgt_TShared); + HYDRODATA_EXPORT static QString Type( ObjectKind ); + HYDRODATA_EXPORT virtual QString GetType() const; + /** * Returns the kind of this object. Must be redefined in all objects of known type. */ @@ -283,6 +296,14 @@ public: * \param theDefColor default color to return if attribute has not been set before */ HYDRODATA_EXPORT QColor GetColor( const QColor& theDefColor, const int theTag = 0 ) const; + + /* Internal method that used to retreive the color attribute + * \param theTag tag of a label that keeps the attribute (for 0 this is myLab) + * \param theOutColor color to return if attribute has been set before + * \return true if attribute is present + */ + HYDRODATA_EXPORT bool GetColor( QColor& theOutColor, + const int theTag ) const; protected: