]> Creatis software - clitk.git/blob - vv/vvImageContour.h
added the new headers
[clitk.git] / vv / vvImageContour.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://oncora1.lyon.fnclcc.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ======================================================================-====*/
18 #ifndef VVIMAGECONTOUR_H
19 #define VVIMAGECONTOUR_H
20 #include "clitkCommon.h"
21 #include "vvSlicer.h"
22 class vtkImageClip;
23 class vtkMarchingSquares;
24 class vtkActor;
25
26 //------------------------------------------------------------------------------
27 class vvImageContour
28 {
29   //  Q_OBJECT
30  public:
31   vvImageContour();
32   ~vvImageContour();
33
34   void setSlicer(vvSlicer * slicer);
35   void update(double value);
36   void hideActors();
37   void showActors();
38   void setColor(double r, double g, double b);
39
40  protected:
41   vvSlicer * mSlicer;
42   int mSlice;
43   int mTSlice;
44   double mValue;
45
46   std::vector<vtkImageClip*> mClipperList;
47   std::vector<vtkMarchingSquares*> mSquaresList;
48   std::vector<vtkActor*> mSquaresActorList;
49
50 }; // end class vvImageContour
51 //------------------------------------------------------------------------------
52
53 #endif
54