VTK
dox/Filters/Sources/vtkRectangularButtonSource.h
Go to the documentation of this file.
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 
00111 protected:
00112   vtkRectangularButtonSource();
00113   ~vtkRectangularButtonSource() {}
00114 
00115   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00116 
00117   double Width;
00118   double Height;
00119   double Depth;
00120 
00121   double BoxRatio;
00122   double TextureRatio;
00123   double TextureHeightRatio;
00124 
00125 private:
00126   vtkRectangularButtonSource(const vtkRectangularButtonSource&);  // Not implemented.
00127   void operator=(const vtkRectangularButtonSource&);  // Not implemented.
00128 };
00129 
00130 #endif
00131 
00132