Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageCacheFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageCacheFilter.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00039 #ifndef __vtkImageCacheFilter_h
00040 #define __vtkImageCacheFilter_h
00041 
00042 #include "vtkImageToImageFilter.h"
00043 
00044 class vtkExecutive;
00045 
00046 class VTK_IMAGING_EXPORT vtkImageCacheFilter : public vtkImageToImageFilter
00047 {
00048 public:
00049   static vtkImageCacheFilter *New();
00050   vtkTypeRevisionMacro(vtkImageCacheFilter,vtkImageToImageFilter);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00052 
00054 
00056   void SetCacheSize(int size);
00057   vtkGetMacro(CacheSize, int);
00059   
00060 #ifndef VTK_USE_EXECUTIVES
00061 
00062   void UpdateData(vtkDataObject *outData);
00063 #endif
00064   
00065 protected:
00066   vtkImageCacheFilter();
00067   ~vtkImageCacheFilter();
00068 
00069   int CacheSize;
00070 
00071   // Create a default executive.
00072   virtual vtkExecutive* CreateDefaultExecutive();
00073 
00074 #ifdef VTK_USE_EXECUTIVES
00075   virtual void ExecuteData(vtkDataObject *);
00076 #endif
00077   
00078   vtkImageData **Data;
00079   // I do not have write access to UpdateTime.
00080   unsigned long *Times;
00081 private:
00082   vtkImageCacheFilter(const vtkImageCacheFilter&);  // Not implemented.
00083   void operator=(const vtkImageCacheFilter&);  // Not implemented.
00084 };
00085 
00086 
00087 
00088 #endif
00089 
00090 
00091