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 
75  vtkSetVector3Macro(Normal,double);
76  vtkGetVectorMacro(Normal,double,3);
78 
80 
84  vtkSetMacro(XYPlane,int);
85  vtkGetMacro(XYPlane,int);
86  vtkBooleanMacro(XYPlane,int);
88 
90 
91 protected:
92  vtkWarpScalar();
93  ~vtkWarpScalar();
94 
95  int RequestDataObject(vtkInformation *request,
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
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store vtkAlgorithm input/output information.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int vtkIdType
Definition: vtkType.h:275
double *(vtkWarpScalar::* PointNormal)(vtkIdType id, vtkDataArray *normals)
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
Superclass for algorithms that produce output of the same type as input.
#define VTKFILTERSGENERAL_EXPORT
double ScaleFactor
static vtkPointSetAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Store zero or more vtkInformation instances.
virtual int FillInputPortInformation(int port, vtkInformation *info)
deform geometry with scalar data
Definition: vtkWarpScalar.h:51