VTK  9.1.0
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=========================================================================*/
44#ifndef vtkRectangularButtonSource_h
45#define vtkRectangularButtonSource_h
46
47#include "vtkButtonSource.h"
48#include "vtkFiltersSourcesModule.h" // For export macro
49
50class vtkCellArray;
51class vtkFloatArray;
52class vtkPoints;
53
54class VTKFILTERSSOURCES_EXPORT vtkRectangularButtonSource : public vtkButtonSource
55{
56public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
59
64
66
69 vtkSetClampMacro(Width, double, 0.0, VTK_DOUBLE_MAX);
70 vtkGetMacro(Width, double);
72
74
77 vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
78 vtkGetMacro(Height, double);
80
82
85 vtkSetClampMacro(Depth, double, 0.0, VTK_DOUBLE_MAX);
86 vtkGetMacro(Depth, double);
88
90
96 vtkSetClampMacro(BoxRatio, double, 0.0, VTK_DOUBLE_MAX);
97 vtkGetMacro(BoxRatio, double);
99
101
109 vtkSetClampMacro(TextureRatio, double, 0.0, VTK_DOUBLE_MAX);
110 vtkGetMacro(TextureRatio, double);
112
114
121 vtkSetClampMacro(TextureHeightRatio, double, 0.0, VTK_DOUBLE_MAX);
122 vtkGetMacro(TextureHeightRatio, double);
124
126
131 vtkSetMacro(OutputPointsPrecision, int);
132 vtkGetMacro(OutputPointsPrecision, int);
134
135protected:
137 ~vtkRectangularButtonSource() override = default;
138
140
141 double Width;
142 double Height;
143 double Depth;
144
145 double BoxRatio;
148
150
151private:
153 void operator=(const vtkRectangularButtonSource&) = delete;
154};
155
156#endif
abstract class for creating various button types
object to represent cell connectivity
Definition: vtkCellArray.h:290
dynamic, self-adjusting array of float
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:143
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