VTK
vtkTemporalDataSetCache.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTemporalDataSetCache.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
33 #ifndef __vtkTemporalDataSetCache_h
34 #define __vtkTemporalDataSetCache_h
35 
37 
38 #include <vtkstd/map> // used for the cache
39 
41 {
42 public:
43  static vtkTemporalDataSetCache *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
50  void SetCacheSize(int size);
51  vtkGetMacro(CacheSize,int);
53 
54 protected:
57 
58  int CacheSize;
59 
60 //BTX
61  typedef vtkstd::map<double,vtkstd::pair<unsigned long,vtkDataObject *> >
64 //ETX
65 
67 
68  virtual int RequestUpdateExtent (vtkInformation *,
71 
72  virtual int RequestData(vtkInformation *,
75 
76 private:
77  vtkTemporalDataSetCache(const vtkTemporalDataSetCache&); // Not implemented.
78  void operator=(const vtkTemporalDataSetCache&); // Not implemented.
79 };
80 
81 
82 
83 #endif
84 
85 
86