48 #ifndef vtkLabeledDataMapper_h
49 #define vtkLabeledDataMapper_h
52 #include "vtkRenderingLabelModule.h"
62 #define VTK_LABEL_IDS 0
63 #define VTK_LABEL_SCALARS 1
64 #define VTK_LABEL_VECTORS 2
65 #define VTK_LABEL_NORMALS 3
66 #define VTK_LABEL_TCOORDS 4
67 #define VTK_LABEL_TENSORS 5
68 #define VTK_LABEL_FIELD_DATA 6
95 vtkSetStringMacro(LabelFormat);
96 vtkGetStringMacro(LabelFormat);
107 vtkSetMacro(LabeledComponent,
int);
108 vtkGetMacro(LabeledComponent,
int);
115 vtkSetMacro(ComponentSeparator,
char);
116 vtkGetMacro(ComponentSeparator,
char);
126 vtkGetMacro(FieldDataArray,
int);
136 vtkGetStringMacro(FieldDataName);
157 vtkSetMacro(LabelMode,
int);
158 vtkGetMacro(LabelMode,
int);
215 vtkGetMacro(CoordinateSystem,
int);
216 vtkSetClampMacro(CoordinateSystem,
int, WORLD, DISPLAY);
230 vtkGetMacro(NumberOfLabels,
int);
239 assert(
"label index range" && label >= 0 && label < this->NumberOfLabels);
240 pos[0] = this->LabelPositions[3 * label];
241 pos[1] = this->LabelPositions[3 * label + 1];
242 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
void SetFieldDataName(const char *arrayName)
Set/Get the name of the field data array to label.
virtual void SetLabelTextProperty(vtkTextProperty *p, int type)
Internals * Implementation
void RenderOpaqueGeometry(vtkViewport *viewport, vtkActor2D *actor) override
Draw the text to the screen at each input point.
void CoordinateSystemWorld()
void SetLabelModeToLabelIds()
virtual void SetInputData(vtkDataObject *)
Set the input dataset to the mapper.
void SetLabelModeToLabelVectors()
int NumberOfLabelsAllocated
void SetLabelModeToLabelNormals()
void SetLabelModeToLabelTensors()
vtkDataSet * GetInput()
Use GetInputDataObject() to get the input data object for composite datasets.
vtkTextMapper ** TextMappers
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()
void SetLabelModeToLabelScalars()
void SetFieldDataArray(int arrayIndex)
Set/Get the field data array to label.
virtual vtkTextProperty * GetLabelTextProperty()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetLabelModeToLabelFieldData()
vtkMTimeType GetMTime() override
Return the modified time for this object.
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor) override
~vtkLabeledDataMapper() override
virtual vtkTextProperty * GetLabelTextProperty(int type)
static vtkLabeledDataMapper * New()
Instantiate object with %%-#6.3g label format.
void SetTransform(vtkTransform *t)
void BuildLabelsInternal(vtkDataSet *)
void GetLabelPosition(int label, double pos[3])
Return the position of the requested label.
void CoordinateSystemDisplay()
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.
const char * GetLabelText(int label)
Return the text for the requested label.
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