vtkCPDataDescription.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkCPDataDescription_h
4 #define vtkCPDataDescription_h
5 
6 #include "vtkObject.h"
7 #include "vtkPVCatalystModule.h" // needed for exports
8 
9 class vtkFieldData;
11 
16 {
17 public:
18  static vtkCPDataDescription* New();
20  void PrintSelf(ostream& os, vtkIndent indent) override;
21 
23  void SetTimeData(double time, vtkIdType timeStep);
24 
26  vtkGetMacro(TimeStep, vtkIdType);
27 
29  vtkGetMacro(Time, double);
30 
35  vtkSetMacro(ForceOutput, bool);
36 
41  vtkBooleanMacro(ForceOutput, bool);
42 
44  vtkGetMacro(ForceOutput, bool);
45 
49  void AddInput(const char* gridName);
50 
52  unsigned int GetNumberOfInputDescriptions();
53 
56  void ResetInputDescriptions();
57 
62  void ResetAll();
63 
65  vtkCPInputDataDescription* GetInputDescription(unsigned int);
66 
68  const char* GetInputDescriptionName(unsigned int);
69 
71  vtkCPInputDataDescription* GetInputDescriptionByName(const char*);
72 
74  bool GetIfGridIsNecessary(const char*);
75 
77  bool GetIfAnyGridNecessary();
78 
81  void SetUserData(vtkFieldData* UserData);
82 
85  vtkGetObjectMacro(UserData, vtkFieldData);
86 
89  void Copy(vtkCPDataDescription*);
90 
91 protected:
93  ~vtkCPDataDescription() override;
94 
95 private:
97  void operator=(const vtkCPDataDescription&) = delete;
98 
100  double Time;
101 
103  vtkIdType TimeStep;
104 
106  bool IsTimeDataSet;
107 
112  bool ForceOutput;
113 
117  vtkFieldData* UserData;
118 
119  class vtkInternals;
120  vtkInternals* Internals;
121 };
122 
123 #endif
This class provides the data description for each input for the coprocessor pipelines.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
int vtkIdType
#define VTKPVCATALYST_EXPORT
static vtkObject * New()
void operator=(const vtkObjectBase &)
This class provides the description of the data for the coprocessor pipelines.