Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Graphics/vtkWarpScalar.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkWarpScalar.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00062 #ifndef __vtkWarpScalar_h
    00063 #define __vtkWarpScalar_h
    00064
    00065 #include "vtkPointSetToPointSetFilter.h"
    00066
    00067 class vtkDataArray;
    00068
    00069 class VTK_GRAPHICS_EXPORT vtkWarpScalar : public vtkPointSetToPointSetFilter
    00070 {
    00071 public:
    00072   static vtkWarpScalar *New();
    00073   vtkTypeRevisionMacro(vtkWarpScalar,vtkPointSetToPointSetFilter);
    00074   void PrintSelf(ostream& os, vtkIndent indent);
    00075
    00077
    00078   vtkSetMacro(ScaleFactor,float);
    00079   vtkGetMacro(ScaleFactor,float);
    00081
    00083
    00085   vtkSetMacro(UseNormal,int);
    00086   vtkGetMacro(UseNormal,int);
    00087   vtkBooleanMacro(UseNormal,int);
    00089
    00091
    00093   vtkSetVector3Macro(Normal,float);
    00094   vtkGetVectorMacro(Normal,float,3);
    00096
    00098
    00102   vtkSetMacro(XYPlane,int);
    00103   vtkGetMacro(XYPlane,int);
    00104   vtkBooleanMacro(XYPlane,int);
    00106
    00107 protected:
    00108   vtkWarpScalar();
    00109   ~vtkWarpScalar();
    00110
    00111   void Execute();
    00112
    00113   float ScaleFactor;
    00114   int UseNormal;
    00115   float Normal[3];
    00116   int XYPlane;
    00117
    00118   //BTX
    00119   float *(vtkWarpScalar::*PointNormal)(vtkIdType id, vtkDataArray *normals);
    00120   float *DataNormal(vtkIdType id, vtkDataArray *normals=NULL);
    00121   float *InstanceNormal(vtkIdType id, vtkDataArray *normals=NULL);
    00122   float *ZNormal(vtkIdType id, vtkDataArray *normals=NULL);
    00123   //ETX
    00124
    00125   char *InputScalarsSelection;
    00126   vtkSetStringMacro(InputScalarsSelection);
    00127
    00128 private:
    00129   vtkWarpScalar(const vtkWarpScalar&);  // Not implemented.
    00130   void operator=(const vtkWarpScalar&);  // Not implemented.
    00131 };
    00132
    00133 #endif