VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
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 "
vtkUnstructuredGridAlgorithm.h
"
31
32
class
VTK_GRAPHICS_EXPORT
vtkTimeSourceExample
:
public
vtkUnstructuredGridAlgorithm
33
{
34
public
:
35
static
vtkTimeSourceExample
*
New
();
36
vtkTypeMacro(
vtkTimeSourceExample
,
vtkUnstructuredGridAlgorithm
);
37
void
PrintSelf
(ostream& os,
vtkIndent
indent);
38
40
43
vtkSetClampMacro(Analytic,
int
, 0, 1);
44
vtkGetMacro(Analytic,
int
);
45
vtkBooleanMacro(Analytic,
int
);
47
49
52
vtkSetMacro(XAmplitude,
double
);
53
vtkGetMacro(XAmplitude,
double
);
54
vtkSetMacro(YAmplitude,
double
);
55
vtkGetMacro(YAmplitude,
double
);
57
59
62
vtkSetClampMacro(Growing,
int
, 0, 1);
63
vtkGetMacro(Growing,
int
);
64
vtkBooleanMacro(Growing,
int
);
66
67
protected
:
68
vtkTimeSourceExample
();
69
~
vtkTimeSourceExample
();
70
71
virtual
int
RequestInformation
(
vtkInformation
*,
72
vtkInformationVector
**,
73
vtkInformationVector
*);
74
75
virtual
int
RequestData
(
vtkInformation
*,
76
vtkInformationVector
**,
77
vtkInformationVector
*);
78
79
80
void
LookupTimeAndValue(
double
&
time
,
double
&
value
);
81
double
ValueFunction(
double
time
);
82
double
XFunction(
double
time
);
83
double
YFunction(
double
time
);
84
int
NumCellsFunction(
double
time
);
85
86
int
Analytic
;
87
double
XAmplitude
;
88
double
YAmplitude
;
89
int
Growing
;
90
91
int
NumSteps
;
92
double
*
Steps
;
93
double
*
Values
;
94
private
:
95
vtkTimeSourceExample
(
const
vtkTimeSourceExample
&);
// Not implemented.
96
void
operator=(
const
vtkTimeSourceExample
&);
// Not implemented.
97
};
98
99
#endif
100
Generated on Wed Nov 21 2012 21:33:55 for VTK by
1.8.2