51 #ifndef vtkLabeledDataMapper_h
52 #define vtkLabeledDataMapper_h
65 #define VTK_LABEL_IDS 0
66 #define VTK_LABEL_SCALARS 1
67 #define VTK_LABEL_VECTORS 2
68 #define VTK_LABEL_NORMALS 3
69 #define VTK_LABEL_TCOORDS 4
70 #define VTK_LABEL_TENSORS 5
71 #define VTK_LABEL_FIELD_DATA 6
92 vtkSetStringMacro(LabelFormat);
93 vtkGetStringMacro(LabelFormat);
102 vtkSetMacro(LabeledComponent,
int);
103 vtkGetMacro(LabeledComponent,
int);
110 void SetFieldDataArray(
int arrayIndex);
111 vtkGetMacro(FieldDataArray,
int);
118 void SetFieldDataName(
const char *arrayName);
119 vtkGetStringMacro(FieldDataName);
135 vtkSetMacro(LabelMode,
int);
136 vtkGetMacro(LabelMode,
int);
152 { this->SetLabelTextProperty(p, 0); }
154 {
return this->GetLabelTextProperty(0); }
187 vtkGetMacro(CoordinateSystem,
int);
188 vtkSetClampMacro(CoordinateSystem,
int,WORLD,DISPLAY);
198 vtkGetMacro(NumberOfLabels,
int)
203 void GetLabelPosition(
int label,
double pos[3])
205 assert(
"label index range" && label >= 0 && label < this->NumberOfLabels);
206 pos[0] = this->LabelPositions[3 * label];
207 pos[1] = this->LabelPositions[3 * label + 1];
208 pos[2] = this->LabelPositions[3 * label + 2];
213 const char *GetLabelText(
int label);
238 void AllocateLabels(
int numLabels);
virtual unsigned long GetMTime()
void SetLabelModeToLabelFieldData()
void CoordinateSystemWorld()
#define VTK_LABEL_NORMALS
#define VTK_LABEL_VECTORS
void SetLabelModeToLabelTCoords()
virtual void RenderOverlay(vtkViewport *, vtkActor2D *)
abstract specification for Viewports
Output 3-D world-space coordinates for each label anchor.
abstract class to specify dataset behavior
void SetLabelModeToLabelTensors()
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()
draw text labels at dataset points
void SetLabelModeToLabelVectors()
window superclass for vtkRenderWindow
void CoordinateSystemDisplay()
a simple class to control print indentation
#define VTKRENDERINGLABEL_EXPORT
Internals * Implementation
void PrintSelf(ostream &os, vtkIndent indent)
represent text properties.
void SetLabelModeToLabelScalars()
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTK_LABEL_TENSORS
#define VTK_LABEL_FIELD_DATA
void SetLabelModeToLabelNormals()
int NumberOfLabelsAllocated
virtual void ReleaseGraphicsResources(vtkWindow *)
virtual vtkTextProperty * GetLabelTextProperty()
static vtkAlgorithm * New()
virtual void RenderOpaqueGeometry(vtkViewport *, vtkActor2D *)
general representation of visualization data
abstract class specifies interface for objects which render 2D actors
virtual void SetLabelTextProperty(vtkTextProperty *p)
Output 2-D display coordinates for each label anchor (3 components but only 2 are significant)...