Go to the documentation of this file.
52 #ifndef vtkLabeledDataMapper_h
53 #define vtkLabeledDataMapper_h
55 #include "vtkRenderingLabelModule.h"
66 #define VTK_LABEL_IDS 0
67 #define VTK_LABEL_SCALARS 1
68 #define VTK_LABEL_VECTORS 2
69 #define VTK_LABEL_NORMALS 3
70 #define VTK_LABEL_TCOORDS 4
71 #define VTK_LABEL_TENSORS 5
72 #define VTK_LABEL_FIELD_DATA 6
99 vtkSetStringMacro(LabelFormat);
112 vtkGetMacro(LabeledComponent,
int);
122 vtkGetMacro(FieldDataArray,
int);
154 vtkGetMacro(LabelMode,
int);
173 { this->SetLabelTextProperty(p, 0); }
175 {
return this->GetLabelTextProperty(0); }
213 vtkGetMacro(CoordinateSystem,
int);
214 vtkSetClampMacro(CoordinateSystem,
int,WORLD,DISPLAY);
228 vtkGetMacro(NumberOfLabels,
int)
235 void GetLabelPosition(
int label,
double pos[3])
237 assert(
"label index range" && label >= 0 && label < this->NumberOfLabels);
238 pos[0] = this->LabelPositions[3 * label];
239 pos[1] = this->LabelPositions[3 * label + 1];
240 pos[2] = this->LabelPositions[3 * label + 2];
void RenderOpaqueGeometry(vtkViewport *viewport, vtkActor2D *actor)
Draw the text to the screen at each input point.
#define VTK_LABEL_VECTORS
void SetLabelModeToLabelNormals()
void CoordinateSystemDisplay()
void CoordinateSystemWorld()
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the text property.
void SetLabelModeToLabelTCoords()
record modification and/or execution time
Internals * Implementation
void SetTransform(vtkTransform *t)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
window superclass for vtkRenderWindow
vtkTypeUInt64 vtkMTimeType
Coordinates
Coordinate systems that output dataset may use.
const char * GetLabelText(int label)
Return the text for the requested label.
#define VTK_LABEL_FIELD_DATA
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).
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
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.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
virtual void ReleaseGraphicsResources(vtkWindow *)
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()
virtual vtkMTimeType GetMTime()
Return the modified time for this object.
#define VTK_LABEL_TCOORDS
general representation of visualization data
#define VTK_LABEL_TENSORS
#define VTK_LABEL_SCALARS
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor)
vtkDataSet * GetInput()
Use GetInputDataObject() to get the input data object for composite datasets.
virtual vtkTextProperty * GetLabelTextProperty(int type)