 |
VTK
9.1.0
|
Go to the documentation of this file.
117 #ifndef vtkLabeledDataMapper_h
118 #define vtkLabeledDataMapper_h
121 #include "vtkRenderingLabelModule.h"
131 #define VTK_LABEL_IDS 0
132 #define VTK_LABEL_SCALARS 1
133 #define VTK_LABEL_VECTORS 2
134 #define VTK_LABEL_NORMALS 3
135 #define VTK_LABEL_TCOORDS 4
136 #define VTK_LABEL_TENSORS 5
137 #define VTK_LABEL_FIELD_DATA 6
164 vtkSetStringMacro(LabelFormat);
165 vtkGetStringMacro(LabelFormat);
176 vtkSetMacro(LabeledComponent,
int);
177 vtkGetMacro(LabeledComponent,
int);
184 vtkSetMacro(ComponentSeparator,
char);
185 vtkGetMacro(ComponentSeparator,
char);
195 vtkGetMacro(FieldDataArray,
int);
205 vtkGetStringMacro(FieldDataName);
226 vtkSetMacro(LabelMode,
int);
227 vtkGetMacro(LabelMode,
int);
284 vtkGetMacro(CoordinateSystem,
int);
285 vtkSetClampMacro(CoordinateSystem,
int, WORLD, DISPLAY);
299 vtkGetMacro(NumberOfLabels,
int);
308 assert(
"label index range" && label >= 0 && label < this->NumberOfLabels);
309 pos[0] = this->LabelPositions[3 * label];
310 pos[1] = this->LabelPositions[3 * label + 1];
311 pos[2] = this->LabelPositions[3 * label + 2];
#define VTK_LABEL_VECTORS
void SetLabelModeToLabelNormals()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
void CoordinateSystemDisplay()
Set/get the coordinate system used for output labels.
void CoordinateSystemWorld()
Set/get the coordinate system used for output labels.
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()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
record modification and/or execution time
Internals * Implementation
void SetTransform(vtkTransform *t)
The transform to apply to the labels before mapping to 2D.
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
Draw the text to the screen at each input point.
#define VTK_LABEL_FIELD_DATA
vtkMTimeType GetMTime() override
Return the modified time for this object.
void SetLabelModeToLabelScalars()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
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()
Set/Get the text property.
int NumberOfLabelsAllocated
@ DISPLAY
Output 2-D display coordinates for each label anchor (3 components but only 2 are significant).
void SetLabelModeToLabelIds()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
#define VTK_LABEL_NORMALS
void SetLabelModeToLabelVectors()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
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
void GetLabelPosition(int label, double pos[3])
Return the position of the requested label.
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()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
void BuildLabelsInternal(vtkDataSet *)
void AllocateLabels(int numLabels)
vtkTextMapper ** TextMappers
virtual void SetLabelTextProperty(vtkTextProperty *p, int type)
Set/Get the text property.
void SetLabelModeToLabelTensors()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
#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)
Set/Get the text property.
vtkTypeUInt32 vtkMTimeType