Go to the documentation of this file.
60 #ifndef vtkBalloonRepresentation_h
61 #define vtkBalloonRepresentation_h
63 #include "vtkInteractionWidgetsModule.h"
110 vtkGetStringMacro(BalloonText);
111 vtkSetStringMacro(BalloonText);
121 vtkSetVector2Macro(ImageSize,
int);
122 vtkGetVector2Macro(ImageSize,
int);
150 enum {ImageLeft=0,ImageRight,ImageBottom,ImageTop};
160 vtkSetMacro(BalloonLayout,
int);
161 vtkGetMacro(BalloonLayout,
int);
179 vtkSetVector2Macro(Offset,
int);
180 vtkGetVector2Macro(Offset,
int);
188 vtkSetClampMacro(Padding,
int,0,100);
189 vtkGetMacro(Padding,
int);
represent and manipulate 3D points
void SetBalloonLayoutToTextTop()
void AdjustImageSize(double imageSize[2])
draw vtkPolyData onto the image plane
vtkTextMapper * TextMapper
~vtkBalloonRepresentation() override
actor that draws 2D data with texture support
void StartWidgetInteraction(double e[2]) override
These are methods that satisfy vtkWidgetRepresentation's API.
static vtkBalloonRepresentation * New()
Instantiate the class.
virtual void SetFrameProperty(vtkProperty2D *p)
Set/get the frame property (relevant only if text is shown).
void ScaleImage(double imageSize[2], double scale)
vtkBalloonRepresentation()
vtkPolyData * FramePolyData
vtkTextProperty * TextProperty
vtkPolyData * TexturePolyData
void SetBalloonLayoutToImageBottom()
void SetBalloonLayoutToTextBottom()
int ComputeInteractionState(int X, int Y, int modify=0) override
vtkPolyDataMapper2D * TextureMapper
window superclass for vtkRenderWindow
virtual void SetImageProperty(vtkProperty2D *p)
Set/get the image property (relevant only if an image is shown).
handles properties associated with a texture map
vtkProperty2D * FrameProperty
topologically and geometrically regular array of data
An actor that displays text.
a simple class to control print indentation
void SetBalloonLayoutToTextRight()
object to represent cell connectivity
vtkProperty2D * ImageProperty
void SetBalloonLayoutToImageTop()
abstract specification for Viewports
represent the vtkBalloonWidget
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent text properties.
vtkImageData * BalloonImage
represent surface properties of a 2D image
vtkPoints * TexturePoints
a actor that draws 2D data
virtual void SetBalloonImage(vtkImageData *img)
Specify/retrieve the image to display in the balloon.
void EndWidgetInteraction(double e[2]) override
int RenderOverlay(vtkViewport *viewport) override
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetBalloonLayoutToImageLeft()
_InteractionState
State is either outside, or inside (on the text portion of the image).
vtkTexturedActor2D * TextureActor
void BuildRepresentation() override
void ReleaseGraphicsResources(vtkWindow *w) override
Methods required by vtkProp superclass.
virtual void SetTextProperty(vtkTextProperty *p)
Set/get the text property (relevant only if text is shown).
void SetBalloonLayoutToTextLeft()
vtkCellArray * FramePolygon
void SetBalloonLayoutToImageRight()
vtkPolyDataMapper2D * FrameMapper