- BSD See included LICENSE.txt file
- CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+ ======================================================================-====*/
#ifndef VVTOOLSTRUCTURESETMANAGER_H
#define VVTOOLSTRUCTURESETMANAGER_H
private Ui::vvToolStructureSetManager
{
Q_OBJECT
- public:
- vvToolStructureSetManager(vvMainWindowBase* parent=0, Qt::WindowFlags f=0);
+ public:
+ vvToolStructureSetManager(vvMainWindowBase* parent=0, Qt::WindowFlags f=0, vvSlicerManager * c = NULL);
~vvToolStructureSetManager();
static void Initialize();
void UpdateStructureSetInTreeWidget(int index, clitk::DicomRT_StructureSet * s);
void AddRoiInTreeWidget(clitk::DicomRT_ROI * roi, QTreeWidget * w);
+ static vvToolStructureSetManager * AddImage(vvSlicerManager * m, std::string name, vvImage::Pointer image, double BG, bool modeBG=true);
+ void AddImage(vvImage::Pointer image, std::string filename, double BG, bool modeBG=true);
+ void UpdateImage();
+
public slots:
virtual void apply();
void Open(int type);
void AllVisibleContourROIToggled(bool b);
void ReloadCurrentROI();
- protected:
+protected:
Ui::vvToolStructureSetManager ui;
clitk::DicomRT_StructureSet * mCurrentStructureSet;
vvStructureSetActor * mCurrentStructureSetActor;
std::map<int, QTreeWidgetItem *> mMapStructureSetIndexToTreeWidget;
std::map<clitk::DicomRT_ROI*, QTreeWidgetItem *> mMapROIToTreeWidget;
std::map<QTreeWidgetItem *, clitk::DicomRT_ROI*> mMapTreeWidgetToROI;
+ std::vector<int> mLoadedROIIndex;
void setCurrentSelectedROI(clitk::DicomRT_ROI * roi);
void UpdateAllROIStatus();
virtual bool close();
+ virtual void closeEvent(QCloseEvent *event);
+
+ // Management of all instances
+ virtual void CheckInputList(std::vector<vvSlicerManager*> & l, int & index);
+ static std::vector<vvSlicerManager*> mListOfInputs;
+ static std::map<vvSlicerManager*, vvToolStructureSetManager*> mListOfOpenTool;
+ static int m_NumberOfTool;
+ bool MustOpenDialogWhenCreated;
}; // end class vvToolStructureSetManager
//------------------------------------------------------------------------------