VTK  9.3.1
vtkRectangularButtonSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
35 #ifndef vtkRectangularButtonSource_h
36 #define vtkRectangularButtonSource_h
37 
38 #include "vtkButtonSource.h"
39 #include "vtkFiltersSourcesModule.h" // For export macro
40 
41 VTK_ABI_NAMESPACE_BEGIN
42 class vtkCellArray;
43 class vtkFloatArray;
44 class vtkPoints;
45 
46 class VTKFILTERSSOURCES_EXPORT vtkRectangularButtonSource : public vtkButtonSource
47 {
48 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
56 
58 
61  vtkSetClampMacro(Width, double, 0.0, VTK_DOUBLE_MAX);
62  vtkGetMacro(Width, double);
64 
66 
69  vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
70  vtkGetMacro(Height, double);
72 
74 
77  vtkSetClampMacro(Depth, double, 0.0, VTK_DOUBLE_MAX);
78  vtkGetMacro(Depth, double);
80 
82 
88  vtkSetClampMacro(BoxRatio, double, 0.0, VTK_DOUBLE_MAX);
89  vtkGetMacro(BoxRatio, double);
91 
93 
101  vtkSetClampMacro(TextureRatio, double, 0.0, VTK_DOUBLE_MAX);
102  vtkGetMacro(TextureRatio, double);
104 
106 
113  vtkSetClampMacro(TextureHeightRatio, double, 0.0, VTK_DOUBLE_MAX);
114  vtkGetMacro(TextureHeightRatio, double);
116 
118 
123  vtkSetMacro(OutputPointsPrecision, int);
124  vtkGetMacro(OutputPointsPrecision, int);
126 
127 protected:
129  ~vtkRectangularButtonSource() override = default;
130 
132 
133  double Width;
134  double Height;
135  double Depth;
136 
137  double BoxRatio;
138  double TextureRatio;
140 
142 
143 private:
145  void operator=(const vtkRectangularButtonSource&) = delete;
146 };
147 
148 VTK_ABI_NAMESPACE_END
149 #endif
create a rectangular button
abstract class for creating various button types
#define VTK_DOUBLE_MAX
Definition: vtkType.h:154
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:30
static vtkPolyDataAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:28
object to represent cell connectivity
Definition: vtkCellArray.h:175
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate 3D points
Definition: vtkPoints.h:28