VTK
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 "vtkFiltersSourcesModule.h" // For export macro
48 #include "vtkButtonSource.h"
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
157 
158 
create a rectangular button
abstract class for creating various button types
#define VTK_DOUBLE_MAX
Definition: vtkType.h:167
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:35
static vtkPolyDataAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:33
object to represent cell connectivity
Definition: vtkCellArray.h:44
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate 3D points
Definition: vtkPoints.h:33