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 
31 
33 {
34 public:
35  static vtkTimeSourceExample *New();
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:
70 
71  virtual int RequestInformation(vtkInformation*,
74 
75  virtual int RequestData(vtkInformation*,
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 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
static vtkUnstructuredGridAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
a simple class to control print indentation
Definition: vtkIndent.h:37
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.