]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.h
#2520 creaMaracasVisu - Bug New Normal - Color Layer with double images
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / ColorLayerImageView.h
index d1ec556f7d30000ef5df6320c6260ffb03d930f4..75c6e1a107c62ec04af4d204798cd4a7ad4d6cfa 100644 (file)
@@ -1,3 +1,28 @@
+/*# ---------------------------------------------------------------------
+#
+# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+#                        pour la Sant�)
+# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+# Previous Authors : Laurent Guigues, Jean-Pierre Roux
+# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
+#
+#  This software is governed by the CeCILL-B license under French law and
+#  abiding by the rules of distribution of free software. You can  use,
+#  modify and/ or redistribute the software under the terms of the CeCILL-B
+#  license as circulated by CEA, CNRS and INRIA at the following URL
+#  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+#  or in the file LICENSE.txt.
+#
+#  As a counterpart to the access to the source code and  rights to copy,
+#  modify and redistribute granted by the license, users are provided only
+#  with a limited warranty  and the software's author,  the holder of the
+#  economic rights,  and the successive licensors  have only  limited
+#  liability.
+#
+#  The fact that you are presently reading this means that you have had
+#  knowledge of the CeCILL-B license and that you accept its terms.
+# ------------------------------------------------------------------------ */
+
 /**
  *  \file 
  *  \brief Class ThresholdImageView . 
@@ -20,7 +45,11 @@ class  ColorLayerImageView : public LayerImageBase
          ColorLayerImageView( );
          ~ColorLayerImageView( );
          void SetSliceFixDynamic(bool fix_dynamic);
+         void SetX2(int x2);
+         void SetY2(int y2);
          void SetZ2(int z2);
+         virtual int GetX();
+         virtual int GetY();
          virtual int GetZ();
          
          /** 
@@ -62,13 +91,21 @@ class  ColorLayerImageView : public LayerImageBase
           */
          int GetBaseColorNb();
 
+
+               void    FillColorTable(int start, int end, double r1, double g1, double b1, double r2, double g2, double b2);
+
+               int     GrayLevel_TO_colorTableIndex( double VALUE );
+
+
   private:
 
-         int _z2;
+         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];