VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTriangularTexture.h 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 "vtkImagingHybridModule.h" // For export macro 00037 #include "vtkImageAlgorithm.h" 00038 00039 class VTKIMAGINGHYBRID_EXPORT vtkTriangularTexture : public vtkImageAlgorithm 00040 { 00041 public: 00042 vtkTypeMacro(vtkTriangularTexture,vtkImageAlgorithm); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00047 static vtkTriangularTexture *New(); 00048 00050 00051 vtkSetMacro(ScaleFactor,double); 00052 vtkGetMacro(ScaleFactor,double); 00054 00056 00057 vtkSetMacro(XSize,int); 00058 vtkGetMacro(XSize,int); 00060 00062 00063 vtkSetMacro(YSize,int); 00064 vtkGetMacro(YSize,int); 00066 00068 00070 vtkSetClampMacro(TexturePattern,int,1,3); 00071 vtkGetMacro(TexturePattern,int); 00073 00074 protected: 00075 vtkTriangularTexture(); 00076 ~vtkTriangularTexture() {} 00077 00078 virtual int RequestInformation (vtkInformation *, vtkInformationVector**, vtkInformationVector *); 00079 virtual void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo); 00080 00081 int XSize; 00082 int YSize; 00083 double ScaleFactor; 00084 00085 int TexturePattern; 00086 private: 00087 vtkTriangularTexture(const vtkTriangularTexture&); // Not implemented. 00088 void operator=(const vtkTriangularTexture&); // Not implemented. 00089 }; 00090 00091 #endif 00092 00093