VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTransformTextureCoords.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 =========================================================================*/ 00040 #ifndef __vtkTransformTextureCoords_h 00041 #define __vtkTransformTextureCoords_h 00042 00043 #include "vtkDataSetAlgorithm.h" 00044 00045 class VTK_GRAPHICS_EXPORT vtkTransformTextureCoords : public vtkDataSetAlgorithm 00046 { 00047 public: 00048 vtkTypeMacro(vtkTransformTextureCoords,vtkDataSetAlgorithm); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00054 static vtkTransformTextureCoords *New(); 00055 00057 00059 vtkSetVector3Macro(Position,double); 00060 vtkGetVectorMacro(Position,double,3); 00062 00064 00066 void AddPosition(double deltaR, double deltaS, double deltaT); 00067 void AddPosition(double deltaPosition[3]); 00069 00071 00073 vtkSetVector3Macro(Scale,double); 00074 vtkGetVectorMacro(Scale,double,3); 00076 00078 00082 vtkSetVector3Macro(Origin,double); 00083 vtkGetVectorMacro(Origin,double,3); 00085 00087 00089 vtkSetMacro(FlipR,int); 00090 vtkGetMacro(FlipR,int); 00091 vtkBooleanMacro(FlipR,int); 00093 00095 00097 vtkSetMacro(FlipS,int); 00098 vtkGetMacro(FlipS,int); 00099 vtkBooleanMacro(FlipS,int); 00101 00103 00105 vtkSetMacro(FlipT,int); 00106 vtkGetMacro(FlipT,int); 00107 vtkBooleanMacro(FlipT,int); 00109 00110 protected: 00111 vtkTransformTextureCoords(); 00112 ~vtkTransformTextureCoords() {}; 00113 00114 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00115 00116 double Origin[3]; //point around which map rotates 00117 double Position[3]; //controls translation of map 00118 double Scale[3]; //scales the texture map 00119 int FlipR; //boolean indicates whether to flip texture around r-axis 00120 int FlipS; //boolean indicates whether to flip texture around s-axis 00121 int FlipT; //boolean indicates whether to flip texture around t-axis 00122 private: 00123 vtkTransformTextureCoords(const vtkTransformTextureCoords&); // Not implemented. 00124 void operator=(const vtkTransformTextureCoords&); // Not implemented. 00125 }; 00126 00127 #endif