38 #ifndef vtkLegendBoxActor_h
39 #define vtkLegendBoxActor_h
41 #include "vtkRenderingAnnotationModule.h"
73 void SetNumberOfEntries(
int num);
75 {
return this->NumberOfEntries;}
88 void SetEntry(
int i,
vtkPolyData *symbol,
const char*
string,
double color[3]);
91 const char*
string,
double color[3]);
96 void SetEntryString (
int i,
const char*
string);
97 void SetEntryColor (
int i,
double color[3]);
98 void SetEntryColor (
int i,
double r,
double g,
double b);
102 const char* GetEntryString(
int i);
103 double* GetEntryColor(
int i);
119 vtkGetMacro(Border,
int);
133 vtkGetMacro(LockBorder,
int);
143 vtkGetMacro(
Box,
int);
157 vtkSetClampMacro(Padding,
int, 0, 50);
158 vtkGetMacro(Padding,
int);
168 vtkGetMacro(ScalarVisibility,
int);
177 vtkGetMacro(UseBackground,
int);
186 vtkSetVector3Macro(BackgroundColor,
double);
187 vtkGetVector3Macro(BackgroundColor,
double);
195 vtkSetClampMacro(BackgroundOpacity,
double, 0.0, 1.0);
196 vtkGetMacro(BackgroundOpacity,
double);
220 int RenderOpaqueGeometry(
vtkViewport* viewport) VTK_OVERRIDE;
221 int RenderTranslucentPolygonalGeometry(
vtkViewport* ) VTK_OVERRIDE {
return 0;};
232 ~vtkLegendBoxActor() VTK_OVERRIDE;
234 void InitializeEntries();
242 int ScalarVisibility;
275 double BackgroundOpacity;
276 double BackgroundColor[3];
284 int LegendEntriesVisible;
289 vtkLegendBoxActor(const vtkLegendBoxActor&) VTK_DELETE_FUNCTION;
290 void operator=(const vtkLegendBoxActor&) VTK_DELETE_FUNCTION;
abstract superclass for all actors, volumes and annotations
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
concrete dataset represents vertices, lines, polygons, and triangle strips
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.
a simple class to control print indentation
int HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
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...
represent text properties.
create an array of quadrilaterals located in a plane
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
map vtkPolyData to graphics primitives
represent surface properties of a 2D image
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.