VTK
vtkTexturedButtonRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTexturedButtonRepresentation.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 =========================================================================*/
49 #ifndef vtkTexturedButtonRepresentation_h
50 #define vtkTexturedButtonRepresentation_h
51 
52 #include "vtkInteractionWidgetsModule.h" // For export macro
54 
55 class vtkCellPicker;
56 class vtkActor;
57 class vtkProperty;
58 class vtkImageData;
59 class vtkTextureArray; //PIMPLd
60 class vtkPolyData;
61 class vtkPolyDataMapper;
62 class vtkAlgorithmOutput;
63 class vtkTexture;
64 class vtkFollower;
65 
67 {
68 public:
71 
73 
75  void PrintSelf(ostream& os, vtkIndent indent);
77 
79 
84 
86 
88  vtkSetMacro(FollowCamera,int);
89  vtkGetMacro(FollowCamera,int);
90  vtkBooleanMacro(FollowCamera,int);
92 
94 
96  virtual void SetProperty(vtkProperty *p);
99 
101 
103  vtkGetObjectMacro(HoveringProperty,vtkProperty);
105 
107 
109  vtkGetObjectMacro(SelectingProperty,vtkProperty);
111 
113 
118 
125  virtual void PlaceWidget(double scale, double point[3], double normal[3]);
126 
128 
130  virtual int ComputeInteractionState(int X, int Y, int modify=0);
131  virtual void PlaceWidget(double bounds[6]);
132  virtual void BuildRepresentation();
133  virtual void Highlight(int state);
135 
137 
138  virtual void ShallowCopy(vtkProp *prop);
139  virtual double *GetBounds();
140  virtual void GetActors(vtkPropCollection *pc);
146 
147 protected:
150 
151  // Representing the button
156 
157  // Camera
159 
160  // Properties of the button
165 
166  // Keep track of the images (textures) associated with the N
167  // states of the button. This is a PIMPLd stl map.
168  vtkTextureArray *TextureArray;
169 
170  // For picking the button
172 
173  // Register internal Pickers within PickingManager
174  virtual void RegisterPickers();
175 
176 private:
178  void operator=(const vtkTexturedButtonRepresentation&); //Not implemented
179 };
180 
181 #endif
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:42
vtkTexturedButtonRepresentation::Picker
vtkCellPicker * Picker
Definition: vtkTexturedButtonRepresentation.h:171
vtkFollower
a subclass of actor that always faces the camera
Definition: vtkFollower.h:46
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkTexturedButtonRepresentation::New
static vtkTexturedButtonRepresentation * New()
vtkTexturedButtonRepresentation::SetHoveringProperty
virtual void SetHoveringProperty(vtkProperty *p)
vtkTexturedButtonRepresentation::FollowCamera
int FollowCamera
Definition: vtkTexturedButtonRepresentation.h:158
vtkTexturedButtonRepresentation::GetBounds
virtual double * GetBounds()
vtkTexturedButtonRepresentation::SetButtonGeometryConnection
void SetButtonGeometryConnection(vtkAlgorithmOutput *algOutput)
vtkgl::scale
GLenum GLenum GLenum GLenum GLenum scale
Definition: vtkgl.h:15942
vtkTexturedButtonRepresentation::SetProperty
virtual void SetProperty(vtkProperty *p)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkTexturedButtonRepresentation::ShallowCopy
virtual void ShallowCopy(vtkProp *prop)
vtkTexturedButtonRepresentation::SelectingProperty
vtkProperty * SelectingProperty
Definition: vtkTexturedButtonRepresentation.h:163
vtkInteractionWidgetsModule.h
vtkButtonRepresentation.h
vtkTexturedButtonRepresentation::GetButtonTexture
vtkImageData * GetButtonTexture(int i)
vtkButtonRepresentation
abstract class defines the representation for a vtkButtonWidget
Definition: vtkButtonRepresentation.h:48
vtkTexturedButtonRepresentation::SetButtonTexture
void SetButtonTexture(int i, vtkImageData *image)
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkTexturedButtonRepresentation::Texture
vtkTexture * Texture
Definition: vtkTexturedButtonRepresentation.h:155
vtkTexturedButtonRepresentation::Mapper
vtkPolyDataMapper * Mapper
Definition: vtkTexturedButtonRepresentation.h:154
vtkX3D::point
@ point
Definition: vtkX3D.h:236
vtkTexturedButtonRepresentation::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkTexture
handles properties associated with a texture map
Definition: vtkTexture.h:70
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTexturedButtonRepresentation::PlaceWidget
virtual void PlaceWidget(double bounds[6])
vtkTexturedButtonRepresentation::vtkTexturedButtonRepresentation
vtkTexturedButtonRepresentation()
vtkTexturedButtonRepresentation::ComputeInteractionState
virtual int ComputeInteractionState(int X, int Y, int modify=0)
vtkTexturedButtonRepresentation::GetActors
virtual void GetActors(vtkPropCollection *pc)
vtkTexturedButtonRepresentation::GetButtonGeometry
vtkPolyData * GetButtonGeometry()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkTexturedButtonRepresentation::BuildRepresentation
virtual void BuildRepresentation()
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkTexturedButtonRepresentation::Property
vtkProperty * Property
Definition: vtkTexturedButtonRepresentation.h:161
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkTexturedButtonRepresentation::Follower
vtkFollower * Follower
Definition: vtkTexturedButtonRepresentation.h:153
vtkTexturedButtonRepresentation
defines a representation for a vtkButtonWidget
Definition: vtkTexturedButtonRepresentation.h:67
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:39
vtkTexturedButtonRepresentation::PlaceWidget
virtual void PlaceWidget(double scale, double point[3], double normal[3])
vtkTexturedButtonRepresentation::Highlight
virtual void Highlight(int state)
vtkTexturedButtonRepresentation::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
vtkTexturedButtonRepresentation::SetSelectingProperty
virtual void SetSelectingProperty(vtkProperty *p)
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkTexturedButtonRepresentation::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
vtkTexturedButtonRepresentation::Actor
vtkActor * Actor
Definition: vtkTexturedButtonRepresentation.h:152
vtkgl::p
GLfloat GLfloat p
Definition: vtkgl.h:15717
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:64
vtkTexturedButtonRepresentation::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
vtkTexturedButtonRepresentation::~vtkTexturedButtonRepresentation
~vtkTexturedButtonRepresentation()
vtkTexturedButtonRepresentation::CreateDefaultProperties
void CreateDefaultProperties()
vtkTexturedButtonRepresentation::SetButtonGeometry
void SetButtonGeometry(vtkPolyData *pd)
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkTexturedButtonRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkCellPicker
ray-cast cell picker for all kinds of Prop3Ds
Definition: vtkCellPicker.h:69
vtkTexturedButtonRepresentation::RegisterPickers
virtual void RegisterPickers()
vtkgl::image
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: vtkgl.h:11341
vtkTexturedButtonRepresentation::TextureArray
vtkTextureArray * TextureArray
Definition: vtkTexturedButtonRepresentation.h:168
vtkTexturedButtonRepresentation::HoveringProperty
vtkProperty * HoveringProperty
Definition: vtkTexturedButtonRepresentation.h:162