X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvROIActor.h;h=fb85658773b8528a00d37c7a6d7aadaa7697ddf0;hb=9548105324e0d1e8d440a1e1d83faf37ebcf1c08;hp=afe7636acb91acf0be6c8b78abf2bd8846f08505;hpb=cb4f548b5df0172cc7fad02345d7eb3d7a4fa3aa;p=clitk.git diff --git a/vv/vvROIActor.h b/vv/vvROIActor.h index afe7636..fb85658 100644 --- a/vv/vvROIActor.h +++ b/vv/vvROIActor.h @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,17 +14,17 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef VVROIACTOR_H #define VVROIACTOR_H +#include "vvBinaryImageOverlayActor.h" +#include "vvImageContour.h" #include "clitkDicomRT_ROI.h" #include class vvSlicerManager; -class vvImageContour; -class vvBinaryImageOverlayActor; class vtkActor; //------------------------------------------------------------------------------ @@ -34,25 +34,42 @@ class vvROIActor: public QObject { vvROIActor(); ~vvROIActor(); - void SetROI(const clitk::DicomRT_ROI * r); + void SetROI(clitk::DicomRT_ROI * r); + clitk::DicomRT_ROI * GetROI() { return mROI; } void SetSlicerManager(vvSlicerManager * s); void Update(); - void Initialize(); + void Initialize(bool IsVisible=true); void SetVisible(bool b); + void SetContourVisible(bool b); bool IsVisible(); + bool IsContourVisible(); void SetOpacity(double x); + double GetOpacity(); + void SetSelected(bool b); + void SetContourWidth(int n); + int GetContourWidth() { return mContourWidth; } + void SetContourColor(double r, double v, double b); + std::vector & GetContourColor(); + void SetBGMode(bool b) { m_modeBG = b; } public slots: void UpdateSlice(int slicer, int slices); + void UpdateColor(); + void UpdateImage(); protected: - const clitk::DicomRT_ROI * mROI; + clitk::DicomRT_ROI::Pointer mROI; vvSlicerManager * mSlicerManager; - std::vector mImageContour; - std::vector mOverlayActors; + std::vector mImageContour; + std::vector< vvBinaryImageOverlayActor::Pointer > mOverlayActors; bool mIsVisible; + bool mIsContourVisible; double mOpacity; + bool mIsSelected; + int mContourWidth; + std::vector mContourColor; + bool m_modeBG; }; // end class vvROIActor //------------------------------------------------------------------------------