]> Creatis software - clitk.git/blob - vv/vvROIActor.h
- bug corrected
[clitk.git] / vv / vvROIActor.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
19 #ifndef VVROIACTOR_H
20 #define VVROIACTOR_H
21
22 #include "clitkDicomRT_ROI.h"
23 #include <QObject>
24
25 class vvSlicerManager;
26 class vvImageContour;
27 class vvBinaryImageOverlayActor;
28 class vtkActor;
29
30 //------------------------------------------------------------------------------
31 class vvROIActor: public QObject {
32   Q_OBJECT
33     public:
34   vvROIActor();
35   ~vvROIActor();
36
37   void SetROI(const clitk::DicomRT_ROI * r);
38   void SetSlicerManager(vvSlicerManager * s);
39   void Update();
40   void Initialize();
41   void SetVisible(bool b);
42   bool IsVisible();
43   void SetOpacity(double x);
44
45 public slots:
46   void UpdateSlice(int slicer, int slices);
47
48  protected:
49   const clitk::DicomRT_ROI * mROI;
50   vvSlicerManager * mSlicerManager;
51   std::vector<vvImageContour *> mImageContour;
52   std::vector<vvBinaryImageOverlayActor *> mOverlayActors;
53   
54   bool mIsVisible;
55   double mOpacity;
56
57 }; // end class vvROIActor
58 //------------------------------------------------------------------------------
59
60 #endif
61