VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkRectangularButtonSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRectangularButtonSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
46 #ifndef __vtkRectangularButtonSource_h
47 #define __vtkRectangularButtonSource_h
48 
49 #include "vtkFiltersSourcesModule.h" // For export macro
50 #include "vtkButtonSource.h"
51 
52 class vtkCellArray;
53 class vtkFloatArray;
54 class vtkPoints;
55 
56 class VTKFILTERSSOURCES_EXPORT vtkRectangularButtonSource : public vtkButtonSource
57 {
58 public:
59  void PrintSelf(ostream& os, vtkIndent indent);
61 
64 
66 
67  vtkSetClampMacro(Width,double,0.0,VTK_DOUBLE_MAX);
68  vtkGetMacro(Width,double);
70 
72 
73  vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX);
74  vtkGetMacro(Height,double);
76 
78 
79  vtkSetClampMacro(Depth,double,0.0,VTK_DOUBLE_MAX);
80  vtkGetMacro(Depth,double);
82 
84 
88  vtkSetClampMacro(BoxRatio,double,0.0,VTK_DOUBLE_MAX);
89  vtkGetMacro(BoxRatio,double);
91 
93 
98  vtkSetClampMacro(TextureRatio,double,0.0,VTK_DOUBLE_MAX);
99  vtkGetMacro(TextureRatio,double);
101 
103 
107  vtkSetClampMacro(TextureHeightRatio,double,0.0,VTK_DOUBLE_MAX);
108  vtkGetMacro(TextureHeightRatio,double);
110 
111 protected:
114 
115  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
116 
117  double Width;
118  double Height;
119  double Depth;
120 
121  double BoxRatio;
122  double TextureRatio;
124 
125 private:
126  vtkRectangularButtonSource(const vtkRectangularButtonSource&); // Not implemented.
127  void operator=(const vtkRectangularButtonSource&); // Not implemented.
128 };
129 
130 #endif
131 
132 
create a rectangular button
abstract class for creating various button types
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent)
static vtkPolyDataAlgorithm * New()
object to represent cell connectivity
Definition: vtkCellArray.h:49