/usr/include/vtk-7.1/vtkWarpScalar.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 107 108 109 110 111 112 113 114 115 116 117 118 119 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkWarpScalar.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 vtkWarpScalar
* @brief deform geometry with scalar data
*
* vtkWarpScalar is a filter that modifies point coordinates by moving
* points along point normals by the scalar amount times the scale factor.
* Useful for creating carpet or x-y-z plots.
*
* If normals are not present in data, the Normal instance variable will
* be used as the direction along which to warp the geometry. If normals are
* present but you would like to use the Normal instance variable, set the
* UseNormal boolean to true.
*
* If XYPlane boolean is set true, then the z-value is considered to be
* a scalar value (still scaled by scale factor), and the displacement is
* along the z-axis. If scalars are also present, these are copied through
* and can be used to color the surface.
*
* Note that the filter passes both its point data and cell data to
* its output, except for normals, since these are distorted by the
* warping.
*/
#ifndef vtkWarpScalar_h
#define vtkWarpScalar_h
#include "vtkFiltersGeneralModule.h" // For export macro
#include "vtkPointSetAlgorithm.h"
class vtkDataArray;
class VTKFILTERSGENERAL_EXPORT vtkWarpScalar : public vtkPointSetAlgorithm
{
public:
static vtkWarpScalar *New();
vtkTypeMacro(vtkWarpScalar,vtkPointSetAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
//@{
/**
* Specify value to scale displacement.
*/
vtkSetMacro(ScaleFactor,double);
vtkGetMacro(ScaleFactor,double);
//@}
//@{
/**
* Turn on/off use of user specified normal. If on, data normals
* will be ignored and instance variable Normal will be used instead.
*/
vtkSetMacro(UseNormal,int);
vtkGetMacro(UseNormal,int);
vtkBooleanMacro(UseNormal,int);
//@}
//@{
/**
* Normal (i.e., direction) along which to warp geometry. Only used
* if UseNormal boolean set to true or no normals available in data.
*/
vtkSetVector3Macro(Normal,double);
vtkGetVectorMacro(Normal,double,3);
//@}
//@{
/**
* Turn on/off flag specifying that input data is x-y plane. If x-y plane,
* then the z value is used to warp the surface in the z-axis direction
* (times the scale factor) and scalars are used to color the surface.
*/
vtkSetMacro(XYPlane,int);
vtkGetMacro(XYPlane,int);
vtkBooleanMacro(XYPlane,int);
//@}
int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
protected:
vtkWarpScalar();
~vtkWarpScalar() VTK_OVERRIDE;
int RequestDataObject(vtkInformation *request,
vtkInformationVector **inputVector,
vtkInformationVector *outputVector) VTK_OVERRIDE;
int RequestData(vtkInformation *,
vtkInformationVector **,
vtkInformationVector *) VTK_OVERRIDE;
double ScaleFactor;
int UseNormal;
double Normal[3];
int XYPlane;
double *(vtkWarpScalar::*PointNormal)(vtkIdType id, vtkDataArray *normals);
double *DataNormal(vtkIdType id, vtkDataArray *normals=NULL);
double *InstanceNormal(vtkIdType id, vtkDataArray *normals=NULL);
double *ZNormal(vtkIdType id, vtkDataArray *normals=NULL);
private:
vtkWarpScalar(const vtkWarpScalar&) VTK_DELETE_FUNCTION;
void operator=(const vtkWarpScalar&) VTK_DELETE_FUNCTION;
};
#endif
|