X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicer.h;h=8c79969fbc2ea4aabc7bfcfd47bb66606a45bca1;hb=48d89d66788d01a4fcce97bd58681e0e9e1ce057;hp=7321683529043007db62cbdfb22099a3436f4cb2;hpb=b0a0cdf6be555105c5f3f2ece2bc51f6cd9a074c;p=clitk.git diff --git a/vv/vvSlicer.h b/vv/vvSlicer.h index 7321683..8c79969 100644 --- a/vv/vvSlicer.h +++ b/vv/vvSlicer.h @@ -27,7 +27,7 @@ #include #include -#include +#include class vtkActor; class vtkActor2D; @@ -94,6 +94,7 @@ public: void SetLandmarks(vvLandmarks* landmarks); void SetTSlice(int t); void SetSliceOrientation(int orientation); + void AdjustResliceToSliceOrientation(vtkImageReslice *reslice); int GetTSlice(); ///Reimplemented from vtkImageViewer2 to add polydata support void SetSlice(int s); @@ -190,8 +191,11 @@ protected: vvLandmarks* mLandmarks; + vtkSmartPointer mImageReslice; + vtkSmartPointer mOverlayReslice; vtkSmartPointer mOverlayMapper; vtkSmartPointer mOverlayActor; + vtkSmartPointer mFusionReslice; vtkSmartPointer mFusionMapper; vtkSmartPointer mFusionActor; vtkSmartPointer ca; @@ -229,9 +233,8 @@ protected: private: void UpdateOrientation(); void UpdateDisplayExtent(); - void ComputeVFDisplayedExtent(int x1,int x2,int y1,int y2,int z1,int z2,int extent[6]); - void ComputeOverlayDisplayedExtent(int x1,int x2,int y1,int y2,int z1,int z2,int overExtent[6]); - void ComputeFusionDisplayedExtent(int x1,int x2,int y1,int y2,int z1,int z2,int overExtent[6]); + void ConvertImageToImageDisplayExtent(vtkImageData *sourceImage, const int sourceExtent[6], + vtkImageData *targetImage, int targetExtent[6]); ///Sets the surfaces to be cut on the image slice: update the vtkCutter void SetContourSlice();