X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FThresholdImageView%2FColorLayerImageView.h;h=eef06161e20d27f7da595bb953b58bfec5eecd22;hb=ca35b13e046343c8b50cbd6b833828b06c9d1608;hp=e9adb4fcc3923beda564b2eb1dd837be6d9dba57;hpb=ef92674006375c4fe7b842ce834590c5b6d9683f;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.h index e9adb4f..eef0616 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.h @@ -58,6 +58,11 @@ class ColorLayerImageView : public LayerImageBase * \param base_color the base color vector. */ void SetBaseColors(std::vector & base_color); + + + void SetBaseTransparence(std::vector & base_transparence); + + /** * \brief Returns the base color for a given index (first coordinate of the first color being 1, second coordinate of the first color being 2, etc.). * @@ -91,21 +96,29 @@ class ColorLayerImageView : public LayerImageBase */ int GetBaseColorNb(); + + void FillColorTable(int start, int end, double r1, double g1, double b1, double r2, double g2, double b2, double t1, double t2); + + int GrayLevel_TO_colorTableIndex( double VALUE ); + + private: - int _x2, _y2, _z2; - bool _fix_dynamic; - void SetDefaultGreyLevelBoundary(); - void SetDefaultBaseColorAndGreyLevelBoundary(); + int _x2, _y2, _z2; + bool _fix_dynamic; + void SetDefaultGreyLevelBoundary(); + void SetDefaultBaseColorAndGreyLevelBoundary(); virtual void ConfigLookupTable(); + int maxColorsThresholdTable; + - //! Range values in the colored image. - double _range[2]; //! Base colors for the overlaid image. std::vector _base_color; //! Grey level boundaries. std::vector _grey_level_boundary; + //! Grey level boundaries. + std::vector _transparence_level_boundary; //! Color type (plain or gradient color). bool _color_type;