41 #ifndef vtkLabelPlacementMapper_h 42 #define vtkLabelPlacementMapper_h 44 #include "vtkRenderingLabelModule.h" 76 vtkSetClampMacro(MaximumLabelFraction,
double,0.,1.);
77 vtkGetMacro(MaximumLabelFraction,
double);
85 vtkSetMacro(IteratorType,
int);
86 vtkGetMacro(IteratorType,
int);
93 vtkSetMacro(UseUnicodeStrings,
bool);
94 vtkGetMacro(UseUnicodeStrings,
bool);
95 vtkBooleanMacro(UseUnicodeStrings,
bool);
104 vtkGetMacro(PositionsAsNormals,
bool);
105 vtkSetMacro(PositionsAsNormals,
bool);
106 vtkBooleanMacro(PositionsAsNormals,
bool);
114 vtkGetMacro(GeneratePerturbedLabelSpokes,
bool);
115 vtkSetMacro(GeneratePerturbedLabelSpokes,
bool);
116 vtkBooleanMacro(GeneratePerturbedLabelSpokes,
bool);
124 vtkGetMacro(UseDepthBuffer,
bool);
125 vtkSetMacro(UseDepthBuffer,
bool);
126 vtkBooleanMacro(UseDepthBuffer,
bool);
134 vtkSetMacro(PlaceAllLabels,
bool);
135 vtkGetMacro(PlaceAllLabels,
bool);
136 vtkBooleanMacro(PlaceAllLabels,
bool);
143 vtkSetMacro(OutputTraversedBounds,
bool);
144 vtkGetMacro(OutputTraversedBounds,
bool);
145 vtkBooleanMacro(OutputTraversedBounds,
bool);
152 NUMBER_OF_LABEL_SHAPES
160 vtkSetClampMacro(
Shape,
int, 0, NUMBER_OF_LABEL_SHAPES-1);
161 vtkGetMacro(
Shape,
int);
163 { this->SetShape(NONE); }
165 { this->SetShape(RECT); }
167 { this->SetShape(ROUNDED_RECT); }
173 NUMBER_OF_LABEL_STYLES
181 vtkSetClampMacro(Style,
int, 0, NUMBER_OF_LABEL_STYLES-1);
182 vtkGetMacro(Style,
int);
184 { this->SetStyle(FILLED); }
186 { this->SetStyle(OUTLINE); }
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];
virtual void SetStyleToOutline()
The style of the label background shape, should be one of the values in the LabelStyle enumeration...
bool GeneratePerturbedLabelSpokes
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
vtkLabelRenderStrategy * RenderStrategy
bool OutputTraversedBounds
vtkCoordinate * AnchorTransform
a simple class to control print indentation
double MaximumLabelFraction
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
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.
vtkSelectVisiblePoints * VisiblePoints
static vtkAlgorithm * New()
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
double LastCameraParallelScale
virtual void SetStyleToFilled()
The style of the label background shape, should be one of the values in the LabelStyle enumeration...