44#ifndef vtkLabelPlacementMapper_h
45#define vtkLabelPlacementMapper_h
48#include "vtkRenderingLabelModule.h"
79 vtkSetClampMacro(MaximumLabelFraction,
double, 0., 1.);
80 vtkGetMacro(MaximumLabelFraction,
double);
88 vtkSetMacro(IteratorType,
int);
89 vtkGetMacro(IteratorType,
int);
96 vtkSetMacro(UseUnicodeStrings,
bool);
97 vtkGetMacro(UseUnicodeStrings,
bool);
98 vtkBooleanMacro(UseUnicodeStrings,
bool);
107 vtkGetMacro(PositionsAsNormals,
bool);
108 vtkSetMacro(PositionsAsNormals,
bool);
109 vtkBooleanMacro(PositionsAsNormals,
bool);
117 vtkGetMacro(GeneratePerturbedLabelSpokes,
bool);
118 vtkSetMacro(GeneratePerturbedLabelSpokes,
bool);
119 vtkBooleanMacro(GeneratePerturbedLabelSpokes,
bool);
127 vtkGetMacro(UseDepthBuffer,
bool);
128 vtkSetMacro(UseDepthBuffer,
bool);
129 vtkBooleanMacro(UseDepthBuffer,
bool);
137 vtkSetMacro(PlaceAllLabels,
bool);
138 vtkGetMacro(PlaceAllLabels,
bool);
139 vtkBooleanMacro(PlaceAllLabels,
bool);
146 vtkSetMacro(OutputTraversedBounds,
bool);
147 vtkGetMacro(OutputTraversedBounds,
bool);
148 vtkBooleanMacro(OutputTraversedBounds,
bool);
156 NUMBER_OF_LABEL_SHAPES
164 vtkSetClampMacro(
Shape,
int, 0, NUMBER_OF_LABEL_SHAPES - 1);
175 NUMBER_OF_LABEL_STYLES
183 vtkSetClampMacro(Style,
int, 0, NUMBER_OF_LABEL_STYLES - 1);
184 vtkGetMacro(Style,
int);
194 vtkSetMacro(Margin,
double);
195 vtkGetMacro(Margin,
double);
202 vtkSetVector3Macro(BackgroundColor,
double);
203 vtkGetVector3Macro(BackgroundColor,
double);
210 vtkSetClampMacro(BackgroundOpacity,
double, 0.0, 1.0);
211 vtkGetMacro(BackgroundOpacity,
double);
250 int LastRendererSize[2];
251 double LastCameraPosition[3];
252 double LastCameraFocalPoint[3];
253 double LastCameraViewUp[3];
261 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