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=========================================================================*/
44#ifndef vtkButtonSource_h
45#define vtkButtonSource_h
46
47#include "vtkFiltersSourcesModule.h" // For export macro
49
50#define VTK_TEXTURE_STYLE_FIT_IMAGE 0
51#define VTK_TEXTURE_STYLE_PROPORTIONAL 1
52
53class VTKFILTERSSOURCES_EXPORT vtkButtonSource : public vtkPolyDataAlgorithm
54{
55public:
56 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
58
60
63 vtkSetVector3Macro(Center,double);
64 vtkGetVectorMacro(Center,double,3);
66
68
73 vtkSetClampMacro(TextureStyle,int,VTK_TEXTURE_STYLE_FIT_IMAGE,
75 vtkGetMacro(TextureStyle,int);
77 {this->SetTextureStyle(VTK_TEXTURE_STYLE_FIT_IMAGE);}
79 {this->SetTextureStyle(VTK_TEXTURE_STYLE_PROPORTIONAL);}
81
83
87 vtkSetVector2Macro(TextureDimensions,int);
88 vtkGetVector2Macro(TextureDimensions,int);
90
92
95 vtkSetVector2Macro(ShoulderTextureCoordinate,double);
96 vtkGetVector2Macro(ShoulderTextureCoordinate,double);
98
100
106 vtkSetMacro(TwoSided,int);
107 vtkGetMacro(TwoSided,int);
108 vtkBooleanMacro(TwoSided,int);
110
111protected:
113 ~vtkButtonSource() VTK_OVERRIDE {}
114
115 double Center[3];
116 double ShoulderTextureCoordinate[2];
118 int TextureDimensions[2];
120
121private:
122 vtkButtonSource(const vtkButtonSource&) VTK_DELETE_FUNCTION;
123 void operator=(const vtkButtonSource&) VTK_DELETE_FUNCTION;
124
125};
126
127#endif
128
129
abstract class for creating various button types
void SetTextureStyleToProportional()
~vtkButtonSource() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetTextureStyleToFitImage()
a simple class to control print indentation
Definition: vtkIndent.h:40
Superclass for algorithms that produce only polydata as output.
#define VTK_TEXTURE_STYLE_PROPORTIONAL
#define VTK_TEXTURE_STYLE_FIT_IMAGE
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.