VTK  9.2.6
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=========================================================================*/
47#ifndef vtkRectangularButtonSource_h
48#define vtkRectangularButtonSource_h
49
50#include "vtkButtonSource.h"
51#include "vtkFiltersSourcesModule.h" // For export macro
52
53class vtkCellArray;
54class vtkFloatArray;
55class vtkPoints;
56
57class VTKFILTERSSOURCES_EXPORT vtkRectangularButtonSource : public vtkButtonSource
58{
59public:
60 void PrintSelf(ostream& os, vtkIndent indent) override;
62
67
69
72 vtkSetClampMacro(Width, double, 0.0, VTK_DOUBLE_MAX);
73 vtkGetMacro(Width, double);
75
77
80 vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
81 vtkGetMacro(Height, double);
83
85
88 vtkSetClampMacro(Depth, double, 0.0, VTK_DOUBLE_MAX);
89 vtkGetMacro(Depth, double);
91
93
99 vtkSetClampMacro(BoxRatio, double, 0.0, VTK_DOUBLE_MAX);
100 vtkGetMacro(BoxRatio, double);
102
104
112 vtkSetClampMacro(TextureRatio, double, 0.0, VTK_DOUBLE_MAX);
113 vtkGetMacro(TextureRatio, double);
115
117
124 vtkSetClampMacro(TextureHeightRatio, double, 0.0, VTK_DOUBLE_MAX);
125 vtkGetMacro(TextureHeightRatio, double);
127
129
134 vtkSetMacro(OutputPointsPrecision, int);
135 vtkGetMacro(OutputPointsPrecision, int);
137
138protected:
140 ~vtkRectangularButtonSource() override = default;
141
143
144 double Width;
145 double Height;
146 double Depth;
147
148 double BoxRatio;
151
153
154private:
156 void operator=(const vtkRectangularButtonSource&) = delete;
157};
158
159#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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition vtkPoints.h:40
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:165