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 =========================================================================*/
27 #ifndef vtkTimeSourceExample_h
28 #define vtkTimeSourceExample_h
29 
30 #include "vtkFiltersGeneralModule.h" // For export macro
32 
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
44  vtkSetClampMacro(Analytic, int, 0, 1);
45  vtkGetMacro(Analytic, int);
46  vtkBooleanMacro(Analytic, int);
48 
50 
53  vtkSetMacro(XAmplitude, double);
54  vtkGetMacro(XAmplitude, double);
55  vtkSetMacro(YAmplitude, double);
56  vtkGetMacro(YAmplitude, double);
58 
60 
63  vtkSetClampMacro(Growing, int, 0, 1);
64  vtkGetMacro(Growing, int);
65  vtkBooleanMacro(Growing, int);
67 
68 protected:
71 
75 
79 
80 
81  void LookupTimeAndValue(double &time, double &value);
82  double ValueFunction(double time);
83  double XFunction(double time);
84  double YFunction(double time);
85  int NumCellsFunction(double time);
86 
87  int Analytic;
88  double XAmplitude;
89  double YAmplitude;
90  int Growing;
91 
92  int NumSteps;
93  double *Steps;
94  double *Values;
95 private:
96  vtkTimeSourceExample(const vtkTimeSourceExample&); // Not implemented.
97  void operator=(const vtkTimeSourceExample&); // Not implemented.
98 };
99 
100 #endif
101 
vtkTimeSourceExample::YFunction
double YFunction(double time)
vtkTimeSourceExample::vtkTimeSourceExample
vtkTimeSourceExample()
vtkTimeSourceExample::ValueFunction
double ValueFunction(double time)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTimeSourceExample::Growing
int Growing
Definition: vtkTimeSourceExample.h:90
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkTimeSourceExample::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkX3D::time
@ time
Definition: vtkX3D.h:497
vtkTimeSourceExample::Values
double * Values
Definition: vtkTimeSourceExample.h:94
vtkTimeSourceExample::LookupTimeAndValue
void LookupTimeAndValue(double &time, double &value)
vtkTimeSourceExample::NumSteps
int NumSteps
Definition: vtkTimeSourceExample.h:92
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkFiltersGeneralModule.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTimeSourceExample::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTimeSourceExample::YAmplitude
double YAmplitude
Definition: vtkTimeSourceExample.h:89
VTKFILTERSGENERAL_EXPORT
#define VTKFILTERSGENERAL_EXPORT
Definition: vtkFiltersGeneralModule.h:15
vtkTimeSourceExample::NumCellsFunction
int NumCellsFunction(double time)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkTimeSourceExample::Steps
double * Steps
Definition: vtkTimeSourceExample.h:93
vtkTimeSourceExample::XAmplitude
double XAmplitude
Definition: vtkTimeSourceExample.h:88
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkTimeSourceExample::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkTimeSourceExample::Analytic
int Analytic
Definition: vtkTimeSourceExample.h:87
vtkTimeSourceExample::~vtkTimeSourceExample
~vtkTimeSourceExample()
vtkTimeSourceExample
Definition: vtkTimeSourceExample.h:34
vtkTimeSourceExample::New
static vtkTimeSourceExample * New()
vtkTimeSourceExample::XFunction
double XFunction(double time)