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:
42  static vtkTemporalDataSetCache* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
51  void SetCacheSize(int size);
52  vtkGetMacro(CacheSize, int);
54 
55 protected:
57  ~vtkTemporalDataSetCache() override;
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 
75  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
76 
77  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
78 
79 private:
81  void operator=(const vtkTemporalDataSetCache&) = delete;
82 };
83 
84 #endif
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkAlgorithm.h
vtkTemporalDataSetCache::CacheSize
int CacheSize
Definition: vtkTemporalDataSetCache.h:59
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkTemporalDataSetCache::CacheType
std::map< double, std::pair< unsigned long, vtkDataObject * > > CacheType
Definition: vtkTemporalDataSetCache.h:61
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkTemporalDataSetCache::Cache
CacheType Cache
Definition: vtkTemporalDataSetCache.h:62
vtkX3D::size
@ size
Definition: vtkX3D.h:259
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::ProcessRequest
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkTemporalDataSetCache
cache time steps
Definition: vtkTemporalDataSetCache.h:39