VTK  9.3.20240422
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
22VTK_ABI_NAMESPACE_BEGIN
23class VTKFILTERSGENERAL_EXPORT vtkTimeSourceExample : public vtkUnstructuredGridAlgorithm
24{
25public:
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
63protected:
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
83 double* Steps;
84 double* Values;
85
86private:
88 void operator=(const vtkTimeSourceExample&) = delete;
89};
90
91VTK_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
static vtkTimeSourceExample * New()
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.
Superclass for algorithms that produce only unstructured grid as output.
int vtkTypeBool
Definition vtkABI.h:64