Go to the documentation of this file.
47 #ifndef vtkTexturedButtonRepresentation2D_h
48 #define vtkTexturedButtonRepresentation2D_h
50 #include "vtkInteractionWidgetsModule.h"
55 class vtkTextureArray;
virtual double * GetBounds()
Methods to make this class behave as a vtkProp.
virtual void SetHoveringProperty(vtkProperty2D *p)
Specify the property to use when the hovering over the button.
virtual void BuildRepresentation()
vtkImageData * GetButtonTexture(int i)
virtual void SetProperty(vtkProperty2D *p)
Specify the property to use when the button is to appear "normal" i.e., the mouse pointer is not hove...
vtkBalloonRepresentation * Balloon
vtkBalloonRepresentation * GetBalloon()
Grab the underlying vtkBalloonRepresentation used to position and display the button texture.
void CreateDefaultProperties()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkTexturedButtonRepresentation2D()
vtkProperty2D * SelectingProperty
vtkTextureArray * TextureArray
virtual void PlaceWidget(double bounds[6])
Conventional PlaceWidget() method to satisfy the vtkWidgetRepresentation API.
virtual int RenderOverlay(vtkViewport *)
virtual void PlaceWidget(double anchor[3], int size[2])
This alternative PlaceWidget() method can be used to anchor the button to a 3D point.
window superclass for vtkRenderWindow
virtual int ComputeInteractionState(int X, int Y, int modify=0)
Provide the necessary methods to satisfy the vtkWidgetRepresentation API.
topologically and geometrically regular array of data
a simple class to control print indentation
void SetButtonTexture(int i, vtkImageData *image)
Add the ith texture corresponding to the ith button state.
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
vtkProperty2D * HoveringProperty
virtual void ShallowCopy(vtkProp *prop)
Provide the necessary methods to satisfy the rendering API.
abstract specification for Viewports
represent the vtkBalloonWidget
abstract superclass for all actors, volumes and annotations
represent surface properties of a 2D image
~vtkTexturedButtonRepresentation2D()
virtual void GetActors(vtkPropCollection *pc)
For some exporters and other other operations we must be able to collect all the actors or volumes.
virtual void SetSelectingProperty(vtkProperty2D *p)
Specify the property to use when selecting the button.
Proxy object to connect input/output ports.
static vtkTexturedButtonRepresentation2D * New()
Instantiate the class.
virtual void Highlight(int state)
defines a representation for a vtkButtonWidget