29 #ifndef vtkLegendBoxActor_h
30 #define vtkLegendBoxActor_h
34 #include "vtkRenderingAnnotationModule.h"
37 VTK_ABI_NAMESPACE_BEGIN
68 void SetNumberOfEntries(
int num);
82 void SetEntry(
int i,
vtkPolyData* symbol,
const char*
string,
double color[3]);
90 void SetEntryString(
int i,
const char*
string);
91 void SetEntryColor(
int i,
double color[3]);
92 void SetEntryColor(
int i,
double r,
double g,
double b);
96 const char* GetEntryString(
int i);
155 vtkSetClampMacro(Padding,
int, 0, 50);
156 vtkGetMacro(Padding,
int);
184 vtkSetVector3Macro(BackgroundColor,
double);
185 vtkGetVector3Macro(BackgroundColor,
double);
193 vtkSetClampMacro(BackgroundOpacity,
double, 0.0, 1.0);
194 vtkGetMacro(BackgroundOpacity,
double);
232 void InitializeEntries();
256 double BackgroundColor[3];
272 std::vector<std::unique_ptr<vtkLegendBoxEntryInternal>> Entries;
275 VTK_ABI_NAMESPACE_END
abstract superclass for all actors, volumes and annotations
int GetNumberOfEntryColors()
vtkTypeBool UseBackground
vtkPolyData * BorderPolyData
represents an object (geometry & properties) in a rendered scene
int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
actor that draws 2D data with texture support
abstract specification for Viewports
vtkProperty2D * GetBoxProperty()
Get the box vtkProperty2D.
a actor that draws 2D data
record modification and/or execution time
int GetNumberOfEntryIcons()
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkTypeBool ScalarVisibility
vtkPlaneSource * Background
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkActor2D.
dynamic, self-adjusting array of double
window superclass for vtkRenderWindow
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
vtkPolyDataMapper2D * BackgroundMapper
a simple class to control print indentation
vtkTextProperty * EntryTextProperty
topologically and geometrically regular array of data
static vtkActor2D * New()
Creates an actor2D with the following defaults: position (0,0) (coordinate system is viewport); at la...
vtkPolyData * BoxPolyData
#define VTK_SIZEHINT(...)
represent text properties.
create an array of quadrilaterals located in a plane
vtkPolyDataMapper2D * BorderMapper
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
map vtkPolyData to graphics primitives
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
int GetNumberOfEntryStrings()
represent surface properties of a 2D image
vtkTexturedActor2D * BackgroundActor
vtkPolyDataMapper2D * BoxMapper
A single entry to use inside vtkLegendBoxActor.
int GetNumberOfEntrySymbols()
draw vtkPolyData onto the image plane
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.