]> Creatis software - clitk.git/blob - vv/vvStructureSetActor.h
display ROI
[clitk.git] / vv / vvStructureSetActor.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 VVSTRUCTURESETACTOR_H
20 #define VVSTRUCTURESETACTOR_H
21
22 #include "clitkDicomRT_StructureSet.h"
23 #include <QObject>
24
25 class vvSlicerManager;
26 class vvROIActor;
27
28 //------------------------------------------------------------------------------
29 class vvStructureSetActor: public QObject {
30   Q_OBJECT
31     public:
32   vvStructureSetActor();
33   ~vvStructureSetActor();
34
35   void SetStructureSet(clitk::DicomRT_StructureSet * s);
36   void SetSlicerManager(vvSlicerManager * s);
37   void CreateNewROIActor(int n, bool modeBG=true);
38   vvROIActor* GetROIActor(int n);
39   int GetNumberOfROIs();
40   std::vector<vvROIActor*> & GetROIList();
41   
42  protected:
43   clitk::DicomRT_StructureSet * mStructureSet;
44   vvSlicerManager * mSlicerManager;
45   std::vector<vvROIActor*> mROIActors;
46   std::map<int, int> mMapROIIndex;
47
48 }; // end class vvStructureSetActor
49 //------------------------------------------------------------------------------
50
51 #endif
52