Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkRectangularButtonSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkRectangularButtonSource.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 =========================================================================*/
00046 #ifndef __vtkRectangularButtonSource_h
00047 #define __vtkRectangularButtonSource_h
00048 
00049 #include "vtkButtonSource.h"
00050 
00051 class vtkCellArray;
00052 class vtkFloatArray;
00053 class vtkPoints;
00054 
00055 class VTK_GRAPHICS_EXPORT vtkRectangularButtonSource : public vtkButtonSource 
00056 {
00057 public:
00058   void PrintSelf(ostream& os, vtkIndent indent);
00059   vtkTypeRevisionMacro(vtkRectangularButtonSource,vtkButtonSource);
00060 
00062   static vtkRectangularButtonSource *New();
00063 
00065 
00066   vtkSetClampMacro(Width,double,0.0,VTK_DOUBLE_MAX);
00067   vtkGetMacro(Width,double);
00069 
00071 
00072   vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX);
00073   vtkGetMacro(Height,double);
00075 
00077 
00078   vtkSetClampMacro(Depth,double,0.0,VTK_DOUBLE_MAX);
00079   vtkGetMacro(Depth,double);
00081 
00083 
00087   vtkSetClampMacro(BoxRatio,double,0.0,VTK_DOUBLE_MAX);
00088   vtkGetMacro(BoxRatio,double);
00090 
00092 
00097   vtkSetClampMacro(TextureRatio,double,0.0,VTK_DOUBLE_MAX);
00098   vtkGetMacro(TextureRatio,double);
00100 
00102 
00106   vtkSetClampMacro(TextureHeightRatio,double,0.0,VTK_DOUBLE_MAX);
00107   vtkGetMacro(TextureHeightRatio,double);
00109 
00110 protected:
00111   vtkRectangularButtonSource();
00112   ~vtkRectangularButtonSource() {}
00113 
00114   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00115 
00116   double Width;
00117   double Height;
00118   double Depth;
00119 
00120   double BoxRatio;
00121   double TextureRatio;
00122   double TextureHeightRatio;
00123 
00124 private:
00125   vtkRectangularButtonSource(const vtkRectangularButtonSource&);  // Not implemented.
00126   void operator=(const vtkRectangularButtonSource&);  // Not implemented.
00127 
00128 };
00129 
00130 #endif
00131 
00132 

Generated on Mon Jan 21 23:07:26 2008 for VTK by  doxygen 1.4.3-20050530