VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkRectangularButtonSource.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 =========================================================================*/ 00046 #ifndef vtkRectangularButtonSource_h 00047 #define vtkRectangularButtonSource_h 00048 00049 #include "vtkFiltersSourcesModule.h" // For export macro 00050 #include "vtkButtonSource.h" 00051 00052 class vtkCellArray; 00053 class vtkFloatArray; 00054 class vtkPoints; 00055 00056 class VTKFILTERSSOURCES_EXPORT vtkRectangularButtonSource : public vtkButtonSource 00057 { 00058 public: 00059 void PrintSelf(ostream& os, vtkIndent indent); 00060 vtkTypeMacro(vtkRectangularButtonSource,vtkButtonSource); 00061 00063 static vtkRectangularButtonSource *New(); 00064 00066 00067 vtkSetClampMacro(Width,double,0.0,VTK_DOUBLE_MAX); 00068 vtkGetMacro(Width,double); 00070 00072 00073 vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX); 00074 vtkGetMacro(Height,double); 00076 00078 00079 vtkSetClampMacro(Depth,double,0.0,VTK_DOUBLE_MAX); 00080 vtkGetMacro(Depth,double); 00082 00084 00088 vtkSetClampMacro(BoxRatio,double,0.0,VTK_DOUBLE_MAX); 00089 vtkGetMacro(BoxRatio,double); 00091 00093 00098 vtkSetClampMacro(TextureRatio,double,0.0,VTK_DOUBLE_MAX); 00099 vtkGetMacro(TextureRatio,double); 00101 00103 00107 vtkSetClampMacro(TextureHeightRatio,double,0.0,VTK_DOUBLE_MAX); 00108 vtkGetMacro(TextureHeightRatio,double); 00110 00112 00116 vtkSetMacro(OutputPointsPrecision,int); 00117 vtkGetMacro(OutputPointsPrecision,int); 00119 00120 protected: 00121 vtkRectangularButtonSource(); 00122 ~vtkRectangularButtonSource() {} 00123 00124 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00125 00126 double Width; 00127 double Height; 00128 double Depth; 00129 00130 double BoxRatio; 00131 double TextureRatio; 00132 double TextureHeightRatio; 00133 00134 int OutputPointsPrecision; 00135 00136 private: 00137 vtkRectangularButtonSource(const vtkRectangularButtonSource&); // Not implemented. 00138 void operator=(const vtkRectangularButtonSource&); // Not implemented. 00139 }; 00140 00141 #endif 00142 00143