42 #ifndef vtkLabeledDataMapper_h
43 #define vtkLabeledDataMapper_h
47 #include "vtkRenderingLabelModule.h"
55 VTK_ABI_NAMESPACE_BEGIN
91 vtkSetStringMacro(LabelFormat);
92 vtkGetStringMacro(LabelFormat);
103 vtkSetMacro(LabeledComponent,
int);
104 vtkGetMacro(LabeledComponent,
int);
111 vtkSetMacro(ComponentSeparator,
char);
112 vtkGetMacro(ComponentSeparator,
char);
121 vtkSetClampMacro(FieldDataArray,
int, 0,
VTK_INT_MAX);
122 vtkGetMacro(FieldDataArray,
int);
131 vtkSetStringMacro(FieldDataName)
132 vtkGetStringMacro(FieldDataName);
153 vtkSetMacro(LabelMode,
int);
154 vtkGetMacro(LabelMode,
int);
211 vtkGetMacro(CoordinateSystem,
int);
212 vtkSetClampMacro(CoordinateSystem,
int, WORLD, DISPLAY);
226 vtkGetMacro(NumberOfLabels,
int);
235 assert(
"label index range" && label >= 0 && label < this->NumberOfLabels);
236 pos[0] = this->LabelPositions[3 * label];
237 pos[1] = this->LabelPositions[3 * label + 1];
238 pos[2] = this->LabelPositions[3 * label + 2];
245 const char* GetLabelText(
int label);
272 virtual void AllocateLabels(
int numLabels);
273 virtual void BuildLabels();
274 virtual void BuildLabelsInternal(
vtkDataSet*);
291 struct vtkLabeledDataMapperFormatter;
294 VTK_ABI_NAMESPACE_END
void SetLabelModeToLabelFieldData()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
void CoordinateSystemWorld()
Set/get the coordinate system used for output labels.
void SetLabelModeToLabelTCoords()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
vtkTypeUInt32 vtkMTimeType
virtual void RenderOverlay(vtkViewport *, vtkActor2D *)
abstract specification for Viewports
vtkMTimeType GetMTime() override
Override Modifiedtime as we have added Clipping planes.
Output 3-D world-space coordinates for each label anchor.
abstract class to specify dataset behavior
void SetLabelModeToLabelTensors()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
void GetLabelPosition(int label, double pos[3])
Return the position of the requested label.
a actor that draws 2D data
record modification and/or execution time
std::unique_ptr< Internals > Implementation
a vtkAbstractArray subclass for strings
Coordinates
Coordinate systems that output dataset may use.
std::vector< vtkSmartPointer< vtkTextMapper > > TextMappers
std::vector< double > LabelPositions
#define VTK_LABEL_TCOORDS
draw text labels at dataset points
#define VTK_LABEL_NORMALS
void SetLabelModeToLabelVectors()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
window superclass for vtkRenderWindow
void CoordinateSystemDisplay()
Set/get the coordinate system used for output labels.
dynamic, self-adjusting array of int
#define VTK_LABEL_TENSORS
#define VTK_LABEL_SCALARS
a simple class to control print indentation
#define VTK_LABEL_FIELD_DATA
abstract superclass for arrays of numeric data
represent and manipulate attribute data in a dataset
represent text properties.
void SetLabelModeToLabelScalars()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
#define VTK_LABEL_VECTORS
void SetLabelModeToLabelNormals()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
int NumberOfLabelsAllocated
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
virtual vtkTextProperty * GetLabelTextProperty()
Set/Get the text property.
static vtkAlgorithm * New()
virtual void RenderOpaqueGeometry(vtkViewport *, vtkActor2D *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
abstract class specifies interface for objects which render 2D actors
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the text property.
Output 2-D display coordinates for each label anchor (3 components but only 2 are significant)...