vtkWarpScalar.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00056 #ifndef __vtkWarpScalar_h
00057 #define __vtkWarpScalar_h
00058
00059 #include "vtkPointSetToPointSetFilter.h"
00060
00061 class vtkDataArray;
00062
00063 class VTK_GRAPHICS_EXPORT vtkWarpScalar : public vtkPointSetToPointSetFilter
00064 {
00065 public:
00066 static vtkWarpScalar *New();
00067 vtkTypeRevisionMacro(vtkWarpScalar,vtkPointSetToPointSetFilter);
00068 void PrintSelf(ostream& os, vtkIndent indent);
00069
00071
00072 vtkSetMacro(ScaleFactor,double);
00073 vtkGetMacro(ScaleFactor,double);
00075
00077
00079 vtkSetMacro(UseNormal,int);
00080 vtkGetMacro(UseNormal,int);
00081 vtkBooleanMacro(UseNormal,int);
00083
00085
00087 vtkSetVector3Macro(Normal,double);
00088 vtkGetVectorMacro(Normal,double,3);
00090
00092
00096 vtkSetMacro(XYPlane,int);
00097 vtkGetMacro(XYPlane,int);
00098 vtkBooleanMacro(XYPlane,int);
00100
00102
00105 vtkGetStringMacro(InputScalarsSelection);
00106 void SelectInputScalars(const char *fieldName)
00107 {this->SetInputScalarsSelection(fieldName);}
00109
00110 protected:
00111 vtkWarpScalar();
00112 ~vtkWarpScalar();
00113
00114 void Execute();
00115
00116 double ScaleFactor;
00117 int UseNormal;
00118 double Normal[3];
00119 int XYPlane;
00120
00121
00122 double *(vtkWarpScalar::*PointNormal)(vtkIdType id, vtkDataArray *normals);
00123 double *DataNormal(vtkIdType id, vtkDataArray *normals=NULL);
00124 double *InstanceNormal(vtkIdType id, vtkDataArray *normals=NULL);
00125 double *ZNormal(vtkIdType id, vtkDataArray *normals=NULL);
00126
00127
00128 char *InputScalarsSelection;
00129 vtkSetStringMacro(InputScalarsSelection);
00130
00131 private:
00132 vtkWarpScalar(const vtkWarpScalar&);
00133 void operator=(const vtkWarpScalar&);
00134 };
00135
00136 #endif