]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.h
#2651 creaMaracasVisu Feature New Normal - Color Layer: Transparent Base, Refresh
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / ColorLayerImageView.h
index 75c6e1a107c62ec04af4d204798cd4a7ad4d6cfa..305afdc15188853f5ff389aa743fef3e24a0972a 100644 (file)
@@ -58,6 +58,11 @@ class  ColorLayerImageView : public LayerImageBase
           * \param base_color the base color vector.
           */
          void SetBaseColors(std::vector<double> & base_color);
+
+
+         void SetBaseTransparence(std::vector<double> & 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.).
           *
@@ -92,7 +97,7 @@ class  ColorLayerImageView : public LayerImageBase
          int GetBaseColorNb();
 
 
-               void    FillColorTable(int start, int end, double r1, double g1, double b1, double r2, double g2, double b2);
+               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 );
 
@@ -114,6 +119,8 @@ class  ColorLayerImageView : public LayerImageBase
          std::vector<double> _base_color;
          //! Grey level boundaries.
          std::vector<double> _grey_level_boundary;
+         //! Grey level boundaries.
+         std::vector<double> _transparence_level_boundary;
          //! Color type (plain or gradient color).
          bool _color_type;