31 #ifndef vtkLabelPlacementMapper_h
32 #define vtkLabelPlacementMapper_h
35 #include "vtkRenderingLabelModule.h"
37 VTK_ABI_NAMESPACE_BEGIN
67 vtkSetClampMacro(MaximumLabelFraction,
double, 0., 1.);
68 vtkGetMacro(MaximumLabelFraction,
double);
76 vtkSetMacro(IteratorType,
int);
77 vtkGetMacro(IteratorType,
int);
86 vtkGetMacro(PositionsAsNormals,
bool);
87 vtkSetMacro(PositionsAsNormals,
bool);
88 vtkBooleanMacro(PositionsAsNormals,
bool);
96 vtkGetMacro(GeneratePerturbedLabelSpokes,
bool);
97 vtkSetMacro(GeneratePerturbedLabelSpokes,
bool);
98 vtkBooleanMacro(GeneratePerturbedLabelSpokes,
bool);
106 vtkGetMacro(UseDepthBuffer,
bool);
107 vtkSetMacro(UseDepthBuffer,
bool);
108 vtkBooleanMacro(UseDepthBuffer,
bool);
116 vtkSetMacro(PlaceAllLabels,
bool);
117 vtkGetMacro(PlaceAllLabels,
bool);
118 vtkBooleanMacro(PlaceAllLabels,
bool);
125 vtkSetMacro(OutputTraversedBounds,
bool);
126 vtkGetMacro(OutputTraversedBounds,
bool);
127 vtkBooleanMacro(OutputTraversedBounds,
bool);
135 NUMBER_OF_LABEL_SHAPES
143 vtkSetClampMacro(
Shape,
int, 0, NUMBER_OF_LABEL_SHAPES - 1);
154 NUMBER_OF_LABEL_STYLES
162 vtkSetClampMacro(Style,
int, 0, NUMBER_OF_LABEL_STYLES - 1);
163 vtkGetMacro(Style,
int);
173 vtkSetMacro(Margin,
double);
174 vtkGetMacro(Margin,
double);
181 vtkSetVector3Macro(BackgroundColor,
double);
182 vtkGetVector3Macro(BackgroundColor,
double);
189 vtkSetClampMacro(BackgroundOpacity,
double, 0.0, 1.0);
190 vtkGetMacro(BackgroundOpacity,
double);
228 int LastRendererSize[2];
229 double LastCameraPosition[3];
230 double LastCameraFocalPoint[3];
231 double LastCameraViewUp[3];
239 double BackgroundColor[3];
246 VTK_ABI_NAMESPACE_END
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 *)
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.
static vtkLabelPlacementMapper * New()
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