X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolStructureSetManager.h;h=e77f127e09bdea58f68b8ed1c36c1b06e68df1c5;hb=3fb34ee10165c99ecfee44e156592644a94385f6;hp=e46bf5c31fa1060b85ab6614101857918b9d4a67;hpb=e94da8e1a76e3c9bf5301ce46e72074ba01cd1c1;p=clitk.git diff --git a/vv/vvToolStructureSetManager.h b/vv/vvToolStructureSetManager.h index e46bf5c..e77f127 100644 --- a/vv/vvToolStructureSetManager.h +++ b/vv/vvToolStructureSetManager.h @@ -24,6 +24,7 @@ #include "vvToolWidgetBase.h" #include "clitkDicomRT_StructureSet.h" #include "ui_vvToolStructureSetManager.h" +#include "vvROIActor.h" class vvStructureSetActor; @@ -41,27 +42,46 @@ class vvToolStructureSetManager: static void Initialize(); virtual void InputIsSelected(vvSlicerManager *m); - int addStructureSet(clitk::DicomRT_StructureSet * mStructureSet); - void addStructureSetInTreeWidget(int index, clitk::DicomRT_StructureSet * s); - void addRoiInTreeWidget(clitk::DicomRT_ROI * roi, QTreeWidgetItem * w); + int AddStructureSet(clitk::DicomRT_StructureSet * mStructureSet); + void UpdateStructureSetInTreeWidget(int index, clitk::DicomRT_StructureSet * s); + void AddRoiInTreeWidget(clitk::DicomRT_ROI * roi, QTreeWidget * w); public slots: virtual void apply(); - void open(int type); - void LeftButtonReleaseEvent(int slicer); + void Open(int type); + void OpenBinaryImage(); + void SelectedItemChangedInTree(); + void VisibleROIToggled(bool b); + void VisibleContourROIToggled(bool b); + void OpacityChanged(int v); + void ChangeColor(); + void ChangeContourColor(); + void ChangeContourWidth(int n); + void AllVisibleROIToggled(int b); + void AllVisibleContourROIToggled(bool b); + void ReloadCurrentROI(); protected: Ui::vvToolStructureSetManager ui; - void openBinaryImage(); clitk::DicomRT_StructureSet * mCurrentStructureSet; vvStructureSetActor * mCurrentStructureSetActor; int mCurrentStructureSetIndex; + clitk::DicomRT_ROI * mCurrentROI; + vvROIActor * mCurrentROIActor; vtkLookupTable * mDefaultLUTColor; - - std::vector mStructureSetsList; - std::vector mStructureSetActorsList; - std::map mStructureSetItemsList; - + bool mIsAllVisibleEnabled; + int mNumberOfVisibleROI; + int mNumberOfVisibleContourROI; + std::vector mStructureSetsList; + std::vector mStructureSetActorsList; + std::map mMapStructureSetIndexToTreeWidget; + std::map mMapROIToTreeWidget; + std::map mMapTreeWidgetToROI; + + void setCurrentSelectedROI(clitk::DicomRT_ROI * roi); + void UpdateAllROIStatus(); + virtual bool close(); + }; // end class vvToolStructureSetManager //------------------------------------------------------------------------------