VTK
vtkButtonSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkButtonSource.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 =========================================================================*/
43 #ifndef vtkButtonSource_h
44 #define vtkButtonSource_h
45 
46 #include "vtkFiltersSourcesModule.h" // For export macro
47 #include "vtkPolyDataAlgorithm.h"
48 
49 #define VTK_TEXTURE_STYLE_FIT_IMAGE 0
50 #define VTK_TEXTURE_STYLE_PROPORTIONAL 1
51 
53 {
54 public:
55  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
60  vtkSetVector3Macro(Center,double);
61  vtkGetVectorMacro(Center,double,3);
63 
65 
68  vtkSetClampMacro(TextureStyle,int,VTK_TEXTURE_STYLE_FIT_IMAGE,
70  vtkGetMacro(TextureStyle,int);
72  {this->SetTextureStyle(VTK_TEXTURE_STYLE_FIT_IMAGE);}
74  {this->SetTextureStyle(VTK_TEXTURE_STYLE_PROPORTIONAL);}
76 
78 
80  vtkSetVector2Macro(TextureDimensions,int);
81  vtkGetVector2Macro(TextureDimensions,int);
83 
85 
86  vtkSetVector2Macro(ShoulderTextureCoordinate,double);
87  vtkGetVector2Macro(ShoulderTextureCoordinate,double);
89 
91 
95  vtkSetMacro(TwoSided,int);
96  vtkGetMacro(TwoSided,int);
97  vtkBooleanMacro(TwoSided,int);
99 
100 protected:
101  vtkButtonSource();
103 
104  double Center[3];
105  double ShoulderTextureCoordinate[2];
107  int TextureDimensions[2];
108  int TwoSided;
109 
110 private:
111  vtkButtonSource(const vtkButtonSource&); // Not implemented.
112  void operator=(const vtkButtonSource&); // Not implemented.
113 
114 };
115 
116 #endif
117 
118 
abstract class for creating various button types
void SetTextureStyleToFitImage()
void SetTextureStyleToProportional()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
#define VTK_TEXTURE_STYLE_FIT_IMAGE
#define VTK_TEXTURE_STYLE_PROPORTIONAL