+ // For fast cache mode
+ int mPreviousSlice;
+ int mPreviousOrientation;
+ std::vector<std::vector<vtkActor*> > mListOfCachedContourActors;
+
+ // Functions
+ void initializeCacheMode();
+ void updateWithPreserveMemoryMode();
+ void updateWithFastCacheMode();
+ void createNewActor(vtkActor ** actor,
+ vtkMarchingSquares ** squares,
+ vtkImageClip ** clipper, int numImage);
+ void updateActor(vtkActor * actor,
+ vtkMarchingSquares * squares,
+ vtkImageClip * clipper,
+ int threshold, int orientation, int slice);
+ void createActor(int orientation, int slice);
+ int computeCurrentOrientation();
+