VTK
vtkTexturedButtonRepresentation2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTexturedButtonRepresentation2D.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 vtkTexturedButtonRepresentation2D_h
47 #define vtkTexturedButtonRepresentation2D_h
48 
49 #include "vtkInteractionWidgetsModule.h" // For export macro
51 
52 class vtkProperty2D;
53 class vtkImageData;
54 class vtkTextureArray; //PIMPLd
55 class vtkProperty2D;
56 class vtkAlgorithmOutput;
58 class vtkCoordinate;
59 
60 
62 {
63 public:
66 
68 
70  void PrintSelf(ostream& os, vtkIndent indent);
72 
74 
76  virtual void SetProperty(vtkProperty2D *p);
79 
81 
83  vtkGetObjectMacro(HoveringProperty,vtkProperty2D);
85 
87 
89  vtkGetObjectMacro(SelectingProperty,vtkProperty2D);
91 
93 
98 
101  vtkBalloonRepresentation *GetBalloon() {return this->Balloon;}
102 
104 
106  virtual int ComputeInteractionState(int X, int Y, int modify=0);
107  virtual void BuildRepresentation();
108  virtual void Highlight(int state);
110 
117  virtual void PlaceWidget(double bounds[6]);
118 
128  virtual void PlaceWidget(double anchor[3], int size[2]);
129 
131 
132  virtual void ShallowCopy(vtkProp *prop);
133  virtual double *GetBounds();
134  virtual void GetActors(vtkPropCollection *pc);
136  virtual int RenderOverlay(vtkViewport*);
139 
140 protected:
143 
144  // Representing the button
146 
147  // Properties of the button
152 
153  // Keep track of the images (textures) associated with the N
154  // states of the button.
155  vtkTextureArray *TextureArray;
156 
157  // Tracking world position
159 
160 private:
162  void operator=(const vtkTexturedButtonRepresentation2D&); //Not implemented
163 };
164 
165 #endif
vtkTexturedButtonRepresentation2D::GetBounds
virtual double * GetBounds()
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkTexturedButtonRepresentation2D::SetHoveringProperty
virtual void SetHoveringProperty(vtkProperty2D *p)
vtkTexturedButtonRepresentation2D::BuildRepresentation
virtual void BuildRepresentation()
vtkTexturedButtonRepresentation2D::GetButtonTexture
vtkImageData * GetButtonTexture(int i)
vtkTexturedButtonRepresentation2D::Property
vtkProperty2D * Property
Definition: vtkTexturedButtonRepresentation2D.h:148
vtkTexturedButtonRepresentation2D::SetProperty
virtual void SetProperty(vtkProperty2D *p)
vtkTexturedButtonRepresentation2D::Balloon
vtkBalloonRepresentation * Balloon
Definition: vtkTexturedButtonRepresentation2D.h:145
vtkTexturedButtonRepresentation2D::GetBalloon
vtkBalloonRepresentation * GetBalloon()
Definition: vtkTexturedButtonRepresentation2D.h:101
vtkTexturedButtonRepresentation2D::CreateDefaultProperties
void CreateDefaultProperties()
vtkTexturedButtonRepresentation2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTexturedButtonRepresentation2D::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkTexturedButtonRepresentation2D::vtkTexturedButtonRepresentation2D
vtkTexturedButtonRepresentation2D()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkTexturedButtonRepresentation2D::SelectingProperty
vtkProperty2D * SelectingProperty
Definition: vtkTexturedButtonRepresentation2D.h:150
vtkTexturedButtonRepresentation2D::TextureArray
vtkTextureArray * TextureArray
Definition: vtkTexturedButtonRepresentation2D.h:155
vtkInteractionWidgetsModule.h
vtkButtonRepresentation.h
vtkTexturedButtonRepresentation2D::PlaceWidget
virtual void PlaceWidget(double bounds[6])
vtkTexturedButtonRepresentation2D::RenderOverlay
virtual int RenderOverlay(vtkViewport *)
vtkTexturedButtonRepresentation2D::PlaceWidget
virtual void PlaceWidget(double anchor[3], int size[2])
vtkButtonRepresentation
abstract class defines the representation for a vtkButtonWidget
Definition: vtkButtonRepresentation.h:48
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkTexturedButtonRepresentation2D::ComputeInteractionState
virtual int ComputeInteractionState(int X, int Y, int modify=0)
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTexturedButtonRepresentation2D::SetButtonTexture
void SetButtonTexture(int i, vtkImageData *image)
vtkTexturedButtonRepresentation2D::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
vtkCoordinate
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:70
vtkTexturedButtonRepresentation2D::HoveringProperty
vtkProperty2D * HoveringProperty
Definition: vtkTexturedButtonRepresentation2D.h:149
vtkTexturedButtonRepresentation2D::ShallowCopy
virtual void ShallowCopy(vtkProp *prop)
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkBalloonRepresentation
represent the vtkBalloonWidget
Definition: vtkBalloonRepresentation.h:82
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:40
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkTexturedButtonRepresentation2D::~vtkTexturedButtonRepresentation2D
~vtkTexturedButtonRepresentation2D()
vtkTexturedButtonRepresentation2D::GetActors
virtual void GetActors(vtkPropCollection *pc)
vtkTexturedButtonRepresentation2D::SetSelectingProperty
virtual void SetSelectingProperty(vtkProperty2D *p)
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:39
vtkTexturedButtonRepresentation2D::New
static vtkTexturedButtonRepresentation2D * New()
vtkgl::p
GLfloat GLfloat p
Definition: vtkgl.h:15717
vtkTexturedButtonRepresentation2D::Highlight
virtual void Highlight(int state)
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkgl::image
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: vtkgl.h:11341
vtkTexturedButtonRepresentation2D::Anchor
vtkCoordinate * Anchor
Definition: vtkTexturedButtonRepresentation2D.h:158
vtkTexturedButtonRepresentation2D
defines a representation for a vtkButtonWidget
Definition: vtkTexturedButtonRepresentation2D.h:62
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843