Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkWarpScalar.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkWarpScalar.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
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   //BTX
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   //ETX
00127 
00128   char *InputScalarsSelection;
00129   vtkSetStringMacro(InputScalarsSelection);
00130 
00131 private:
00132   vtkWarpScalar(const vtkWarpScalar&);  // Not implemented.
00133   void operator=(const vtkWarpScalar&);  // Not implemented.
00134 };
00135 
00136 #endif