X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Entity.h;h=b4fd34b978b3e5bf045b6b95c4a2efd25ddc1546;hb=c7cf59e092fe050003d1e556715e3ac97acf6bd4;hp=9ed01046878eac2ffd860900722cf79b8a591f42;hpb=ba91ed0e11fd28acbdec9fcb075282f8803d40a8;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Entity.h b/src/HYDROData/HYDROData_Entity.h index 9ed01046..b4fd34b9 100644 --- a/src/HYDROData/HYDROData_Entity.h +++ b/src/HYDROData/HYDROData_Entity.h @@ -241,6 +241,20 @@ public: */ void findPythonReferenceObject( MapOfTreatedObjects& theTreatedObjects, QStringList& theScript ) const; + + /** + * Internal method that used to store the color attribute + * \param theTag tag of a label that keeps the attribute (for 0 this is myLab) + * \param theColor color to save + */ + HYDRODATA_EXPORT void SetColor( const QColor& theColor, const int theTag = 0 ); + + /** + * 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 theDefColor default color to return if attribute has not been set before + */ + HYDRODATA_EXPORT QColor GetColor( const QColor& theDefColor, const int theTag = 0 ) const; protected: @@ -369,21 +383,7 @@ protected: * \param theTag tag of a label that keeps the attribute (for 0 this is myLab) */ void ClearReferenceObjects( const int theTag = 0 ); - - /** - * Internal method that used to store the color attribute - * \param theTag tag of a label that keeps the attribute (for 0 this is myLab) - * \param theColor color to save - */ - void SetColor( const QColor& theColor, const int theTag = 0 ); - - /** - * 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 theDefColor default color to return if attribute has not been set before - */ - QColor GetColor( const QColor& theDefColor, const int theTag = 0 ) const; - + protected: /**