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 110 void SetFieldDataArray(
int arrayIndex);
118 void SetFieldDataName(
const char *arrayName);
152 { this->SetLabelTextProperty(p, 0); }
154 {
return this->GetLabelTextProperty(0); }
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
#define vtkGetMacro(name, type)
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 vtkSetClampMacro(name, type, min, max)
#define VTK_LABEL_TCOORDS
#define vtkSetStringMacro(name)
void SetLabelModeToLabelIds()
#define vtkTypeMacro(thisClass, superclass)
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)
#define vtkGetStringMacro(name)
represent text properties.
#define vtkGetObjectMacro(name, type)
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)...
#define vtkSetMacro(name, type)