X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicer.h;h=3ccf8effcdb4e49206e577620255b4361ef2e0b5;hb=71e5a41c04015e6fc1df20d68b01d6f10588a717;hp=51e047370effec580a4ca87a2b5603e4ab54b904;hpb=0b7c9b1e1215634b02cbd38d4e4ba101d6111ba8;p=clitk.git diff --git a/vv/vvSlicer.h b/vv/vvSlicer.h index 51e0473..3ccf8ef 100644 --- a/vv/vvSlicer.h +++ b/vv/vvSlicer.h @@ -34,6 +34,7 @@ class vtkPolyDataMapper2D; class vtkProperty2D; class vtkClipPolyData; class vtkImageActor; +class vvBlendImageActor; class vtkBox; class vtkCornerAnnotation; class vtkExtractVOI; @@ -46,7 +47,8 @@ class vtkCursor3D; class vtkCutter; class vtkAssignAttribute; class vtkScalarBarActor; - +class vtkTransform; +class vtkImageReslice; class vvSlicer: public vtkImageViewer2 { @@ -66,12 +68,12 @@ public: } vtkImageMapToWindowLevelColors* GetOverlayMapper(); - vtkImageActor* GetOverlayActor() ; + vvBlendImageActor* GetOverlayActor() ; vtkImageMapToWindowLevelColors* GetFusionMapper() ; vtkImageActor* GetFusionActor() ; vtkActor* GetVFActor() ; - vtkCornerAnnotation* GetAnnotation() ; - + vtkCornerAnnotation* GetAnnotation(); + void SetFusion(vvImage::Pointer inputFusion); vvImage::Pointer GetFusion() { return mFusion; @@ -112,6 +114,7 @@ public: return mSubSampling; } void SetVFScale(int scale); + void SetVFWidth(int width); int GetVFScale() { return mScale; } @@ -160,6 +163,10 @@ public: void EnableReducedExtent(bool b); void SetReducedExtent(int * ext); + void ClipDisplayedExtent(int extent[6], int refExtent[6]); + int GetOrientation(); + int * GetExtent(); + protected: vvSlicer(); ~vvSlicer(); @@ -173,7 +180,7 @@ protected: vvLandmarks* mLandmarks; vtkSmartPointer mOverlayMapper; - vtkSmartPointer mOverlayActor; + vtkSmartPointer mOverlayActor; vtkSmartPointer mFusionMapper; vtkSmartPointer mFusionActor; vtkSmartPointer ca; @@ -193,7 +200,6 @@ protected: vtkSmartPointer mLandActor; vtkSmartPointer mClipBox; vtkSmartPointer legend; - std::vector mSurfaceCutActors; int mCurrentTSlice; @@ -202,6 +208,7 @@ protected: int mSubSampling; int mScale; int mVFLog; + int mVFWidth; bool mUseReducedExtent; int * mReducedExtent; int * mInitialExtent; @@ -212,7 +219,6 @@ private: 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 ClipDisplayedExtent(int extent[6], int refExtent[6]); ///Sets the surfaces to be cut on the image slice: update the vtkCutter void SetContourSlice();