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 "vtkPolyDataAlgorithm.h"
47 
48 #define VTK_TEXTURE_STYLE_FIT_IMAGE 0
49 #define VTK_TEXTURE_STYLE_PROPORTIONAL 1
50 
52 {
53 public:
54  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
59  vtkSetVector3Macro(Center,double);
60  vtkGetVectorMacro(Center,double,3);
62 
64 
67  vtkSetClampMacro(TextureStyle,int,VTK_TEXTURE_STYLE_FIT_IMAGE,
69  vtkGetMacro(TextureStyle,int);
70  void SetTextureStyleToFitImage()
71  {this->SetTextureStyle(VTK_TEXTURE_STYLE_FIT_IMAGE);}
72  void SetTextureStyleToProportional()
73  {this->SetTextureStyle(VTK_TEXTURE_STYLE_PROPORTIONAL);}
75 
77 
79  vtkSetVector2Macro(TextureDimensions,int);
80  vtkGetVector2Macro(TextureDimensions,int);
82 
84 
85  vtkSetVector2Macro(ShoulderTextureCoordinate,double);
86  vtkGetVector2Macro(ShoulderTextureCoordinate,double);
88 
90 
94  vtkSetMacro(TwoSided,int);
95  vtkGetMacro(TwoSided,int);
96  vtkBooleanMacro(TwoSided,int);
98 
99 protected:
100  vtkButtonSource();
102 
103  double Center[3];
104  double ShoulderTextureCoordinate[2];
106  int TextureDimensions[2];
107  int TwoSided;
108 
109 private:
110  vtkButtonSource(const vtkButtonSource&); // Not implemented.
111  void operator=(const vtkButtonSource&); // Not implemented.
112 
113 };
114 
115 #endif
116 
117