VTK
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 
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 
112 
116  vtkSetMacro(OutputPointsPrecision,int);
117  vtkGetMacro(OutputPointsPrecision,int);
119 
120 protected:
123 
125 
126  double Width;
127  double Height;
128  double Depth;
129 
130  double BoxRatio;
131  double TextureRatio;
133 
135 
136 private:
137  vtkRectangularButtonSource(const vtkRectangularButtonSource&); // Not implemented.
138  void operator=(const vtkRectangularButtonSource&); // Not implemented.
139 };
140 
141 #endif
142 
143 
create a rectangular button
abstract class for creating various button types
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:45
void PrintSelf(ostream &os, vtkIndent indent)
static vtkPolyDataAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
object to represent cell connectivity
Definition: vtkCellArray.h:49
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:38