54#ifndef vtkLabelPlacementMapper_h
55#define vtkLabelPlacementMapper_h
58#include "vtkRenderingLabelModule.h"
89 vtkSetClampMacro(MaximumLabelFraction,
double, 0., 1.);
90 vtkGetMacro(MaximumLabelFraction,
double);
98 vtkSetMacro(IteratorType,
int);
99 vtkGetMacro(IteratorType,
int);
106 vtkSetMacro(UseUnicodeStrings,
bool);
107 vtkGetMacro(UseUnicodeStrings,
bool);
108 vtkBooleanMacro(UseUnicodeStrings,
bool);
117 vtkGetMacro(PositionsAsNormals,
bool);
118 vtkSetMacro(PositionsAsNormals,
bool);
119 vtkBooleanMacro(PositionsAsNormals,
bool);
127 vtkGetMacro(GeneratePerturbedLabelSpokes,
bool);
128 vtkSetMacro(GeneratePerturbedLabelSpokes,
bool);
129 vtkBooleanMacro(GeneratePerturbedLabelSpokes,
bool);
137 vtkGetMacro(UseDepthBuffer,
bool);
138 vtkSetMacro(UseDepthBuffer,
bool);
139 vtkBooleanMacro(UseDepthBuffer,
bool);
147 vtkSetMacro(PlaceAllLabels,
bool);
148 vtkGetMacro(PlaceAllLabels,
bool);
149 vtkBooleanMacro(PlaceAllLabels,
bool);
156 vtkSetMacro(OutputTraversedBounds,
bool);
157 vtkGetMacro(OutputTraversedBounds,
bool);
158 vtkBooleanMacro(OutputTraversedBounds,
bool);
166 NUMBER_OF_LABEL_SHAPES
174 vtkSetClampMacro(
Shape,
int, 0, NUMBER_OF_LABEL_SHAPES - 1);
185 NUMBER_OF_LABEL_STYLES
193 vtkSetClampMacro(Style,
int, 0, NUMBER_OF_LABEL_STYLES - 1);
194 vtkGetMacro(Style,
int);
204 vtkSetMacro(Margin,
double);
205 vtkGetMacro(Margin,
double);
212 vtkSetVector3Macro(BackgroundColor,
double);
213 vtkGetVector3Macro(BackgroundColor,
double);
220 vtkSetClampMacro(BackgroundOpacity,
double, 0.0, 1.0);
221 vtkGetMacro(BackgroundOpacity,
double);
260 int LastRendererSize[2];
261 double LastCameraPosition[3];
262 double LastCameraFocalPoint[3];
263 double LastCameraViewUp[3];
271 double BackgroundColor[3];
a actor that draws 2D data
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
a simple class to control print indentation
Places and renders non-overlapping labels.
virtual void SetAnchorTransform(vtkCoordinate *)
static vtkLabelPlacementMapper * New()
double LastCameraParallelScale
vtkLabelPlacementMapper()
virtual void SetStyleToOutline()
The style of the label background shape, should be one of the values in the LabelStyle enumeration.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLabelRenderStrategy * RenderStrategy
virtual void SetShapeToRoundedRect()
The shape of the label background, should be one of the values in the LabelShape enumeration.
bool OutputTraversedBounds
virtual void SetRenderStrategy(vtkLabelRenderStrategy *s)
Set the label rendering strategy.
virtual void SetStyleToFilled()
The style of the label background shape, should be one of the values in the LabelStyle enumeration.
vtkCoordinate * AnchorTransform
~vtkLabelPlacementMapper() override
bool GeneratePerturbedLabelSpokes
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
double MaximumLabelFraction
virtual void SetShapeToRect()
The shape of the label background, should be one of the values in the LabelShape enumeration.
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor) override
Draw non-overlapping labels to the screen.
vtkSelectVisiblePoints * VisiblePoints
virtual void SetShapeToNone()
The shape of the label background, should be one of the values in the LabelShape enumeration.
Superclass for label rendering implementations.
abstract class specifies interface for objects which render 2D actors
extract points that are visible (based on z-buffer calculation)
abstract specification for Viewports
window superclass for vtkRenderWindow