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 
36 #include "vtkFiltersHybridModule.h" // For export macro
37 
38 #include "vtkAlgorithm.h"
39 #include <map> // used for the cache
40 
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
51  void SetCacheSize(int size);
52  vtkGetMacro(CacheSize,int);
54 
55 protected:
58 
59  int CacheSize;
60 
61 //BTX
62  typedef std::map<double,std::pair<unsigned long,vtkDataObject *> >
65 //ETX
66 
67 
69 
70  virtual int ProcessRequest(vtkInformation* request,
71  vtkInformationVector** inputVector,
72  vtkInformationVector* outputVector);
74 
78  vtkInformationVector** inputVector ,
79  vtkInformationVector* outputVector);
80 
84 
85  virtual int RequestData(vtkInformation *,
88 
89 private:
90  vtkTemporalDataSetCache(const vtkTemporalDataSetCache&); // Not implemented.
91  void operator=(const vtkTemporalDataSetCache&); // Not implemented.
92 };
93 
94 
95 
96 #endif
97 
98 
99 
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkTemporalDataSetCache::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkTemporalDataSetCache::vtkTemporalDataSetCache
vtkTemporalDataSetCache()
vtkTemporalDataSetCache::SetCacheSize
void SetCacheSize(int size)
vtkAlgorithm.h
vtkTemporalDataSetCache::CacheSize
int CacheSize
Definition: vtkTemporalDataSetCache.h:59
vtkTemporalDataSetCache::CacheType
std::map< double, std::pair< unsigned long, vtkDataObject * > > CacheType
Definition: vtkTemporalDataSetCache.h:63
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkNotUsed
#define vtkNotUsed(x)
Definition: vtkSetGet.h:557
VTKFILTERSHYBRID_EXPORT
#define VTKFILTERSHYBRID_EXPORT
Definition: vtkFiltersHybridModule.h:15
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTemporalDataSetCache::Cache
CacheType Cache
Definition: vtkTemporalDataSetCache.h:64
vtkTemporalDataSetCache::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkTemporalDataSetCache::ProcessRequest
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkFiltersHybridModule.h
vtkTemporalDataSetCache::FillOutputPortInformation
virtual int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation *info)
vtkTemporalDataSetCache::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTemporalDataSetCache::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTemporalDataSetCache::New
static vtkTemporalDataSetCache * New()
vtkTemporalDataSetCache::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTemporalDataSetCache::~vtkTemporalDataSetCache
~vtkTemporalDataSetCache()
vtkTemporalDataSetCache
cache time steps
Definition: vtkTemporalDataSetCache.h:42
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843