 |
VTK
9.1.0
|
Go to the documentation of this file.
63 #ifndef vtkTexturedButtonRepresentation2D_h
64 #define vtkTexturedButtonRepresentation2D_h
67 #include "vtkInteractionWidgetsModule.h"
71 class vtkTextureArray;
virtual void SetHoveringProperty(vtkProperty2D *p)
Specify the property to use when the hovering over the button.
vtkImageData * GetButtonTexture(int i)
Add the ith texture corresponding to the ith button state.
~vtkTexturedButtonRepresentation2D() override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
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()
vtkTexturedButtonRepresentation2D()
void ShallowCopy(vtkProp *prop) override
Provide the necessary methods to satisfy the rendering API.
vtkProperty2D * SelectingProperty
vtkTextureArray * TextureArray
void Highlight(int state) override
Provide the necessary methods to satisfy the vtkWidgetRepresentation API.
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
void PlaceWidget(double bounds[6]) override
Conventional PlaceWidget() method 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.
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
vtkProperty2D * HoveringProperty
abstract specification for Viewports
represent the vtkBalloonWidget
double * GetBounds() override
Provide the necessary methods to satisfy the rendering API.
abstract superclass for all actors, volumes and annotations
int ComputeInteractionState(int X, int Y, int modify=0) override
Provide the necessary methods to satisfy the vtkWidgetRepresentation API.
represent surface properties of a 2D image
void BuildRepresentation() override
Provide the necessary methods to satisfy the vtkWidgetRepresentation API.
void ReleaseGraphicsResources(vtkWindow *) override
Provide the necessary methods to satisfy the rendering API.
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.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Provide the necessary methods to satisfy the rendering API.
int RenderOverlay(vtkViewport *) override
Provide the necessary methods to satisfy the rendering API.
void GetActors(vtkPropCollection *pc) override
Provide the necessary methods to satisfy the rendering API.
defines a representation for a vtkButtonWidget