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

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 =========================================================================*/
00055 #ifndef __vtkTransformTextureCoords_h
00056 #define __vtkTransformTextureCoords_h
00057 
00058 #include "vtkDataSetToDataSetFilter.h"
00059 
00060 class VTK_GRAPHICS_EXPORT vtkTransformTextureCoords : public vtkDataSetToDataSetFilter 
00061 {
00062 public:
00063   vtkTypeRevisionMacro(vtkTransformTextureCoords,vtkDataSetToDataSetFilter);
00064   void PrintSelf(ostream& os, vtkIndent indent);
00065 
00069   static vtkTransformTextureCoords *New();
00070 
00072 
00074   vtkSetVector3Macro(Position,float);
00075   vtkGetVectorMacro(Position,float,3);
00077 
00079 
00081   void AddPosition(float deltaR, float deltaS, float deltaT);
00082   void AddPosition(float deltaPosition[3]);
00084   
00086 
00088   vtkSetVector3Macro(Scale,float);
00089   vtkGetVectorMacro(Scale,float,3);
00091 
00093 
00097   vtkSetVector3Macro(Origin,float);
00098   vtkGetVectorMacro(Origin,float,3);
00100 
00102 
00104   vtkSetMacro(FlipR,int);
00105   vtkGetMacro(FlipR,int);
00106   vtkBooleanMacro(FlipR,int);
00108 
00110 
00112   vtkSetMacro(FlipS,int);
00113   vtkGetMacro(FlipS,int);
00114   vtkBooleanMacro(FlipS,int);
00116 
00118 
00120   vtkSetMacro(FlipT,int);
00121   vtkGetMacro(FlipT,int);
00122   vtkBooleanMacro(FlipT,int);
00124 
00125 protected:
00126   vtkTransformTextureCoords();
00127   ~vtkTransformTextureCoords() {};
00128 
00129   void Execute();
00130 
00131   float Origin[3]; //point around which map rotates
00132   float Position[3]; //controls translation of map
00133   float Scale[3]; //scales the texture map
00134   int FlipR; //boolean indicates whether to flip texture around r-axis
00135   int FlipS; //boolean indicates whether to flip texture around s-axis
00136   int FlipT; //boolean indicates whether to flip texture around t-axis
00137 private:
00138   vtkTransformTextureCoords(const vtkTransformTextureCoords&);  // Not implemented.
00139   void operator=(const vtkTransformTextureCoords&);  // Not implemented.
00140 };
00141 
00142 #endif