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 "vtkButtonSource.h"
50 
51 class vtkCellArray;
52 class vtkFloatArray;
53 class vtkPoints;
54 
56 {
57 public:
58  void PrintSelf(ostream& os, vtkIndent indent);
60 
63 
65 
66  vtkSetClampMacro(Width,double,0.0,VTK_DOUBLE_MAX);
67  vtkGetMacro(Width,double);
69 
71 
72  vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX);
73  vtkGetMacro(Height,double);
75 
77 
78  vtkSetClampMacro(Depth,double,0.0,VTK_DOUBLE_MAX);
79  vtkGetMacro(Depth,double);
81 
83 
87  vtkSetClampMacro(BoxRatio,double,0.0,VTK_DOUBLE_MAX);
88  vtkGetMacro(BoxRatio,double);
90 
92 
97  vtkSetClampMacro(TextureRatio,double,0.0,VTK_DOUBLE_MAX);
98  vtkGetMacro(TextureRatio,double);
100 
102 
106  vtkSetClampMacro(TextureHeightRatio,double,0.0,VTK_DOUBLE_MAX);
107  vtkGetMacro(TextureHeightRatio,double);
109 
110 protected:
113 
115 
116  double Width;
117  double Height;
118  double Depth;
119 
120  double BoxRatio;
121  double TextureRatio;
123 
124 private:
125  vtkRectangularButtonSource(const vtkRectangularButtonSource&); // Not implemented.
126  void operator=(const vtkRectangularButtonSource&); // Not implemented.
127 };
128 
129 #endif
130 
131 
create a rectangular button
#define VTK_GRAPHICS_EXPORT
abstract class for creating various button types
#define VTK_DOUBLE_MAX
Definition: vtkType.h:133
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:42
void PrintSelf(ostream &os, vtkIndent indent)
static vtkPolyDataAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:37
object to represent cell connectivity
Definition: vtkCellArray.h:48
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:38