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 =========================================================================*/
46 #ifndef vtkRectangularButtonSource_h
47 #define vtkRectangularButtonSource_h
48 
49 #include "vtkFiltersSourcesModule.h" // For export macro
50 #include "vtkButtonSource.h"
51 
52 class vtkCellArray;
53 class vtkFloatArray;
54 class vtkPoints;
55 
57 {
58 public:
59  void PrintSelf(ostream& os, vtkIndent indent);
61 
64 
66 
67  vtkSetClampMacro(Width,double,0.0,VTK_DOUBLE_MAX);
68  vtkGetMacro(Width,double);
70 
72 
73  vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX);
74  vtkGetMacro(Height,double);
76 
78 
79  vtkSetClampMacro(Depth,double,0.0,VTK_DOUBLE_MAX);
80  vtkGetMacro(Depth,double);
82 
84 
88  vtkSetClampMacro(BoxRatio,double,0.0,VTK_DOUBLE_MAX);
89  vtkGetMacro(BoxRatio,double);
91 
93 
98  vtkSetClampMacro(TextureRatio,double,0.0,VTK_DOUBLE_MAX);
99  vtkGetMacro(TextureRatio,double);
101 
103 
107  vtkSetClampMacro(TextureHeightRatio,double,0.0,VTK_DOUBLE_MAX);
108  vtkGetMacro(TextureHeightRatio,double);
110 
112 
116  vtkSetMacro(OutputPointsPrecision,int);
117  vtkGetMacro(OutputPointsPrecision,int);
119 
120 protected:
123 
125 
126  double Width;
127  double Height;
128  double Depth;
129 
130  double BoxRatio;
131  double TextureRatio;
133 
135 
136 private:
137  vtkRectangularButtonSource(const vtkRectangularButtonSource&); // Not implemented.
138  void operator=(const vtkRectangularButtonSource&); // Not implemented.
139 };
140 
141 #endif
142 
143 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:49
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkRectangularButtonSource::~vtkRectangularButtonSource
~vtkRectangularButtonSource()
Definition: vtkRectangularButtonSource.h:122
vtkRectangularButtonSource::Width
double Width
Definition: vtkRectangularButtonSource.h:126
vtkRectangularButtonSource::New
static vtkRectangularButtonSource * New()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkFiltersSourcesModule.h
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkRectangularButtonSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkButtonSource.h
vtkRectangularButtonSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkRectangularButtonSource.h:134
vtkRectangularButtonSource::TextureRatio
double TextureRatio
Definition: vtkRectangularButtonSource.h:131
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkRectangularButtonSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkRectangularButtonSource
create a rectangular button
Definition: vtkRectangularButtonSource.h:57
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkRectangularButtonSource::TextureHeightRatio
double TextureHeightRatio
Definition: vtkRectangularButtonSource.h:132
vtkRectangularButtonSource::BoxRatio
double BoxRatio
Definition: vtkRectangularButtonSource.h:130
vtkRectangularButtonSource::Height
double Height
Definition: vtkRectangularButtonSource.h:127
vtkButtonSource
abstract class for creating various button types
Definition: vtkButtonSource.h:53
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
vtkRectangularButtonSource::vtkRectangularButtonSource
vtkRectangularButtonSource()
vtkRectangularButtonSource::Depth
double Depth
Definition: vtkRectangularButtonSource.h:128