111#ifndef vtkLabeledDataMapper_h
112#define vtkLabeledDataMapper_h
116#include "vtkRenderingLabelModule.h"
121VTK_ABI_NAMESPACE_BEGIN
153 vtkSetStringMacro(LabelFormat);
154 vtkGetStringMacro(LabelFormat);
165 vtkSetMacro(LabeledComponent,
int);
166 vtkGetMacro(LabeledComponent,
int);
173 vtkSetMacro(ComponentSeparator,
char);
174 vtkGetMacro(ComponentSeparator,
char);
184 vtkGetMacro(FieldDataArray,
int);
193 vtkSetStringMacro(FieldDataName)
194 vtkGetStringMacro(FieldDataName);
215 vtkSetMacro(LabelMode,
int);
216 vtkGetMacro(LabelMode,
int);
273 vtkGetMacro(CoordinateSystem,
int);
274 vtkSetClampMacro(CoordinateSystem,
int, WORLD, DISPLAY);
288 vtkGetMacro(NumberOfLabels,
int);
297 assert(
"label index range" && label >= 0 && label < this->NumberOfLabels);
298 pos[0] = this->LabelPositions[3 * label];
299 pos[1] = this->LabelPositions[3 * label + 1];
300 pos[2] = this->LabelPositions[3 * label + 2];
a actor that draws 2D data
general representation of visualization data
abstract class to specify dataset behavior
a simple class to control print indentation
draw text labels at dataset points
virtual void SetLabelTextProperty(vtkTextProperty *p, int type)
Set/Get the text property.
Internals * Implementation
void RenderOpaqueGeometry(vtkViewport *viewport, vtkActor2D *actor) override
Draw the text to the screen at each input point.
void CoordinateSystemWorld()
Set/get the coordinate system used for output labels.
void SetLabelModeToLabelVectors()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
int NumberOfLabelsAllocated
void SetLabelModeToLabelNormals()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
void SetLabelModeToLabelTensors()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
vtkTextMapper ** TextMappers
virtual vtkTextProperty * GetLabelTextProperty()
Set/Get the text property.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
void AllocateLabels(int numLabels)
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the text property.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
void SetLabelModeToLabelTCoords()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
static vtkLabeledDataMapper * New()
Instantiate object with %%-#6.3g label format.
void SetLabelModeToLabelScalars()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
const char * GetLabelText(int label)
Return the text for the requested label.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetLabelModeToLabelFieldData()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
vtkMTimeType GetMTime() override
Return the modified time for this object.
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor) override
Draw the text to the screen at each input point.
~vtkLabeledDataMapper() override
void SetTransform(vtkTransform *t)
The transform to apply to the labels before mapping to 2D.
virtual vtkTextProperty * GetLabelTextProperty(int type)
Set/Get the text property.
void BuildLabelsInternal(vtkDataSet *)
void GetLabelPosition(int label, double pos[3])
Return the position of the requested label.
void CoordinateSystemDisplay()
Set/get the coordinate system used for output labels.
Coordinates
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.
abstract class specifies interface for objects which render 2D actors
represent text properties.
record modification and/or execution time
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_LABEL_TENSORS
#define VTK_LABEL_TCOORDS
#define VTK_LABEL_VECTORS
#define VTK_LABEL_SCALARS
#define VTK_LABEL_FIELD_DATA
#define VTK_LABEL_NORMALS
vtkTypeUInt32 vtkMTimeType