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 =========================================================================*/
43 #ifndef vtkWarpScalar_h
44 #define vtkWarpScalar_h
45 
46 #include "vtkFiltersGeneralModule.h" // For export macro
47 #include "vtkPointSetAlgorithm.h"
48 
49 class vtkDataArray;
50 
52 {
53 public:
54  static vtkWarpScalar *New();
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
60  vtkSetMacro(ScaleFactor,double);
61  vtkGetMacro(ScaleFactor,double);
63 
65 
67  vtkSetMacro(UseNormal,int);
68  vtkGetMacro(UseNormal,int);
69  vtkBooleanMacro(UseNormal,int);
71 
73 
78 
80 
84  vtkSetMacro(XYPlane,int);
85  vtkGetMacro(XYPlane,int);
86  vtkBooleanMacro(XYPlane,int);
88 
90 
91 protected:
94 
96  vtkInformationVector **inputVector,
97  vtkInformationVector *outputVector);
101 
102  double ScaleFactor;
104  double Normal[3];
105  int XYPlane;
106 
107  //BTX
108  double *(vtkWarpScalar::*PointNormal)(vtkIdType id, vtkDataArray *normals);
109  double *DataNormal(vtkIdType id, vtkDataArray *normals=NULL);
110  double *InstanceNormal(vtkIdType id, vtkDataArray *normals=NULL);
111  double *ZNormal(vtkIdType id, vtkDataArray *normals=NULL);
112  //ETX
113 
114 private:
115  vtkWarpScalar(const vtkWarpScalar&); // Not implemented.
116  void operator=(const vtkWarpScalar&); // Not implemented.
117 };
118 
119 #endif
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:43
vtkWarpScalar::New
static vtkWarpScalar * New()
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkX3D::Normal
@ Normal
Definition: vtkX3D.h:45
vtkWarpScalar
deform geometry with scalar data
Definition: vtkWarpScalar.h:52
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPointSetAlgorithm.h
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkWarpScalar::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkWarpScalar::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info)
vtkFiltersGeneralModule.h
vtkWarpScalar::ZNormal
double * ZNormal(vtkIdType id, vtkDataArray *normals=NULL)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkWarpScalar::InstanceNormal
double * InstanceNormal(vtkIdType id, vtkDataArray *normals=NULL)
VTKFILTERSGENERAL_EXPORT
#define VTKFILTERSGENERAL_EXPORT
Definition: vtkFiltersGeneralModule.h:15
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkWarpScalar::XYPlane
int XYPlane
Definition: vtkWarpScalar.h:105
vtkWarpScalar::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkWarpScalar::DataNormal
double * DataNormal(vtkIdType id, vtkDataArray *normals=NULL)
vtkWarpScalar::RequestDataObject
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkWarpScalar::UseNormal
int UseNormal
Definition: vtkWarpScalar.h:103
vtkWarpScalar::vtkWarpScalar
vtkWarpScalar()
vtkWarpScalar::ScaleFactor
double ScaleFactor
Definition: vtkWarpScalar.h:102
vtkWarpScalar::~vtkWarpScalar
~vtkWarpScalar()
vtkWarpScalar::PointNormal
double *(vtkWarpScalar::* PointNormal)(vtkIdType id, vtkDataArray *normals)
Definition: vtkWarpScalar.h:108