VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkWarpTo.h 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 =========================================================================*/ 00025 #ifndef __vtkWarpTo_h 00026 #define __vtkWarpTo_h 00027 00028 #include "vtkPointSetAlgorithm.h" 00029 00030 class VTK_GRAPHICS_EXPORT vtkWarpTo : public vtkPointSetAlgorithm 00031 { 00032 public: 00033 static vtkWarpTo *New(); 00034 vtkTypeMacro(vtkWarpTo,vtkPointSetAlgorithm); 00035 void PrintSelf(ostream& os, vtkIndent indent); 00036 00038 00039 vtkSetMacro(ScaleFactor,double); 00040 vtkGetMacro(ScaleFactor,double); 00042 00044 00045 vtkGetVectorMacro(Position,double,3); 00046 vtkSetVector3Macro(Position,double); 00048 00050 00052 vtkSetMacro(Absolute,int); 00053 vtkGetMacro(Absolute,int); 00054 vtkBooleanMacro(Absolute,int); 00056 00057 int FillInputPortInformation(int port, vtkInformation *info); 00058 00059 protected: 00060 vtkWarpTo(); 00061 ~vtkWarpTo() {}; 00062 00063 int RequestDataObject(vtkInformation *request, 00064 vtkInformationVector **inputVector, 00065 vtkInformationVector *outputVector); 00066 int RequestData(vtkInformation *, 00067 vtkInformationVector **, 00068 vtkInformationVector *); 00069 double ScaleFactor; 00070 double Position[3]; 00071 int Absolute; 00072 private: 00073 vtkWarpTo(const vtkWarpTo&); // Not implemented. 00074 void operator=(const vtkWarpTo&); // Not implemented. 00075 }; 00076 00077 #endif