VTK
vtkMultiTimeStepAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMultiTimeStepAlgorithm.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 =========================================================================*/
26 #ifndef __vtkMultiTimeStepAlgorithm_h
27 #define __vtkMultiTimeStepAlgorithm_h
28 
29 #include "vtkCommonExecutionModelModule.h" // For export macro
30 #include "vtkAlgorithm.h"
31 #include "vtkSmartPointer.h" //needed for a private variable
32 
33 #include <vector> //needed for a private variable
34 
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
44 
45 protected:
47 
49  {
50  };
51 
53  static vtkInformationDoubleVectorKey* UPDATE_TIME_STEPS();
54 
55 
57 
60  {
61  return 1;
62  };
64 
66 
69  {
70  return 1;
71  };
73 
75 
78  {
79  return 1;
80  }
82 
84 
87  {
88  return 1;
89  }
91 
93 
94 private:
95  vtkMultiTimeStepAlgorithm(const vtkMultiTimeStepAlgorithm&); // Not implemented.
96  void operator=(const vtkMultiTimeStepAlgorithm&); // Not implemented.
97 
98 
99  vtkSmartPointer<vtkMultiBlockDataSet> MDataSet; //stores all the temporal data sets
100  int RequestUpdateIndex; //keep track of the time looping index
101  std::vector<double> UpdateTimeSteps; //store the requested time steps
102 };
103 
104 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
Key for double vector values.
a simple class to control print indentation
Definition: vtkIndent.h:38
Superclass for algorithms that would like to make multiple time requests.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Composite dataset that organizes datasets into blocks.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void PrintSelf(ostream &os, vtkIndent indent)