]> Creatis software - clitk.git/blobdiff - vv/vvSlicer.h
mechanism for hiding experimental stuff in vv
[clitk.git] / vv / vvSlicer.h
index 184df43176a1efc63c974d76f499ce9cb9c2e741..c2efcd805a0ca4c964c96df3e200bd96b81931ca 100644 (file)
@@ -1,10 +1,7 @@
 /*=========================================================================
 
  Program:   vv
- Module:    $RCSfile: vvSlicer.h,v $
  Language:  C++
- Date:      $Date: 2010/01/06 13:31:57 $
- Version:   $Revision: 1.1 $
  Author :   Pierre Seroul (pierre.seroul@gmail.com)
 
 Copyright (C) 2008
@@ -54,7 +51,6 @@ class vvGlyph2D;
 class vvGlyphSource;
 class vtkCursor3D;
 class vtkCutter;
-class vtkPlane;
 class vtkAssignAttribute;
 class vtkScalarBarActor;
 
@@ -152,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 +160,13 @@ public:
     ///Toggle temporal superposition of contours
     void ToggleContourSuperposition();
 
+    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();