VTK  9.0.2
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 
50 class vtkCellArray;
51 class vtkFloatArray;
52 class vtkPoints;
53 
54 class VTKFILTERSSOURCES_EXPORT vtkRectangularButtonSource : public vtkButtonSource
55 {
56 public:
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 
135 protected:
138 
140 
141  double Width;
142  double Height;
143  double Depth;
144 
145  double BoxRatio;
146  double TextureRatio;
148 
150 
151 private:
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:180
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:36
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:34
create a rectangular button
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.
static vtkRectangularButtonSource * New()
Construct a circular button with depth 10% of its height.
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165