VTK
vtkTimeSourceExample.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTimeSourceExample.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=========================================================================*/
28#ifndef vtkTimeSourceExample_h
29#define vtkTimeSourceExample_h
30
31#include "vtkFiltersGeneralModule.h" // For export macro
33
34class VTKFILTERSGENERAL_EXPORT vtkTimeSourceExample : public vtkUnstructuredGridAlgorithm
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40
42
46 vtkSetClampMacro(Analytic, int, 0, 1);
47 vtkGetMacro(Analytic, int);
48 vtkBooleanMacro(Analytic, int);
50
52
57 vtkSetMacro(XAmplitude, double);
58 vtkGetMacro(XAmplitude, double);
59 vtkSetMacro(YAmplitude, double);
60 vtkGetMacro(YAmplitude, double);
62
64
69 vtkSetClampMacro(Growing, int, 0, 1);
70 vtkGetMacro(Growing, int);
71 vtkBooleanMacro(Growing, int);
73
74protected:
76 ~vtkTimeSourceExample() VTK_OVERRIDE;
77
78 int RequestInformation(vtkInformation*,
80 vtkInformationVector*) VTK_OVERRIDE;
81
82 int RequestData(vtkInformation*,
84 vtkInformationVector*) VTK_OVERRIDE;
85
86
87 void LookupTimeAndValue(double &time, double &value);
88 double ValueFunction(double time);
89 double XFunction(double time);
90 double YFunction(double time);
91 int NumCellsFunction(double time);
92
93 int Analytic;
94 double XAmplitude;
95 double YAmplitude;
96 int Growing;
97
98 int NumSteps;
99 double *Steps;
100 double *Values;
101private:
102 vtkTimeSourceExample(const vtkTimeSourceExample&) VTK_DELETE_FUNCTION;
103 void operator=(const vtkTimeSourceExample&) VTK_DELETE_FUNCTION;
104};
105
106#endif
107
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
static vtkTimeSourceExample * New()
~vtkTimeSourceExample() override
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.
@ value
Definition: vtkX3D.h:220
@ time
Definition: vtkX3D.h:497
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.