Go to the documentation of this file.
54 #ifndef vtkLabeledDataMapper_h
55 #define vtkLabeledDataMapper_h
57 #include "vtkRenderingLabelModule.h"
68 #define VTK_LABEL_IDS 0
69 #define VTK_LABEL_SCALARS 1
70 #define VTK_LABEL_VECTORS 2
71 #define VTK_LABEL_NORMALS 3
72 #define VTK_LABEL_TCOORDS 4
73 #define VTK_LABEL_TENSORS 5
74 #define VTK_LABEL_FIELD_DATA 6
101 vtkSetStringMacro(LabelFormat);
102 vtkGetStringMacro(LabelFormat);
113 vtkSetMacro(LabeledComponent,
int);
114 vtkGetMacro(LabeledComponent,
int);
121 vtkSetMacro(ComponentSeparator,
char);
122 vtkGetMacro(ComponentSeparator,
char);
132 vtkGetMacro(FieldDataArray,
int);
142 vtkGetStringMacro(FieldDataName);
163 vtkSetMacro(LabelMode,
int);
164 vtkGetMacro(LabelMode,
int);
183 { this->SetLabelTextProperty(p, 0); }
185 {
return this->GetLabelTextProperty(0); }
223 vtkGetMacro(CoordinateSystem,
int);
224 vtkSetClampMacro(CoordinateSystem,
int,WORLD,DISPLAY);
238 vtkGetMacro(NumberOfLabels,
int)
245 void GetLabelPosition(
int label,
double pos[3])
247 assert(
"label index range" && label >= 0 && label < this->NumberOfLabels);
248 pos[0] = this->LabelPositions[3 * label];
249 pos[1] = this->LabelPositions[3 * label + 1];
250 pos[2] = this->LabelPositions[3 * label + 2];
#define VTK_LABEL_VECTORS
void SetLabelModeToLabelNormals()
void CoordinateSystemDisplay()
void CoordinateSystemWorld()
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 PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetLabelModeToLabelTCoords()
record modification and/or execution time
Internals * Implementation
void SetTransform(vtkTransform *t)
void RenderOpaqueGeometry(vtkViewport *viewport, vtkActor2D *actor) override
Draw the text to the screen at each input point.
window superclass for vtkRenderWindow
Coordinates
Coordinate systems that output dataset may use.
const char * GetLabelText(int label)
Return the text for the requested label.
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor) override
#define VTK_LABEL_FIELD_DATA
vtkMTimeType GetMTime() override
Return the modified time for this object.
void SetLabelModeToLabelScalars()
a simple class to control print indentation
@ WORLD
Output 3-D world-space coordinates for each label anchor.
static vtkLabeledDataMapper * New()
Instantiate object with %%-#6.3g label format.
virtual vtkTextProperty * GetLabelTextProperty()
int NumberOfLabelsAllocated
@ DISPLAY
Output 2-D display coordinates for each label anchor (3 components but only 2 are significant).
void SetLabelModeToLabelIds()
#define VTK_LABEL_NORMALS
void SetLabelModeToLabelVectors()
abstract class specifies interface for objects which render 2D actors
void SetFieldDataName(const char *arrayName)
Set/Get the name of the field data array to label.
abstract specification for Viewports
virtual void SetInputData(vtkDataObject *)
Set the input dataset to the mapper.
abstract class to specify dataset behavior
represent text properties.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
a actor that draws 2D data
draw text labels at dataset points
void SetFieldDataArray(int arrayIndex)
Set/Get the field data array to label.
void SetLabelModeToLabelFieldData()
void BuildLabelsInternal(vtkDataSet *)
void AllocateLabels(int numLabels)
vtkTextMapper ** TextMappers
virtual void SetLabelTextProperty(vtkTextProperty *p, int type)
void SetLabelModeToLabelTensors()
#define VTK_LABEL_TCOORDS
general representation of visualization data
#define VTK_LABEL_TENSORS
#define VTK_LABEL_SCALARS
~vtkLabeledDataMapper() override
vtkDataSet * GetInput()
Use GetInputDataObject() to get the input data object for composite datasets.
virtual vtkTextProperty * GetLabelTextProperty(int type)
vtkTypeUInt32 vtkMTimeType