VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filters
General
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
31
#include "
vtkUnstructuredGridAlgorithm.h
"
32
33
class
VTKFILTERSGENERAL_EXPORT
vtkTimeSourceExample
:
public
vtkUnstructuredGridAlgorithm
34
{
35
public
:
36
static
vtkTimeSourceExample
*
New
();
37
vtkTypeMacro(
vtkTimeSourceExample
,
vtkUnstructuredGridAlgorithm
);
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
:
69
vtkTimeSourceExample
();
70
~
vtkTimeSourceExample
();
71
72
virtual
int
RequestInformation
(
vtkInformation
*,
73
vtkInformationVector
**,
74
vtkInformationVector
*);
75
76
virtual
int
RequestData
(
vtkInformation
*,
77
vtkInformationVector
**,
78
vtkInformationVector
*);
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
Generated on Thu May 24 2012 22:22:21 for VTK by
1.8.1