X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvImageContour.h;h=2c92abb07551028e6d0794dd99379ee2ceb6ec6f;hb=c2aaedddfc2ad8a9cefcbfcb6b67556198121984;hp=1cf2e569b9df57def7a2312176f0b107cac369f7;hpb=765020625fbc092d283e221e36c83e60a1844cb7;p=clitk.git diff --git a/vv/vvImageContour.h b/vv/vvImageContour.h index 1cf2e56..2c92abb 100644 --- a/vv/vvImageContour.h +++ b/vv/vvImageContour.h @@ -43,6 +43,7 @@ public: void SetLineWidth(double w); void SetImage(vvImage * image); void SetPreserveMemoryModeEnabled(bool b); + void SetDepth(double d) { mDepth = d; } protected: vvSlicer * mSlicer; @@ -54,6 +55,7 @@ protected: bool mHiddenImageIsUsed; vvImage * mHiddenImage; bool mDisplayModeIsPreserveMemory; + double mDepth; // For preserveMemory mode std::vector > mSquaresActorList; @@ -71,7 +73,7 @@ protected: void UpdateWithPreserveMemoryMode(); void UpdateWithFastCacheMode(); void CreateNewActor(int numImage); - void UpdateActor(vtkActor * actor, vtkMarchingSquares * squares, vtkImageClip * clipper, + void UpdateActor(vtkActor * actor, vtkPolyDataMapper * mapper, vtkMarchingSquares * squares, vtkImageClip * clipper, double threshold, int orientation, int slice); void CreateActor(int orientation, int slice); int ComputeCurrentOrientation(); @@ -79,6 +81,7 @@ protected: private: vvImageContour(); ~vvImageContour(); + int mPreviousTslice; }; // end class vvImageContour //------------------------------------------------------------------------------