42#ifndef vtkLabelPlacer_h
43#define vtkLabelPlacer_h
46#include "vtkRenderingLabelModule.h"
67 VerticalBottomBit = 1,
68 VerticalBaselineBit = 2,
69 VerticalCenterBit = 4,
71 HorizontalLeftBit = 16,
72 HorizontalCenterBit = 32,
73 HorizontalRightBit = 64,
75 HorizontalBitMask = 112,
114 vtkGetMacro(Gravity,
int);
122 vtkSetClampMacro(MaximumLabelFraction,
double, 0., 1.);
123 vtkGetMacro(MaximumLabelFraction,
double);
131 vtkSetMacro(IteratorType,
int);
132 vtkGetMacro(IteratorType,
int);
139 vtkSetMacro(UseUnicodeStrings,
bool);
140 vtkGetMacro(UseUnicodeStrings,
bool);
141 vtkBooleanMacro(UseUnicodeStrings,
bool);
152 vtkGetMacro(PositionsAsNormals,
bool);
153 vtkSetMacro(PositionsAsNormals,
bool);
154 vtkBooleanMacro(PositionsAsNormals,
bool);
162 vtkGetMacro(GeneratePerturbedLabelSpokes,
bool);
163 vtkSetMacro(GeneratePerturbedLabelSpokes,
bool);
164 vtkBooleanMacro(GeneratePerturbedLabelSpokes,
bool);
172 vtkGetMacro(UseDepthBuffer,
bool);
173 vtkSetMacro(UseDepthBuffer,
bool);
174 vtkBooleanMacro(UseDepthBuffer,
bool);
181 vtkGetMacro(OutputTraversedBounds,
bool);
182 vtkSetMacro(OutputTraversedBounds,
bool);
183 vtkBooleanMacro(OutputTraversedBounds,
bool);
191 vtkGetMacro(OutputCoordinateSystem,
int);
192 vtkSetClampMacro(OutputCoordinateSystem,
int, WORLD, DISPLAY);
221 int LastRendererSize[2];
222 double LastCameraPosition[3];
223 double LastCameraFocalPoint[3];
224 double LastCameraViewUp[3];
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
a simple class to control print indentation
place a prioritized hierarchy of labels in screen space
virtual void SetRenderer(vtkRenderer *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double MaximumLabelFraction
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
LabelGravity
Specifications for the placement of the label relative to an anchor point.
void OutputCoordinateSystemWorld()
Set/get the coordinate system used for output labels.
static vtkLabelPlacer * New()
vtkCoordinate * AnchorTransform
virtual void SetAnchorTransform(vtkCoordinate *)
bool OutputTraversedBounds
~vtkLabelPlacer() override
vtkMTimeType GetMTime() override
Return this object's modified time.
void OutputCoordinateSystemDisplay()
Set/get the coordinate system used for output labels.
OutputCoordinates
Coordinate systems that output dataset may use.
@ DISPLAY
Output 2-D display coordinates for each label anchor (3 components but only 2 are significant).
@ WORLD
Output 3-D world-space coordinates for each label anchor.
virtual void SetGravity(int gravity)
The placement of the label relative to the anchor point.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkSelectVisiblePoints * VisiblePoints
double LastCameraParallelScale
bool GeneratePerturbedLabelSpokes
int OutputCoordinateSystem
Superclass for algorithms that produce only polydata as output.
abstract specification for renderers
extract points that are visible (based on z-buffer calculation)
vtkTypeUInt32 vtkMTimeType