48 #ifndef vtkLabeledDataMapper_h 49 #define vtkLabeledDataMapper_h 51 #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);
177 { this->SetLabelTextProperty(p, 0); }
179 {
return this->GetLabelTextProperty(0); }
217 vtkGetMacro(CoordinateSystem,
int);
218 vtkSetClampMacro(CoordinateSystem,
int,WORLD,DISPLAY);
232 vtkGetMacro(NumberOfLabels,
int)
239 void GetLabelPosition(
int label,
double pos[3])
241 assert(
"label index range" && label >= 0 && label < this->NumberOfLabels);
242 pos[0] = this->LabelPositions[3 * label];
243 pos[1] = this->LabelPositions[3 * label + 1];
244 pos[2] = this->LabelPositions[3 * label + 2];
251 const char *GetLabelText(
int label);
278 void AllocateLabels(
int numLabels);
void SetLabelModeToLabelFieldData()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
void CoordinateSystemWorld()
Set/get the coordinate system used for output labels.
#define VTK_LABEL_NORMALS
#define VTK_LABEL_VECTORS
void SetLabelModeToLabelTCoords()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
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,...
vtkTextMapper ** TextMappers
a actor that draws 2D data
record modification and/or execution time
Coordinates
Coordinate systems that output dataset may use.
#define VTK_LABEL_SCALARS
#define VTK_LABEL_TCOORDS
void SetLabelModeToLabelIds()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
draw text labels at dataset points
void SetLabelModeToLabelVectors()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
window superclass for vtkRenderWindow
void CoordinateSystemDisplay()
Set/get the coordinate system used for output labels.
a simple class to control print indentation
Internals * Implementation
represent text properties.
void SetLabelModeToLabelScalars()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
#define VTK_LABEL_TENSORS
#define VTK_LABEL_FIELD_DATA
void SetLabelModeToLabelNormals()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors,...
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).