00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00033 #ifndef __vtkTriangularTexture_h
00034 #define __vtkTriangularTexture_h
00035 
00036 #include "vtkImageAlgorithm.h"
00037 
00038 class VTK_IMAGING_EXPORT vtkTriangularTexture : public vtkImageAlgorithm
00039 {
00040 public:
00041   vtkTypeMacro(vtkTriangularTexture,vtkImageAlgorithm);
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 int RequestInformation (vtkInformation *, vtkInformationVector**, vtkInformationVector *);
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&);  
00087   void operator=(const vtkTriangularTexture&);  
00088 };
00089 
00090 #endif
00091 
00092