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=========================================================================*/
34#ifndef vtkTemporalDataSetCache_h
35#define vtkTemporalDataSetCache_h
36
37#include "vtkFiltersHybridModule.h" // For export macro
38
39#include "vtkAlgorithm.h"
40#include <map> // used for the cache
41
42class VTKFILTERSHYBRID_EXPORT vtkTemporalDataSetCache : public vtkAlgorithm
43{
44public:
47 void PrintSelf(ostream& os, vtkIndent indent);
48
50
54 void SetCacheSize(int size);
55 vtkGetMacro(CacheSize,int);
57
58protected:
61
63
64 typedef std::map<double,std::pair<unsigned long,vtkDataObject *> >
67
71 virtual int ProcessRequest(vtkInformation* request,
72 vtkInformationVector** inputVector,
73 vtkInformationVector* outputVector);
74
76 virtual int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info);
78 vtkInformationVector** inputVector ,
79 vtkInformationVector* outputVector);
80
84
88
89private:
90 vtkTemporalDataSetCache(const vtkTemporalDataSetCache&) VTK_DELETE_FUNCTION;
91 void operator=(const vtkTemporalDataSetCache&) VTK_DELETE_FUNCTION;
92};
93
94
95
96#endif
97
98
99
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
std::map< double, std::pair< unsigned long, vtkDataObject * > > CacheType
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
see vtkAlgorithm for details
static vtkTemporalDataSetCache * New()
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation *info)
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetCacheSize(int size)
This is the maximum number of time steps that can be retained in memory.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ size
Definition: vtkX3D.h:253