Thanks to visit codestin.com
Credit goes to vtk.org

VTK  9.5.20250924
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
41
42VTK_ABI_NAMESPACE_BEGIN
43class vtkCellArray;
44class vtkFloatArray;
45class vtkPoints;
46
47class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkRectangularButtonSource : public vtkButtonSource
48{
49public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
52
57
59
62 vtkSetClampMacro(Width, double, 0.0, VTK_DOUBLE_MAX);
63 vtkGetMacro(Width, double);
65
67
70 vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
71 vtkGetMacro(Height, double);
73
75
78 vtkSetClampMacro(Depth, double, 0.0, VTK_DOUBLE_MAX);
79 vtkGetMacro(Depth, double);
81
83
89 vtkSetClampMacro(BoxRatio, double, 0.0, VTK_DOUBLE_MAX);
90 vtkGetMacro(BoxRatio, double);
92
94
102 vtkSetClampMacro(TextureRatio, double, 0.0, VTK_DOUBLE_MAX);
103 vtkGetMacro(TextureRatio, double);
105
107
114 vtkSetClampMacro(TextureHeightRatio, double, 0.0, VTK_DOUBLE_MAX);
115 vtkGetMacro(TextureHeightRatio, double);
117
119
124 vtkSetMacro(OutputPointsPrecision, int);
125 vtkGetMacro(OutputPointsPrecision, int);
127
128protected:
130 ~vtkRectangularButtonSource() override = default;
131
133
134 double Width;
135 double Height;
136 double Depth;
137
138 double BoxRatio;
141
143
144private:
146 void operator=(const vtkRectangularButtonSource&) = delete;
147};
148
149VTK_ABI_NAMESPACE_END
150#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:173
#define VTK_MARSHALAUTO