VTK  9.0.1
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 =========================================================================*/
31 #ifndef vtkTemporalDataSetCache_h
32 #define vtkTemporalDataSetCache_h
33 
34 #include "vtkFiltersHybridModule.h" // For export macro
35 
36 #include "vtkAlgorithm.h"
37 #include <map> // used for the cache
38 
39 class VTKFILTERSHYBRID_EXPORT vtkTemporalDataSetCache : public vtkAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
51  void SetCacheSize(int size);
52  vtkGetMacro(CacheSize, int);
54 
55 protected:
58 
59  int CacheSize;
60 
61  typedef std::map<double, std::pair<unsigned long, vtkDataObject*> > CacheType;
63 
68  vtkInformationVector* outputVector) override;
69 
71  int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
72  virtual int RequestDataObject(
73  vtkInformation*, vtkInformationVector** inputVector, vtkInformationVector* outputVector);
74 
76 
78 
79 private:
81  void operator=(const vtkTemporalDataSetCache&) = delete;
82 };
83 
84 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:54
a simple class to control print indentation
Definition: vtkIndent.h:34
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
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
~vtkTemporalDataSetCache() override
int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation *info) override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkTemporalDataSetCache * New()
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:382
@ port
Definition: vtkX3D.h:453
@ size
Definition: vtkX3D.h:259
int vtkTypeBool
Definition: vtkABI.h:69