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 =========================================================================*/
38 #ifndef vtkWarpScalar_h
39 #define vtkWarpScalar_h
40 
41 #include "vtkFiltersGeneralModule.h" // For export macro
42 #include "vtkPointSetAlgorithm.h"
43 
44 class vtkDataArray;
45 
46 class VTKFILTERSGENERAL_EXPORT vtkWarpScalar : public vtkPointSetAlgorithm
47 {
48 public:
49  static vtkWarpScalar *New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  vtkSetMacro(ScaleFactor,double);
58  vtkGetMacro(ScaleFactor,double);
60 
62 
66  vtkSetMacro(UseNormal,vtkTypeBool);
67  vtkGetMacro(UseNormal,vtkTypeBool);
68  vtkBooleanMacro(UseNormal,vtkTypeBool);
70 
72 
76  vtkSetVector3Macro(Normal,double);
77  vtkGetVectorMacro(Normal,double,3);
79 
81 
86  vtkSetMacro(XYPlane,vtkTypeBool);
87  vtkGetMacro(XYPlane,vtkTypeBool);
88  vtkBooleanMacro(XYPlane,vtkTypeBool);
90 
92 
93 protected:
94  vtkWarpScalar();
95  ~vtkWarpScalar() override;
96 
97  int RequestDataObject(vtkInformation *request,
98  vtkInformationVector **inputVector,
99  vtkInformationVector *outputVector) override;
102  vtkInformationVector *) override;
103 
104  double ScaleFactor;
106  double Normal[3];
108 
109  double *(vtkWarpScalar::*PointNormal)(vtkIdType id, vtkDataArray *normals);
110  double *DataNormal(vtkIdType id, vtkDataArray *normals=nullptr);
111  double *InstanceNormal(vtkIdType id, vtkDataArray *normals=nullptr);
112  double *ZNormal(vtkIdType id, vtkDataArray *normals=nullptr);
113 
114 private:
115  vtkWarpScalar(const vtkWarpScalar&) = delete;
116  void operator=(const vtkWarpScalar&) = delete;
117 };
118 
119 #endif
vtkWarpScalar::UseNormal
vtkTypeBool UseNormal
Definition: vtkWarpScalar.h:105
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:43
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkX3D::Normal
Definition: vtkX3D.h:45
vtkWarpScalar
deform geometry with scalar data
Definition: vtkWarpScalar.h:46
vtkPointSetAlgorithm.h
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
vtkWarpScalar::XYPlane
vtkTypeBool XYPlane
Definition: vtkWarpScalar.h:107
vtkX3D::port
Definition: vtkX3D.h:447
vtkPointSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkPointSetAlgorithm.h:132
vtkPointSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkPointSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::info
Definition: vtkX3D.h:376
vtkPointSetAlgorithm::New
static vtkPointSetAlgorithm * New()
vtkWarpScalar::ScaleFactor
double ScaleFactor
Definition: vtkWarpScalar.h:104
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkWarpScalar::PointNormal
double *(vtkWarpScalar::* PointNormal)(vtkIdType id, vtkDataArray *normals)
Definition: vtkWarpScalar.h:109
vtkPointSetAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.