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 =========================================================================*/
47 #ifndef vtkRectangularButtonSource_h
48 #define vtkRectangularButtonSource_h
49 
50 #include "vtkFiltersSourcesModule.h" // For export macro
51 #include "vtkButtonSource.h"
52 
53 class vtkCellArray;
54 class vtkFloatArray;
55 class vtkPoints;
56 
57 class VTKFILTERSSOURCES_EXPORT vtkRectangularButtonSource : public vtkButtonSource
58 {
59 public:
60  void PrintSelf(ostream& os, vtkIndent indent) VTK_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 
138 protected:
140  ~vtkRectangularButtonSource() VTK_OVERRIDE {}
141 
143 
144  double Width;
145  double Height;
146  double Depth;
147 
148  double BoxRatio;
149  double TextureRatio;
150  double TextureHeightRatio;
151 
152  int OutputPointsPrecision;
153 
154 private:
155  vtkRectangularButtonSource(const vtkRectangularButtonSource&) VTK_DELETE_FUNCTION;
156  void operator=(const vtkRectangularButtonSource&) VTK_DELETE_FUNCTION;
157 };
158 
159 #endif
160 
161 
create a rectangular button
abstract class for creating various button types
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163
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:41
static vtkPolyDataAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
object to represent cell connectivity
Definition: vtkCellArray.h:50
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:39