|
| virtual int | IsA (const char *type) |
| |
| vtkBalloonRepresentation * | NewInstance () const |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| 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) |
| |
| vtkWidgetRepresentation * | NewInstance () const |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| 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 () |
| |
| vtkProp * | NewInstance () const |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| 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 | Pick () |
| |
| 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 bool | HasKeys (vtkInformation *requiredKeys) |
| |
| 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 void | BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path) |
| |
| 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 | PrintHeader (ostream &os, vtkIndent indent) |
| |
| virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| |
| virtual void | Register (vtkObjectBase *o) |
| |
| virtual void | UnRegister (vtkObjectBase *o) |
| |
| int | GetReferenceCount () |
| |
| void | SetReferenceCount (int) |
| |
| void | PrintRevisions (ostream &) |
| |
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.
- See also
- vtkBalloonWidget
- Examples:
- vtkBalloonRepresentation (Examples)
- Tests:
- vtkBalloonRepresentation (Tests)
Definition at line 81 of file vtkBalloonRepresentation.h.