]> Creatis software - clitk.git/blobdiff - vv/vvImageContour.h
- add other types/dim (warning still bugs ! do not use)
[clitk.git] / vv / vvImageContour.h
index ad1143dd963399ca01319dbc382e78da529fe1e2..d7cf62cc4db8eb6578996168f16bee03502b7cc6 100644 (file)
@@ -40,13 +40,15 @@ class vvImageContour
   void showActors();
   void setColor(double r, double g, double b);
   void setImage(vvImage::Pointer image);
-  void setPreserveModeEnabled(bool b);
+  void setPreserveMemoryModeEnabled(bool b);
 
  protected:
   vvSlicer * mSlicer;
   int mSlice;
   int mTSlice;
   double mValue;
+  int mPreviousTSlice;
+  double mPreviousValue;
   bool mHiddenImageIsUsed;
   vvImage::Pointer mHiddenImage;
   bool mDisplayModeIsPreserveMemory;
@@ -67,11 +69,11 @@ class vvImageContour
   void updateWithFastCacheMode();
   void createNewActor(vtkActor ** actor, 
                      vtkMarchingSquares ** squares, 
-                     vtkImageClip ** clipper);
+                     vtkImageClip ** clipper, int numImage);
   void updateActor(vtkActor * actor, 
                   vtkMarchingSquares * squares,
                   vtkImageClip * clipper, 
-                  int threshold, int orientation, int slice);
+                  double threshold, int orientation, int slice);
   void createActor(int orientation, int slice);
   int computeCurrentOrientation();