 |
VTK
9.0.20210120
|
Go to the documentation of this file.
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);
125 void SetFieldDataArray(
int arrayIndex);
126 vtkGetMacro(FieldDataArray,
int);
135 void SetFieldDataName(
const char* arrayName);
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];
249 const char* GetLabelText(
int label);
276 void AllocateLabels(
int numLabels);
virtual void RenderOpaqueGeometry(vtkViewport *, vtkActor2D *)
#define VTK_LABEL_VECTORS
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetLabelModeToLabelNormals()
void CoordinateSystemDisplay()
void CoordinateSystemWorld()
virtual void SetLabelTextProperty(vtkTextProperty *p)
Set/Get the text property.
virtual void RenderOverlay(vtkViewport *, vtkActor2D *)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
void SetLabelModeToLabelTCoords()
record modification and/or execution time
vtkMTimeType GetMTime() override
Override Modifiedtime as we have added Clipping planes.
Internals * Implementation
window superclass for vtkRenderWindow
Coordinates
Coordinate systems that output dataset may use.
#define VTK_LABEL_FIELD_DATA
void SetLabelModeToLabelScalars()
a simple class to control print indentation
Output 3-D world-space coordinates for each label anchor.
virtual vtkTextProperty * GetLabelTextProperty()
int NumberOfLabelsAllocated
Output 2-D display coordinates for each label anchor (3 components but only 2 are significant).
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
void SetLabelModeToLabelIds()
#define VTK_LABEL_NORMALS
void SetLabelModeToLabelVectors()
abstract class specifies interface for objects which render 2D actors
abstract specification for Viewports
void GetLabelPosition(int label, double pos[3])
Return the position of the requested label.
abstract class to specify dataset behavior
represent text properties.
static vtkAlgorithm * New()
a actor that draws 2D data
draw text labels at dataset points
void SetLabelModeToLabelFieldData()
vtkTextMapper ** TextMappers
void SetLabelModeToLabelTensors()
#define VTK_LABEL_TCOORDS
general representation of visualization data
#define VTK_LABEL_TENSORS
#define VTK_LABEL_SCALARS
vtkTypeUInt32 vtkMTimeType