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

dox/Graphics/vtkTransformTextureCoords.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkTransformTextureCoords.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 =========================================================================*/ 00044 #ifndef __vtkTransformTextureCoords_h 00045 #define __vtkTransformTextureCoords_h 00046 00047 #include "vtkDataSetToDataSetFilter.h" 00048 00049 class VTK_GRAPHICS_EXPORT vtkTransformTextureCoords : public vtkDataSetToDataSetFilter 00050 { 00051 public: 00052 vtkTypeRevisionMacro(vtkTransformTextureCoords,vtkDataSetToDataSetFilter); 00053 void PrintSelf(ostream& os, vtkIndent indent); 00054 00058 static vtkTransformTextureCoords *New(); 00059 00061 00063 vtkSetVector3Macro(Position,float); 00064 vtkGetVectorMacro(Position,float,3); 00066 00068 00070 void AddPosition(float deltaR, float deltaS, float deltaT); 00071 void AddPosition(float deltaPosition[3]); 00073 00075 00077 vtkSetVector3Macro(Scale,float); 00078 vtkGetVectorMacro(Scale,float,3); 00080 00082 00086 vtkSetVector3Macro(Origin,float); 00087 vtkGetVectorMacro(Origin,float,3); 00089 00091 00093 vtkSetMacro(FlipR,int); 00094 vtkGetMacro(FlipR,int); 00095 vtkBooleanMacro(FlipR,int); 00097 00099 00101 vtkSetMacro(FlipS,int); 00102 vtkGetMacro(FlipS,int); 00103 vtkBooleanMacro(FlipS,int); 00105 00107 00109 vtkSetMacro(FlipT,int); 00110 vtkGetMacro(FlipT,int); 00111 vtkBooleanMacro(FlipT,int); 00113 00114 protected: 00115 vtkTransformTextureCoords(); 00116 ~vtkTransformTextureCoords() {}; 00117 00118 void Execute(); 00119 00120 float Origin[3]; //point around which map rotates 00121 float Position[3]; //controls translation of map 00122 float Scale[3]; //scales the texture map 00123 int FlipR; //boolean indicates whether to flip texture around r-axis 00124 int FlipS; //boolean indicates whether to flip texture around s-axis 00125 int FlipT; //boolean indicates whether to flip texture around t-axis 00126 private: 00127 vtkTransformTextureCoords(const vtkTransformTextureCoords&); // Not implemented. 00128 void operator=(const vtkTransformTextureCoords&); // Not implemented. 00129 }; 00130 00131 #endif