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

vtkTransformTextureCoords.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkTransformTextureCoords.h,v $
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 =========================================================================*/
00052 #ifndef __vtkTransformTextureCoords_h
00053 #define __vtkTransformTextureCoords_h
00054 
00055 #include "vtkDataSetToDataSetFilter.h"
00056 
00057 class VTK_GRAPHICS_EXPORT vtkTransformTextureCoords : public vtkDataSetToDataSetFilter 
00058 {
00059 public:
00060   vtkTypeRevisionMacro(vtkTransformTextureCoords,vtkDataSetToDataSetFilter);
00061   void PrintSelf(ostream& os, vtkIndent indent);
00062 
00066   static vtkTransformTextureCoords *New();
00067 
00069 
00071   vtkSetVector3Macro(Position,double);
00072   vtkGetVectorMacro(Position,double,3);
00074 
00076 
00078   void AddPosition(double deltaR, double deltaS, double deltaT);
00079   void AddPosition(double deltaPosition[3]);
00081   
00083 
00085   vtkSetVector3Macro(Scale,double);
00086   vtkGetVectorMacro(Scale,double,3);
00088 
00090 
00094   vtkSetVector3Macro(Origin,double);
00095   vtkGetVectorMacro(Origin,double,3);
00097 
00099 
00101   vtkSetMacro(FlipR,int);
00102   vtkGetMacro(FlipR,int);
00103   vtkBooleanMacro(FlipR,int);
00105 
00107 
00109   vtkSetMacro(FlipS,int);
00110   vtkGetMacro(FlipS,int);
00111   vtkBooleanMacro(FlipS,int);
00113 
00115 
00117   vtkSetMacro(FlipT,int);
00118   vtkGetMacro(FlipT,int);
00119   vtkBooleanMacro(FlipT,int);
00121 
00122 protected:
00123   vtkTransformTextureCoords();
00124   ~vtkTransformTextureCoords() {};
00125 
00126   void Execute();
00127 
00128   double Origin[3]; //point around which map rotates
00129   double Position[3]; //controls translation of map
00130   double Scale[3]; //scales the texture map
00131   int FlipR; //boolean indicates whether to flip texture around r-axis
00132   int FlipS; //boolean indicates whether to flip texture around s-axis
00133   int FlipT; //boolean indicates whether to flip texture around t-axis
00134 private:
00135   vtkTransformTextureCoords(const vtkTransformTextureCoords&);  // Not implemented.
00136   void operator=(const vtkTransformTextureCoords&);  // Not implemented.
00137 };
00138 
00139 #endif