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 
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 =========================================================================*/
00033 #ifndef __vtkTriangularTexture_h
00034 #define __vtkTriangularTexture_h
00035 
00036 #include "vtkImageSource.h"
00037 
00038 class VTK_IMAGING_EXPORT vtkTriangularTexture : public vtkImageSource
00039 {
00040 public:
00041   vtkTypeRevisionMacro(vtkTriangularTexture,vtkImageSource);
00042   void PrintSelf(ostream& os, vtkIndent indent);
00043 
00046   static vtkTriangularTexture *New();
00047 
00049 
00050   vtkSetMacro(ScaleFactor,double);
00051   vtkGetMacro(ScaleFactor,double);
00053 
00055 
00056   vtkSetMacro(XSize,int);
00057   vtkGetMacro(XSize,int);
00059 
00061 
00062   vtkSetMacro(YSize,int);
00063   vtkGetMacro(YSize,int);
00065 
00067 
00069   vtkSetClampMacro(TexturePattern,int,1,3);
00070   vtkGetMacro(TexturePattern,int);
00072 
00073 protected:
00074   vtkTriangularTexture();
00075   ~vtkTriangularTexture() {};
00076 
00077   virtual void ExecuteInformation();
00078   virtual void ExecuteData(vtkDataObject *data);
00079 
00080   int XSize;
00081   int YSize;
00082   double ScaleFactor;
00083 
00084   int TexturePattern;
00085 private:
00086   vtkTriangularTexture(const vtkTriangularTexture&);  // Not implemented.
00087   void operator=(const vtkTriangularTexture&);  // Not implemented.
00088 };
00089 
00090 #endif
00091 
00092