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:
36  static vtkTimeSourceExample *New();
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 
76  virtual int RequestData(vtkInformation*,
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 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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:38
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKFILTERSGENERAL_EXPORT
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.