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 "vtkFiltersTextureModule.h" // For export macro 00044 #include "vtkDataSetAlgorithm.h" 00045 00046 class VTKFILTERSTEXTURE_EXPORT vtkTransformTextureCoords : public vtkDataSetAlgorithm 00047 { 00048 public: 00049 vtkTypeMacro(vtkTransformTextureCoords,vtkDataSetAlgorithm); 00050 void PrintSelf(ostream& os, vtkIndent indent); 00051 00055 static vtkTransformTextureCoords *New(); 00056 00058 00060 vtkSetVector3Macro(Position,double); 00061 vtkGetVectorMacro(Position,double,3); 00063 00065 00067 void AddPosition(double deltaR, double deltaS, double deltaT); 00068 void AddPosition(double deltaPosition[3]); 00070 00072 00074 vtkSetVector3Macro(Scale,double); 00075 vtkGetVectorMacro(Scale,double,3); 00077 00079 00083 vtkSetVector3Macro(Origin,double); 00084 vtkGetVectorMacro(Origin,double,3); 00086 00088 00090 vtkSetMacro(FlipR,int); 00091 vtkGetMacro(FlipR,int); 00092 vtkBooleanMacro(FlipR,int); 00094 00096 00098 vtkSetMacro(FlipS,int); 00099 vtkGetMacro(FlipS,int); 00100 vtkBooleanMacro(FlipS,int); 00102 00104 00106 vtkSetMacro(FlipT,int); 00107 vtkGetMacro(FlipT,int); 00108 vtkBooleanMacro(FlipT,int); 00110 00111 protected: 00112 vtkTransformTextureCoords(); 00113 ~vtkTransformTextureCoords() {} 00114 00115 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00116 00117 double Origin[3]; //point around which map rotates 00118 double Position[3]; //controls translation of map 00119 double Scale[3]; //scales the texture map 00120 int FlipR; //boolean indicates whether to flip texture around r-axis 00121 int FlipS; //boolean indicates whether to flip texture around s-axis 00122 int FlipT; //boolean indicates whether to flip texture around t-axis 00123 private: 00124 vtkTransformTextureCoords(const vtkTransformTextureCoords&); // Not implemented. 00125 void operator=(const vtkTransformTextureCoords&); // Not implemented. 00126 }; 00127 00128 #endif