X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicerManager.h;h=4acb1668cd22ed64e4b20abf07e883671771982a;hb=c63cb71d60e75dd3c7297291f6cc662491474438;hp=3479dc6c887dfc20d5ea5e844187345261f52f00;hpb=e64bc938065fef91ca19fb4b5f4f3bb973bc6f81;p=clitk.git diff --git a/vv/vvSlicerManager.h b/vv/vvSlicerManager.h index 3479dc6..4acb166 100644 --- a/vv/vvSlicerManager.h +++ b/vv/vvSlicerManager.h @@ -74,10 +74,10 @@ class vvSlicerManager : public QObject { bool SetImage(std::string filename, vvImageReader::LoadedImageType type, int n=0, unsigned int slice=0); void SetImage(vvImage::Pointer image); - bool SetImages(std::vector filenames, vvImageReader::LoadedImageType type, int n=0); + bool SetImages(std::vector filenames, vvImageReader::LoadedImageType type, int n=0, bool patientCoordinateSystem=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); @@ -177,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;} @@ -195,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; @@ -274,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); @@ -282,7 +283,12 @@ 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); + void UpdateLandmark(); + 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); @@ -332,7 +338,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;