X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicerManager.h;h=e80ef485f8e54ea9de07b18957b04db35531b039;hb=58589a922e65bf0ceab2eaa27025f9dc222e0329;hp=d634fbddafd779ecf7ae817178e5536fad5ed1fb;hpb=20f9a906dc7d6e3c9a69f582f9d96d1e4e4131b8;p=clitk.git diff --git a/vv/vvSlicerManager.h b/vv/vvSlicerManager.h index d634fbd..e80ef48 100644 --- a/vv/vvSlicerManager.h +++ b/vv/vvSlicerManager.h @@ -47,6 +47,18 @@ class vvImageReader; class vvImageReader; class vvLandmarks; +enum WindowLevelPreset { + WL_AUTO, + WL_HOUNSFIELD, + WL_SOFTTISSUE, + WL_LUNGS, + WL_BONES, + WL_HEAD, + WL_BINARY, + WL_USER, + WL_VENTILATION +}; + //------------------------------------------------------------------------------ class vvSlicerManager : public QObject { Q_OBJECT @@ -65,7 +77,7 @@ class vvSlicerManager : public QObject { bool SetImages(std::vector filenames, vvImageReader::LoadedImageType type, int n=0); bool SetOverlay(std::vector filenames, int dim, std::string component, vvImageReader::LoadedImageType type); - bool SetFusion(std::string filename, int dim, std::string component); + bool SetFusion(std::vector filenames,int dim, std::string component, vvImageReader::LoadedImageType type); bool SetFusionSequence(std::vector filenames, int dim, std::string component, vvImageReader::LoadedImageType type); ///Set a VF by loading it from the disk bool SetVF(std::string filename); @@ -165,7 +177,7 @@ class vvSlicerManager : public QObject { mFusionSequenceListInitialTransformMatrices.push_back( tmpMat ); } void SetFusionSequenceIndexOfLinkedManager(int index) { mFusionSequenceIndexLinkedManager = index; } - void SetFusionSequenceTemporalSignal(std::vector s) { mFusionSequenceTemporalSignal = s; } + void SetFusionSequenceCorrespondances(std::vector s) { mFusionSequenceCorrespondances = s; } void SetFusionSequenceInvolvmentCode(int code) { mFusionSequenceInvolvementCode=code; } int GetFusionSequenceInvolvmentCode() { return mFusionSequenceInvolvementCode;} @@ -183,7 +195,7 @@ class vvSlicerManager : public QObject { const vtkSmartPointer& GetFusionSequenceInitialTransformMatrixAtFrame(unsigned i) { return mFusionSequenceListInitialTransformMatrices[i]; } - const std::vector& GetFusionSequenceTemporalSignal() {return mFusionSequenceTemporalSignal;} + const std::vector& GetFusionSequenceCorrespondances() {return mFusionSequenceCorrespondances;} double GetColorWindow() const; double GetColorLevel() const; @@ -262,7 +274,8 @@ class vvSlicerManager : public QObject { void SetSlicingPreset(SlicingPresetType preset); vvLandmarks *GetLandmarks(); - void AddLandmark(float x,float y,float z,float t); + void AddNewLandmark(float x,float y,float z,float t); + void AddLandmarkProfile(float x,float y,float z,float t); void NextImage(int slicer); void PrevImage(int slicer); @@ -270,7 +283,11 @@ class vvSlicerManager : public QObject { void VerticalSliderHasChanged(int slicer, int slice); double GetScalarComponentAsDouble(vtkImageData *image, double X, double Y, double Z, int component=0); +public slots: + void AddLandmark(float x,float y,float z,float t); + signals : + void callAddLandmark(float x,float y,float z,float t); void currentImageChanged(std::string id); void currentPickedImageChanged(std::string id); void UpdatePosition(int visibility,double x, double y, double z, double X, double Y, double Z, double value); @@ -320,7 +337,7 @@ protected: bool mFusionSequenceSpatialSyncFlag, mFusionSequenceTemporalSyncFlag; //flags indicating whether the spatial/temporal synchronization are actives vtkSmartPointer mFusionSequenceMainTransform; std::vector< vtkSmartPointer > mFusionSequenceListInitialTransformMatrices; - std::vector mFusionSequenceTemporalSignal; + std::vector mFusionSequenceCorrespondances; int mPreset; SlicingPresetType mSlicingPreset;