]> Creatis software - clitk.git/blobdiff - vv/vvSlicer.h
mechanism for hiding experimental stuff in vv
[clitk.git] / vv / vvSlicer.h
index 7060b25318288300308e9ad9324fda653f76baf5..c2efcd805a0ca4c964c96df3e200bd96b81931ca 100644 (file)
@@ -51,7 +51,6 @@ class vvGlyph2D;
 class vvGlyphSource;
 class vtkCursor3D;
 class vtkCutter;
-class vtkPlane;
 class vtkAssignAttribute;
 class vtkScalarBarActor;
 
@@ -149,6 +148,8 @@ public:
     bool GetCursorVisibility();
     void SetCursorColor(int r,int g, int b);
 
+    void GetExtremasAroundMousePointer(double & min, double & max);
+
     void UpdateLandmarks();
     void ForceUpdateDisplayExtent();
 
@@ -162,6 +163,10 @@ public:
     virtual void SetColorWindow(double s);
     virtual void SetColorLevel(double s);
 
+    
+    void EnableReducedExtent(bool b);
+    void SetReducedExtent(int * ext);
+
 protected:
     vvSlicer();
     ~vvSlicer();
@@ -194,7 +199,6 @@ protected:
     vtkSmartPointer<vtkPolyDataMapper> mLandMapper;
     vtkSmartPointer<vtkActor> mLandActor;
     vtkSmartPointer<vtkBox> mClipBox;
-    vtkSmartPointer<vtkPlane> mSlicePlane;
     vtkSmartPointer<vtkScalarBarActor> legend;
 
     std::vector<vvMeshActor*> mSurfaceCutActors;
@@ -205,6 +209,9 @@ protected:
     int mSubSampling;
     int mScale;
     int mVFLog;
+    bool mUseReducedExtent;
+    int * mReducedExtent;
+    int * mInitialExtent;
 
 private:
     void UpdateOrientation();