forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtkDSPFilterGroup.h
92 lines (70 loc) · 3.34 KB
/
vtkDSPFilterGroup.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*=========================================================================
Program: Visualization Toolkit
Module: vtkDSPFilterGroup.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*----------------------------------------------------------------------------
Copyright (c) Sandia Corporation
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
----------------------------------------------------------------------------*/
/**
* @class vtkDSPFilterGroup
* @brief used by the Exodus readers
*
* vtkDSPFilterGroup is used by vtkExodusReader, vtkExodusIIReader and
* vtkPExodusReader to do temporal smoothing of data
* @sa
* vtkDSPFilterDefinition vtkExodusReader vtkExodusIIReader vtkPExodusReader
*/
#ifndef vtkDSPFilterGroup_h
#define vtkDSPFilterGroup_h
#include "vtkFiltersHybridModule.h" // For export macro
#include "vtkObject.h"
class vtkDSPFilterGroupVectorIntSTLCloak;
class vtkDSPFilterGroupVectorVectorIntSTLCloak;
class vtkDSPFilterGroupVectorArraySTLCloak;
class vtkDSPFilterGroupVectorVectorArraySTLCloak;
class vtkDSPFilterGroupVectorStringSTLCloak;
class vtkDSPFilterGroupVectorDefinitionSTLCloak;
class vtkFloatArray;
class vtkDSPFilterDefinition;
class VTKFILTERSHYBRID_EXPORT vtkDSPFilterGroup : public vtkObject
{
public:
static vtkDSPFilterGroup* New();
vtkTypeMacro(vtkDSPFilterGroup, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent) override;
void AddFilter(vtkDSPFilterDefinition* filter);
void RemoveFilter(const char* a_outputVariableName);
bool IsThisInputVariableInstanceNeeded(const char* a_name, int a_timestep, int a_outputTimestep);
bool IsThisInputVariableInstanceCached(const char* a_name, int a_timestep);
void AddInputVariableInstance(const char* a_name, int a_timestep, vtkFloatArray* a_data);
vtkFloatArray* GetOutput(int a_whichFilter, int a_whichTimestep, int& a_instancesCalculated);
vtkFloatArray* GetCachedInput(int a_whichFilter, int a_whichTimestep);
vtkFloatArray* GetCachedOutput(int a_whichFilter, int a_whichTimestep);
const char* GetInputVariableName(int a_whichFilter);
int GetNumFilters();
void Copy(vtkDSPFilterGroup* other);
vtkDSPFilterDefinition* GetFilter(int a_whichFilter);
vtkDSPFilterGroupVectorDefinitionSTLCloak* /*std::vector<vtkDSPFilterDefinition *>*/
FilterDefinitions;
protected:
vtkDSPFilterGroup();
~vtkDSPFilterGroup() override;
vtkDSPFilterGroupVectorArraySTLCloak* /*std::vector<vtkFloatArray *>*/ CachedInputs;
vtkDSPFilterGroupVectorStringSTLCloak* /*std::vector<std::string>*/ CachedInputNames;
vtkDSPFilterGroupVectorIntSTLCloak* /*std::vector<int>*/ CachedInputTimesteps;
vtkDSPFilterGroupVectorVectorArraySTLCloak* /*std::vector< std::vector<vtkFloatArray *> >*/
CachedOutputs;
vtkDSPFilterGroupVectorVectorIntSTLCloak* /*std::vector< std::vector<int> >*/
CachedOutputTimesteps;
private:
vtkDSPFilterGroup(const vtkDSPFilterGroup&) = delete;
void operator=(const vtkDSPFilterGroup&) = delete;
};
#endif