VTK  9.4.20241226
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
41VTK_ABI_NAMESPACE_BEGIN
42class vtkCellArray;
43class vtkFloatArray;
44class vtkPoints;
45
46class VTKFILTERSSOURCES_EXPORT vtkRectangularButtonSource : public vtkButtonSource
47{
48public:
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
127protected:
129 ~vtkRectangularButtonSource() override = default;
130
132
133 double Width;
134 double Height;
135 double Depth;
136
137 double BoxRatio;
140
142
143private:
145 void operator=(const vtkRectangularButtonSource&) = delete;
146};
147
148VTK_ABI_NAMESPACE_END
149#endif
abstract class for creating various button types
object to represent cell connectivity
dynamic, self-adjusting array of float
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition vtkPoints.h:139
create a rectangular button
static vtkRectangularButtonSource * New()
Construct a circular button with depth 10% of its height.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkRectangularButtonSource() override=default
#define VTK_DOUBLE_MAX
Definition vtkType.h:154