VTK
|
represent the vtkBalloonWidget More...
#include <vtkBalloonRepresentation.h>
Public Types | |
enum | { ImageLeft =0, ImageRight, ImageBottom, ImageTop } |
enum | _InteractionState { Outside =0, OnText, OnImage } |
![]() | |
typedef vtkProp | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual void | SetBalloonImage (vtkImageData *img) |
virtual vtkImageData * | GetBalloonImage () |
virtual char * | GetBalloonText () |
virtual void | SetBalloonText (const char *) |
virtual void | SetImageSize (int, int) |
void | SetImageSize (int[2]) |
virtual int * | GetImageSize () |
virtual void | GetImageSize (int &, int &) |
virtual void | GetImageSize (int[2]) |
virtual void | SetTextProperty (vtkTextProperty *p) |
virtual vtkTextProperty * | GetTextProperty () |
virtual void | SetFrameProperty (vtkProperty2D *p) |
virtual vtkProperty2D * | GetFrameProperty () |
virtual void | SetImageProperty (vtkProperty2D *p) |
virtual vtkProperty2D * | GetImageProperty () |
virtual void | SetBalloonLayout (int) |
virtual int | GetBalloonLayout () |
void | SetBalloonLayoutToImageLeft () |
void | SetBalloonLayoutToImageRight () |
void | SetBalloonLayoutToImageBottom () |
void | SetBalloonLayoutToImageTop () |
void | SetBalloonLayoutToTextLeft () |
void | SetBalloonLayoutToTextRight () |
void | SetBalloonLayoutToTextTop () |
void | SetBalloonLayoutToTextBottom () |
virtual void | SetOffset (int, int) |
void | SetOffset (int[2]) |
virtual int * | GetOffset () |
virtual void | GetOffset (int &, int &) |
virtual void | GetOffset (int[2]) |
virtual void | SetPadding (int) |
virtual int | GetPadding () |
virtual void | StartWidgetInteraction (double e[2]) |
virtual void | EndWidgetInteraction (double e[2]) |
virtual void | BuildRepresentation () |
virtual int | ComputeInteractionState (int X, int Y, int modify=0) |
virtual void | ReleaseGraphicsResources (vtkWindow *w) |
virtual int | RenderOverlay (vtkViewport *viewport) |
![]() | |
virtual void | PickingManagedOn () |
virtual void | PickingManagedOff () |
virtual void | SetPickingManaged (bool) |
virtual bool | GetPickingManaged () |
virtual void | SetRenderer (vtkRenderer *ren) |
virtual vtkRenderer * | GetRenderer () |
virtual void | PlaceWidget (double *vtkNotUsed(bounds[6])) |
virtual void | WidgetInteraction (double newEventPos[2]) |
virtual int | GetInteractionState () |
virtual void | Highlight (int vtkNotUsed(highlightOn)) |
virtual void | SetPlaceFactor (double) |
virtual double | GetPlaceFactor () |
virtual void | SetHandleSize (double) |
virtual double | GetHandleSize () |
virtual int | GetNeedToRender () |
virtual void | SetNeedToRender (int) |
virtual void | NeedToRenderOn () |
virtual void | NeedToRenderOff () |
virtual double * | GetBounds () |
virtual void | ShallowCopy (vtkProp *prop) |
virtual void | GetActors (vtkPropCollection *) |
virtual void | GetActors2D (vtkPropCollection *) |
virtual void | GetVolumes (vtkPropCollection *) |
virtual int | RenderOverlay (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderOpaqueGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderVolumetricGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | HasTranslucentPolygonalGeometry () |
vtkWidgetRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
![]() | |
vtkProp * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Pick () |
virtual bool | HasKeys (vtkInformation *requiredKeys) |
virtual void | BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path) |
virtual void | SetVisibility (int) |
virtual int | GetVisibility () |
virtual void | VisibilityOn () |
virtual void | VisibilityOff () |
virtual void | SetPickable (int) |
virtual int | GetPickable () |
virtual void | PickableOn () |
virtual void | PickableOff () |
virtual void | SetDragable (int) |
virtual int | GetDragable () |
virtual void | DragableOn () |
virtual void | DragableOff () |
virtual unsigned long | GetRedrawMTime () |
virtual void | SetUseBounds (bool) |
virtual bool | GetUseBounds () |
virtual void | UseBoundsOn () |
virtual void | UseBoundsOff () |
virtual void | InitPathTraversal () |
virtual vtkAssemblyPath * | GetNextPath () |
virtual int | GetNumberOfPaths () |
virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
virtual vtkMatrix4x4 * | GetMatrix () |
virtual vtkInformation * | GetPropertyKeys () |
virtual void | SetPropertyKeys (vtkInformation *keys) |
virtual int | RenderOpaqueGeometry (vtkViewport *) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *) |
virtual int | RenderVolumetricGeometry (vtkViewport *) |
virtual bool | RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys) |
virtual double | GetEstimatedRenderTime (vtkViewport *) |
virtual double | GetEstimatedRenderTime () |
virtual void | SetEstimatedRenderTime (double t) |
virtual void | RestoreEstimatedRenderTime () |
virtual void | AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp)) |
virtual void | SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v)) |
virtual double | GetAllocatedRenderTime () |
void | SetRenderTimeMultiplier (double t) |
virtual double | GetRenderTimeMultiplier () |
virtual bool | GetSupportsSelection () |
virtual int | GetNumberOfConsumers () |
void | AddConsumer (vtkObject *c) |
void | RemoveConsumer (vtkObject *c) |
vtkObject * | GetConsumer (int i) |
int | IsConsumer (vtkObject *c) |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkBalloonRepresentation * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkWidgetRepresentation * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkProp * | SafeDownCast (vtkObjectBase *o) |
static vtkInformationIntegerKey * | GeneralTextureUnit () |
static vtkInformationDoubleVectorKey * | GeneralTextureTransform () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
represent the vtkBalloonWidget
The vtkBalloonRepresentation is used to represent the vtkBalloonWidget. This representation is defined by two items: a text string and an image. At least one of these two items must be defined, but it is allowable to specify both, or just an image or just text. If both the text and image are specified, then methods are available for positioning the text and image with respect to each other.
The balloon representation consists of three parts: text, a rectangular frame behind the text, and an image placed next to the frame and sized to match the frame.
The size of the balloon is ultimately controlled by the text properties (i.e., font size). This representation uses a layout policy as follows.
If there is just text and no image, then the text properties and padding are used to control the size of the balloon.
If there is just an image and no text, then the ImageSize[2] member is used to control the image size. (The image will fit into this rectangle, but will not necessarily fill the whole rectangle, i.e., the image is not stretched).
If there is text and an image, the following approach ia used. First, based on the font size and other related properties (e.g., padding), determine the size of the frame. Second, depending on the layout of the image and text frame, control the size of the neighboring image (since the frame and image share a common edge). However, if this results in an image that is smaller than ImageSize[2], then the image size will be set to ImageSize[2] and the frame will be adjusted accordingly. The text is always placed in the center of the frame if the frame is resized.
Definition at line 81 of file vtkBalloonRepresentation.h.
Standard VTK methods.
Definition at line 89 of file vtkBalloonRepresentation.h.
anonymous enum |
Enumerator | |
---|---|
ImageLeft | |
ImageRight | |
ImageBottom | |
ImageTop |
Definition at line 134 of file vtkBalloonRepresentation.h.
State is either outside, or inside (on the text portion ot the image).
Enumerator | |
---|---|
Outside | |
OnText | |
OnImage |
Definition at line 187 of file vtkBalloonRepresentation.h.
|
protected |
|
protected |
|
static |
Instantiate the class.
|
static |
Standard VTK methods.
|
virtual |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
|
static |
Standard VTK methods.
|
protectedvirtual |
Standard VTK methods.
Reimplemented from vtkWidgetRepresentation.
vtkBalloonRepresentation* vtkBalloonRepresentation::NewInstance | ( | ) | const |
Standard VTK methods.
|
virtual |
Standard VTK methods.
Reimplemented from vtkObject.
|
virtual |
Specify/retrieve the image to display in the balloon.
|
virtual |
Specify/retrieve the image to display in the balloon.
|
virtual |
Specify/retrieve the text to display in the balloon.
|
virtual |
Specify/retrieve the text to display in the balloon.
Specify the minimum size for the image. Note that this is a bounding rectangle, the image will fit inside of it. However, if the balloon consists of text plus an image, then the image may be bigger than ImageSize[2] to fit into the balloon frame.
void vtkBalloonRepresentation::SetImageSize | ( | int | [2] | ) |
Specify the minimum size for the image. Note that this is a bounding rectangle, the image will fit inside of it. However, if the balloon consists of text plus an image, then the image may be bigger than ImageSize[2] to fit into the balloon frame.
|
virtual |
Specify the minimum size for the image. Note that this is a bounding rectangle, the image will fit inside of it. However, if the balloon consists of text plus an image, then the image may be bigger than ImageSize[2] to fit into the balloon frame.
Specify the minimum size for the image. Note that this is a bounding rectangle, the image will fit inside of it. However, if the balloon consists of text plus an image, then the image may be bigger than ImageSize[2] to fit into the balloon frame.
|
virtual |
Specify the minimum size for the image. Note that this is a bounding rectangle, the image will fit inside of it. However, if the balloon consists of text plus an image, then the image may be bigger than ImageSize[2] to fit into the balloon frame.
|
virtual |
Set/get the text property (relevant only if text is shown).
|
virtual |
Set/get the text property (relevant only if text is shown).
|
virtual |
Set/get the frame property (relevant only if text is shown). The frame lies behind the text.
|
virtual |
Set/get the frame property (relevant only if text is shown). The frame lies behind the text.
|
virtual |
Set/get the image property (relevant only if an image is shown).
|
virtual |
Set/get the image property (relevant only if an image is shown).
|
virtual |
Specify the layout of the image and text within the balloon. Note that there are reduncies in these methods, for example SetBalloonLayoutToImageLeft() results in the same effect as SetBalloonLayoutToTextRight(). If only text is specified, or only an image is specified, then it doesn't matter how the layout is specified.
|
virtual |
Specify the layout of the image and text within the balloon. Note that there are reduncies in these methods, for example SetBalloonLayoutToImageLeft() results in the same effect as SetBalloonLayoutToTextRight(). If only text is specified, or only an image is specified, then it doesn't matter how the layout is specified.
|
inline |
Specify the layout of the image and text within the balloon. Note that there are reduncies in these methods, for example SetBalloonLayoutToImageLeft() results in the same effect as SetBalloonLayoutToTextRight(). If only text is specified, or only an image is specified, then it doesn't matter how the layout is specified.
Definition at line 145 of file vtkBalloonRepresentation.h.
|
inline |
Specify the layout of the image and text within the balloon. Note that there are reduncies in these methods, for example SetBalloonLayoutToImageLeft() results in the same effect as SetBalloonLayoutToTextRight(). If only text is specified, or only an image is specified, then it doesn't matter how the layout is specified.
Definition at line 146 of file vtkBalloonRepresentation.h.
|
inline |
Specify the layout of the image and text within the balloon. Note that there are reduncies in these methods, for example SetBalloonLayoutToImageLeft() results in the same effect as SetBalloonLayoutToTextRight(). If only text is specified, or only an image is specified, then it doesn't matter how the layout is specified.
Definition at line 147 of file vtkBalloonRepresentation.h.
|
inline |
Specify the layout of the image and text within the balloon. Note that there are reduncies in these methods, for example SetBalloonLayoutToImageLeft() results in the same effect as SetBalloonLayoutToTextRight(). If only text is specified, or only an image is specified, then it doesn't matter how the layout is specified.
Definition at line 148 of file vtkBalloonRepresentation.h.
|
inline |
Specify the layout of the image and text within the balloon. Note that there are reduncies in these methods, for example SetBalloonLayoutToImageLeft() results in the same effect as SetBalloonLayoutToTextRight(). If only text is specified, or only an image is specified, then it doesn't matter how the layout is specified.
Definition at line 149 of file vtkBalloonRepresentation.h.
|
inline |
Specify the layout of the image and text within the balloon. Note that there are reduncies in these methods, for example SetBalloonLayoutToImageLeft() results in the same effect as SetBalloonLayoutToTextRight(). If only text is specified, or only an image is specified, then it doesn't matter how the layout is specified.
Definition at line 150 of file vtkBalloonRepresentation.h.
|
inline |
Specify the layout of the image and text within the balloon. Note that there are reduncies in these methods, for example SetBalloonLayoutToImageLeft() results in the same effect as SetBalloonLayoutToTextRight(). If only text is specified, or only an image is specified, then it doesn't matter how the layout is specified.
Definition at line 151 of file vtkBalloonRepresentation.h.
|
inline |
Specify the layout of the image and text within the balloon. Note that there are reduncies in these methods, for example SetBalloonLayoutToImageLeft() results in the same effect as SetBalloonLayoutToTextRight(). If only text is specified, or only an image is specified, then it doesn't matter how the layout is specified.
Definition at line 152 of file vtkBalloonRepresentation.h.
Set/Get the offset from the mouse pointer from which to place the balloon. The representation will try and honor this offset unless there is a collision with the side of the renderer, in which case the balloon will be repositioned to lie within the rendering window.
void vtkBalloonRepresentation::SetOffset | ( | int | [2] | ) |
Set/Get the offset from the mouse pointer from which to place the balloon. The representation will try and honor this offset unless there is a collision with the side of the renderer, in which case the balloon will be repositioned to lie within the rendering window.
|
virtual |
Set/Get the offset from the mouse pointer from which to place the balloon. The representation will try and honor this offset unless there is a collision with the side of the renderer, in which case the balloon will be repositioned to lie within the rendering window.
Set/Get the offset from the mouse pointer from which to place the balloon. The representation will try and honor this offset unless there is a collision with the side of the renderer, in which case the balloon will be repositioned to lie within the rendering window.
|
virtual |
Set/Get the offset from the mouse pointer from which to place the balloon. The representation will try and honor this offset unless there is a collision with the side of the renderer, in which case the balloon will be repositioned to lie within the rendering window.
|
virtual |
Set/Get the padding (in pixels) that is used between the text and the frame.
|
virtual |
Set/Get the padding (in pixels) that is used between the text and the frame.
|
virtual |
These are methods that satisfy vtkWidgetRepresentation's API.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
These are methods that satisfy vtkWidgetRepresentation's API.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
These are methods that satisfy vtkWidgetRepresentation's API.
Implements vtkWidgetRepresentation.
|
virtual |
These are methods that satisfy vtkWidgetRepresentation's API.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
Methods required by vtkProp superclass.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
|
protected |
|
protected |
Definition at line 194 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 195 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 198 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 201 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 202 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 203 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 206 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 207 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 208 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 211 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 212 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 213 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 214 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 215 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 216 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 219 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 220 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 221 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 222 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 223 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 224 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 227 of file vtkBalloonRepresentation.h.
|
protected |
Definition at line 228 of file vtkBalloonRepresentation.h.