35 #ifndef vtkLabelPlacementMapper_h
36 #define vtkLabelPlacementMapper_h
38 #include "vtkRenderingLabelModule.h"
70 vtkSetClampMacro(MaximumLabelFraction,
double,0.,1.);
71 vtkGetMacro(MaximumLabelFraction,
double);
80 vtkGetMacro(IteratorType,
int);
88 vtkGetMacro(UseUnicodeStrings,
bool);
98 vtkGetMacro(PositionsAsNormals,
bool);
108 vtkGetMacro(GeneratePerturbedLabelSpokes,
bool);
118 vtkGetMacro(UseDepthBuffer,
bool);
129 vtkGetMacro(PlaceAllLabels,
bool);
138 vtkGetMacro(OutputTraversedBounds,
bool);
146 NUMBER_OF_LABEL_SHAPES
154 vtkSetClampMacro(
Shape,
int, 0, NUMBER_OF_LABEL_SHAPES-1);
155 vtkGetMacro(
Shape,
int);
157 { this->SetShape(NONE); }
159 { this->SetShape(RECT); }
161 { this->SetShape(ROUNDED_RECT); }
167 NUMBER_OF_LABEL_STYLES
175 vtkSetClampMacro(Style,
int, 0, NUMBER_OF_LABEL_STYLES-1);
176 vtkGetMacro(Style,
int);
178 { this->SetStyle(FILLED); }
180 { this->SetStyle(OUTLINE); }
189 vtkGetMacro(Margin,
double);
196 vtkSetVector3Macro(BackgroundColor,
double);
197 vtkGetVector3Macro(BackgroundColor,
double);
204 vtkSetClampMacro(BackgroundOpacity,
double, 0.0, 1.0);
205 vtkGetMacro(BackgroundOpacity,
double);
224 ~vtkLabelPlacementMapper() VTK_OVERRIDE;
234 vtkCoordinate* AnchorTransform;
236 double MaximumLabelFraction;
237 bool PositionsAsNormals;
238 bool GeneratePerturbedLabelSpokes;
240 bool UseUnicodeStrings;
242 bool OutputTraversedBounds;
244 int LastRendererSize[2];
245 double LastCameraPosition[3];
246 double LastCameraFocalPoint[3];
247 double LastCameraViewUp[3];
248 double LastCameraParallelScale;
254 double BackgroundOpacity;
255 double BackgroundColor[3];
258 vtkLabelPlacementMapper(const vtkLabelPlacementMapper&) VTK_DELETE_FUNCTION;
259 void operator=(const vtkLabelPlacementMapper&) VTK_DELETE_FUNCTION;
virtual void SetStyleToOutline()
The style of the label background shape, should be one of the values in the LabelStyle enumeration...
Superclass for label rendering implementations.
extract points that are visible (based on z-buffer calculation)
virtual void SetShapeToNone()
The shape of the label background, should be one of the values in the LabelShape enumeration.
virtual void RenderOverlay(vtkViewport *, vtkActor2D *)
abstract specification for Viewports
a actor that draws 2D data
virtual void SetShapeToRect()
The shape of the label background, should be one of the values in the LabelShape enumeration.
window superclass for vtkRenderWindow
a simple class to control print indentation
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual void SetShapeToRoundedRect()
The shape of the label background, should be one of the values in the LabelShape enumeration.
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
static vtkAlgorithm * New()
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Places and renders non-overlapping labels.
abstract class specifies interface for objects which render 2D actors
virtual void SetStyleToFilled()
The style of the label background shape, should be one of the values in the LabelStyle enumeration...