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

Imaging/vtkTriangularTexture.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkTriangularTexture.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 =========================================================================*/
00037 #ifndef __vtkTriangularTexture_h
00038 #define __vtkTriangularTexture_h
00039 
00040 #include "vtkImageSource.h"
00041 
00042 class VTK_IMAGING_EXPORT vtkTriangularTexture : public vtkImageSource
00043 {
00044 public:
00045   vtkTypeRevisionMacro(vtkTriangularTexture,vtkImageSource);
00046   void PrintSelf(ostream& os, vtkIndent indent);
00047 
00050   static vtkTriangularTexture *New();
00051 
00053 
00054   vtkSetMacro(ScaleFactor,float);
00055   vtkGetMacro(ScaleFactor,float);
00057 
00059 
00060   vtkSetMacro(XSize,int);
00061   vtkGetMacro(XSize,int);
00063 
00065 
00066   vtkSetMacro(YSize,int);
00067   vtkGetMacro(YSize,int);
00069 
00071 
00073   vtkSetClampMacro(TexturePattern,int,1,3);
00074   vtkGetMacro(TexturePattern,int);
00076 
00077 protected:
00078   vtkTriangularTexture();
00079   ~vtkTriangularTexture() {};
00080 
00081   virtual void ExecuteInformation();
00082   virtual void ExecuteData(vtkDataObject *data);
00083 
00084   int XSize;
00085   int YSize;
00086   float ScaleFactor;
00087 
00088   int TexturePattern;
00089 private:
00090   vtkTriangularTexture(const vtkTriangularTexture&);  // Not implemented.
00091   void operator=(const vtkTriangularTexture&);  // Not implemented.
00092 };
00093 
00094 #endif
00095 
00096