/usr/include/vtk-7.1/vtkTimeSourceExample.h is in libvtk7-dev 7.1.1+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkTimeSourceExample.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkTimeSource
* @brief creates a simple time varying data set.
*
* Creates a small easily understood time varying data set for testing.
* The output is a vtkUntructuredGrid in which the point and cell values vary
* over time in a sin wave. The analytic ivar controls whether the output
* corresponds to a step function over time or is continuous.
* The X and Y Amplitude ivars make the output move in the X and Y directions
* over time. The Growing ivar makes the number of cells in the output grow
* and then shrink over time.
*/
#ifndef vtkTimeSourceExample_h
#define vtkTimeSourceExample_h
#include "vtkFiltersGeneralModule.h" // For export macro
#include "vtkUnstructuredGridAlgorithm.h"
class VTKFILTERSGENERAL_EXPORT vtkTimeSourceExample : public vtkUnstructuredGridAlgorithm
{
public:
static vtkTimeSourceExample *New();
vtkTypeMacro(vtkTimeSourceExample,vtkUnstructuredGridAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
//@{
/**
* When off (the default) this source produces a discrete set of values.
* When on, this source produces a value analytically for any queried time.
*/
vtkSetClampMacro(Analytic, int, 0, 1);
vtkGetMacro(Analytic, int);
vtkBooleanMacro(Analytic, int);
//@}
//@{
/**
* When 0.0 (the default) this produces a data set that is stationary.
* When on the data set moves in the X/Y plane over a sin wave over time,
* amplified by the value.
*/
vtkSetMacro(XAmplitude, double);
vtkGetMacro(XAmplitude, double);
vtkSetMacro(YAmplitude, double);
vtkGetMacro(YAmplitude, double);
//@}
//@{
/**
* When off (the default) this produces a single cell data set.
* When on the the number of cells (in the Y direction) grows
* and shrinks over time along a hat function.
*/
vtkSetClampMacro(Growing, int, 0, 1);
vtkGetMacro(Growing, int);
vtkBooleanMacro(Growing, int);
//@}
protected:
vtkTimeSourceExample();
~vtkTimeSourceExample() VTK_OVERRIDE;
int RequestInformation(vtkInformation*,
vtkInformationVector**,
vtkInformationVector*) VTK_OVERRIDE;
int RequestData(vtkInformation*,
vtkInformationVector**,
vtkInformationVector*) VTK_OVERRIDE;
void LookupTimeAndValue(double &time, double &value);
double ValueFunction(double time);
double XFunction(double time);
double YFunction(double time);
int NumCellsFunction(double time);
int Analytic;
double XAmplitude;
double YAmplitude;
int Growing;
int NumSteps;
double *Steps;
double *Values;
private:
vtkTimeSourceExample(const vtkTimeSourceExample&) VTK_DELETE_FUNCTION;
void operator=(const vtkTimeSourceExample&) VTK_DELETE_FUNCTION;
};
#endif
|