VTK
vtkWarpScalar.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWarpScalar.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 =========================================================================*/
44 #ifndef vtkWarpScalar_h
45 #define vtkWarpScalar_h
46 
47 #include "vtkFiltersGeneralModule.h" // For export macro
48 #include "vtkPointSetAlgorithm.h"
49 
50 class vtkDataArray;
51 
52 class VTKFILTERSGENERAL_EXPORT vtkWarpScalar : public vtkPointSetAlgorithm
53 {
54 public:
55  static vtkWarpScalar *New();
57  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
58 
60 
63  vtkSetMacro(ScaleFactor,double);
64  vtkGetMacro(ScaleFactor,double);
66 
68 
72  vtkSetMacro(UseNormal,int);
73  vtkGetMacro(UseNormal,int);
74  vtkBooleanMacro(UseNormal,int);
76 
78 
82  vtkSetVector3Macro(Normal,double);
83  vtkGetVectorMacro(Normal,double,3);
85 
87 
92  vtkSetMacro(XYPlane,int);
93  vtkGetMacro(XYPlane,int);
94  vtkBooleanMacro(XYPlane,int);
96 
97  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
98 
99 protected:
100  vtkWarpScalar();
101  ~vtkWarpScalar() VTK_OVERRIDE;
102 
103  int RequestDataObject(vtkInformation *request,
104  vtkInformationVector **inputVector,
105  vtkInformationVector *outputVector) VTK_OVERRIDE;
106  int RequestData(vtkInformation *,
108  vtkInformationVector *) VTK_OVERRIDE;
109 
110  double ScaleFactor;
111  int UseNormal;
112  double Normal[3];
113  int XYPlane;
114 
115  double *(vtkWarpScalar::*PointNormal)(vtkIdType id, vtkDataArray *normals);
116  double *DataNormal(vtkIdType id, vtkDataArray *normals=NULL);
117  double *InstanceNormal(vtkIdType id, vtkDataArray *normals=NULL);
118  double *ZNormal(vtkIdType id, vtkDataArray *normals=NULL);
119 
120 private:
121  vtkWarpScalar(const vtkWarpScalar&) VTK_DELETE_FUNCTION;
122  void operator=(const vtkWarpScalar&) VTK_DELETE_FUNCTION;
123 };
124 
125 #endif
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkIdType
Definition: vtkType.h:287
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
Superclass for algorithms that produce output of the same type as input.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkPointSetAlgorithm * New()
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
deform geometry with scalar data
Definition: vtkWarpScalar.h:52