|
VTK
9.6.20260502
|
A single entry to use inside vtkLegendBoxActor. More...
#include <vtkLegendBoxEntryInternal.h>
Public Member Functions | |
| vtkLegendBoxEntryInternal () | |
| ~vtkLegendBoxEntryInternal () | |
| bool | HasSymbol () |
| Returns true if the entry has a symbol set (i.e. | |
| bool | HasIcon () |
| Returns true if the entry has an icon set (i.e. | |
| void | SetTextPosition (double X, double Y) |
| Set the text position. | |
| void | UpdateIconTransform (int width, int height, double posX, double posY) |
| Update the icon transform (scale and position). | |
| void | UpdateSymbolTransform (int width, int height, double posX, double posY) |
| Update the symbol transform (scale and position). | |
| void | UpdateProperties (bool visibility, vtkProperty2D *prop) |
| Update internal actors properties. | |
| void | CopyTextProperty (vtkTextProperty *prop) |
| Copy given property into internal TextActor property. | |
| double * | GetSymbolBounds () |
| Get the entry symbol bounds. | |
| double * | GetIconBounds () |
| Get the entry symbol bounds. | |
| bool | SetText (const char *text) |
| Set / Get the entry text. | |
| const char * | GetText () |
| Set / Get the entry text. | |
| bool | SetSymbol (vtkPolyData *) |
| Set / Get the entry symbol. | |
| vtkPolyData * | GetSymbol () |
| Set / Get the entry symbol. | |
| bool | SetIcon (vtkImageData *) |
| Set / Get the entry icon. | |
| vtkImageData * | GetIcon () |
| Set / Get the entry icon. | |
| bool | SetColor (double color[3]) |
| Set / Get the entry color. | |
| double * | GetColor () |
| Set / Get the entry color. | |
| void | ReleaseGraphicsResources (vtkWindow *win) |
| Forward usual rendering methods to internal actors. | |
| int | RenderOverlay (vtkViewport *) |
| Forward usual rendering methods to internal actors. | |
| int | RenderOpaqueGeometry (vtkViewport *) |
| Forward usual rendering methods to internal actors. | |
| void | SetFontSize (int size) |
| Forwarded to internal text mapper. | |
| int | SetConstrainedFontSize (vtkViewport *viewport, int size[2]) |
| Forwarded to internal text mapper. | |
| void | GetSize (vtkViewport *viewport, int size[2]) |
| Forwarded to internal text mapper. | |
A single entry to use inside vtkLegendBoxActor.
vtkLegendBoxEntryInternal represents an entry of the vtkLegendBoxActor: a text with optional symbol (vtkPolyData) and icon (vtkImageData). It is intended to be used from inside VTK RenderingAnnotation module only.
Definition at line 33 of file vtkLegendBoxEntryInternal.h.
| vtkLegendBoxEntryInternal::vtkLegendBoxEntryInternal | ( | ) |
| vtkLegendBoxEntryInternal::~vtkLegendBoxEntryInternal | ( | ) |
| bool vtkLegendBoxEntryInternal::SetText | ( | const char * | text | ) |
Set / Get the entry text.
Empty by default.
| const char * vtkLegendBoxEntryInternal::GetText | ( | ) |
Set / Get the entry text.
Empty by default.
| bool vtkLegendBoxEntryInternal::SetSymbol | ( | vtkPolyData * | ) |
Set / Get the entry symbol.
Default is nullptr.
| vtkPolyData * vtkLegendBoxEntryInternal::GetSymbol | ( | ) |
Set / Get the entry symbol.
Default is nullptr.
| bool vtkLegendBoxEntryInternal::HasSymbol | ( | ) |
Returns true if the entry has a symbol set (i.e.
if GetSymbol is not nullptr) Default is false.
| bool vtkLegendBoxEntryInternal::SetIcon | ( | vtkImageData * | ) |
Set / Get the entry icon.
Default is nullptr.
| vtkImageData * vtkLegendBoxEntryInternal::GetIcon | ( | ) |
Set / Get the entry icon.
Default is nullptr.
| bool vtkLegendBoxEntryInternal::HasIcon | ( | ) |
Returns true if the entry has an icon set (i.e.
if GetIcon is not nullptr). Default is false.
| bool vtkLegendBoxEntryInternal::SetColor | ( | double | color[3] | ) |
Set / Get the entry color.
This applies to the text and the symbol.
| double * vtkLegendBoxEntryInternal::GetColor | ( | ) |
Set / Get the entry color.
This applies to the text and the symbol.
| void vtkLegendBoxEntryInternal::ReleaseGraphicsResources | ( | vtkWindow * | win | ) |
Forward usual rendering methods to internal actors.
| int vtkLegendBoxEntryInternal::RenderOverlay | ( | vtkViewport * | ) |
Forward usual rendering methods to internal actors.
| int vtkLegendBoxEntryInternal::RenderOpaqueGeometry | ( | vtkViewport * | ) |
Forward usual rendering methods to internal actors.
| void vtkLegendBoxEntryInternal::SetTextPosition | ( | double | X, |
| double | Y ) |
Set the text position.
| void vtkLegendBoxEntryInternal::UpdateIconTransform | ( | int | width, |
| int | height, | ||
| double | posX, | ||
| double | posY ) |
Update the icon transform (scale and position).
width and height being the targeted dimensions and posX/posY the targeted coordinates.
| void vtkLegendBoxEntryInternal::UpdateSymbolTransform | ( | int | width, |
| int | height, | ||
| double | posX, | ||
| double | posY ) |
Update the symbol transform (scale and position).
width and height being the targeted dimensions and posX/posY the targeted coordinates.
| void vtkLegendBoxEntryInternal::UpdateProperties | ( | bool | visibility, |
| vtkProperty2D * | prop ) |
Update internal actors properties.
Use prop as base. Override with Color. And set ScalarVisibility.
| void vtkLegendBoxEntryInternal::CopyTextProperty | ( | vtkTextProperty * | prop | ) |
Copy given property into internal TextActor property.
| double * vtkLegendBoxEntryInternal::GetSymbolBounds | ( | ) |
Get the entry symbol bounds.
| double * vtkLegendBoxEntryInternal::GetIconBounds | ( | ) |
Get the entry symbol bounds.
| void vtkLegendBoxEntryInternal::SetFontSize | ( | int | size | ) |
Forwarded to internal text mapper.
| int vtkLegendBoxEntryInternal::SetConstrainedFontSize | ( | vtkViewport * | viewport, |
| int | size[2] ) |
Forwarded to internal text mapper.
| void vtkLegendBoxEntryInternal::GetSize | ( | vtkViewport * | viewport, |
| int | size[2] ) |
Forwarded to internal text mapper.