VTK  9.3.20240419
vtkTimeSourceExample.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkTimeSourceExample_h
17 #define vtkTimeSourceExample_h
18 
19 #include "vtkFiltersGeneralModule.h" // For export macro
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class VTKFILTERSGENERAL_EXPORT vtkTimeSourceExample : public vtkUnstructuredGridAlgorithm
24 {
25 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
35  vtkSetClampMacro(Analytic, vtkTypeBool, 0, 1);
36  vtkGetMacro(Analytic, vtkTypeBool);
37  vtkBooleanMacro(Analytic, vtkTypeBool);
39 
41 
46  vtkSetMacro(XAmplitude, double);
47  vtkGetMacro(XAmplitude, double);
48  vtkSetMacro(YAmplitude, double);
49  vtkGetMacro(YAmplitude, double);
51 
53 
58  vtkSetClampMacro(Growing, vtkTypeBool, 0, 1);
59  vtkGetMacro(Growing, vtkTypeBool);
60  vtkBooleanMacro(Growing, vtkTypeBool);
62 
63 protected:
66 
68 
70 
71  void LookupTimeAndValue(double& time, double& value);
72  double ValueFunction(double time);
73  double XFunction(double time);
74  double YFunction(double time);
75  int NumCellsFunction(double time);
76 
78  double XAmplitude;
79  double YAmplitude;
81 
82  int NumSteps;
83  double* Steps;
84  double* Values;
85 
86 private:
88  void operator=(const vtkTimeSourceExample&) = delete;
89 };
90 
91 VTK_ABI_NAMESPACE_END
92 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int NumCellsFunction(double time)
void LookupTimeAndValue(double &time, double &value)
double ValueFunction(double time)
~vtkTimeSourceExample() override
double XFunction(double time)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
double YFunction(double time)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTimeSourceExample * New()
Superclass for algorithms that produce only unstructured grid as output.
@ value
Definition: vtkX3D.h:220
@ time
Definition: vtkX3D.h:497
int vtkTypeBool
Definition: vtkABI.h:64