00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkWarpVector.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 =========================================================================*/ 00031 #ifndef __vtkWarpVector_h 00032 #define __vtkWarpVector_h 00033 00034 #include "vtkPointSetToPointSetFilter.h" 00035 00036 class VTK_GRAPHICS_EXPORT vtkWarpVector : public vtkPointSetToPointSetFilter 00037 { 00038 public: 00039 static vtkWarpVector *New(); 00040 vtkTypeRevisionMacro(vtkWarpVector,vtkPointSetToPointSetFilter); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 00045 vtkSetMacro(ScaleFactor,double); 00046 vtkGetMacro(ScaleFactor,double); 00048 00050 00053 vtkGetStringMacro(InputVectorsSelection); 00054 void SelectInputVectors(const char *fieldName) 00055 {this->SetInputVectorsSelection(fieldName);} 00057 00058 protected: 00059 vtkWarpVector(); 00060 ~vtkWarpVector(); 00061 00062 void Execute(); 00063 double ScaleFactor; 00064 00065 char *InputVectorsSelection; 00066 vtkSetStringMacro(InputVectorsSelection); 00067 00068 private: 00069 vtkWarpVector(const vtkWarpVector&); // Not implemented. 00070 void operator=(const vtkWarpVector&); // Not implemented. 00071 }; 00072 00073 #endif