]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/FillFilter.h
#3418 creaMaracasVisu Feature New Normal - ManualPaint_model with openmp
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualPaint / FillFilter.h
1 /*# ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26 #ifndef _FILL_FILTER_H_
27 #define _FILL_FILTER_H_
28
29 #include "baseFilterManualPaint.h"
30
31
32 class FillFilter : public baseFilterManualPaint {
33 public:
34         FillFilter();
35         virtual ~FillFilter();
36     void                        Run(int px, int py, int pz);
37         void                    FillToolLoop(int px, int py, int pz);
38     void                        SetToleranceFill(double tolerancefill);
39     void                        SetDistanceFill(int distancefill);
40     virtual void        SetImages(vtkImageData *image,vtkImageData *image2);
41 //      vtkImageData*   GetAuxImageFill();
42 void                    Copy_GeneralAuxFill_to_Results();
43
44
45 private:
46     double          _tolerancefill;
47     int             _distancefill;
48
49 //EED 2020-04-28  BORRAME Change to local variables to use with openmp
50 //    double          _distbasefill;
51 //    double          _graylevelbasefill;
52 //    double          _tmpiglfill;
53 //    double          _tmpiglfill2;
54 //    bool            _auxGrayLevelValidationFill;
55
56 //EED 2020-04-28  BORRAME Change to local variables to use with openmp
57 //   vtkImageData    *_auxImageFill;
58 //      int                     _maxXback;
59 //      int                     _maxYback;
60 //      int                     _maxZback;
61    vtkImageData    *_GeneralAuxImageFill;
62
63 vtkImageData*   CreateAuxImageFill(     long int &OneColumnAux, long int &OneLineAux , long int &OnePlaneAux, 
64                                                                         int px,                 int py,                 int pz, 
65                                                                         int &pxAux,     int &pyAux,     int &pzAux, 
66                                                                         int &minXAux,   int &minYAux,   int &minZAux   );
67 void                    Copy_AuxImageFill_To_GeneralAuxFill(int minXAux, int minYAux, int minZAux, vtkImageData *auxImageFill);
68
69
70 protected:
71
72
73
74 //Change to local variables to use with openmp
75 // DEF_POINTER_IMAGE_VTK_CREA_definition( v_image , ss_image , p_image , st_image )             
76 //      double                  v_image;
77 //      int                     ss_image;
78 //      char                    *p_image;
79 //      int                             st_image;
80
81 // //macro not working ???    
82 // DEF_POINTER_IMAGE_VTK_CREA_definition(v_image2,ss_image2,p_image2,st_image2)         
83 //      double                  v_image2;
84 //      int                     ss_image2;
85 //      char                    *p_image2;
86 //      int                             st_image2;
87
88 };
89
90
91 #endif // _FILL_FILTER_H_