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