Go to the documentation of this file.
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
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];
void RenderOpaqueGeometry(vtkViewport *viewport, vtkActor2D *actor)
#define VTK_LABEL_VECTORS
#define vtkGetObjectMacro(name, type)
void SetLabelModeToLabelNormals()
void CoordinateSystemDisplay()
void CoordinateSystemWorld()
virtual void SetLabelTextProperty(vtkTextProperty *p)
void SetLabelModeToLabelTCoords()
record modification and/or execution time
#define vtkTypeMacro(thisClass, superclass)
#define VTKRENDERINGLABEL_EXPORT
Internals * Implementation
void SetTransform(vtkTransform *t)
void PrintSelf(ostream &os, vtkIndent indent)
window superclass for vtkRenderWindow
#define vtkSetClampMacro(name, type, min, max)
Coordinates
Coordinate systems that output dataset may use.
const char * GetLabelText(int label)
#define VTK_LABEL_FIELD_DATA
void SetLabelModeToLabelScalars()
a simple class to control print indentation
#define vtkSetStringMacro(name)
@ WORLD
Output 3-D world-space coordinates for each label anchor.
static vtkLabeledDataMapper * New()
virtual vtkTextProperty * GetLabelTextProperty()
int NumberOfLabelsAllocated
@ DISPLAY
Output 2-D display coordinates for each label anchor (3 components but only 2 are significant).
#define vtkGetMacro(name, type)
vtkGetStringMacro(ExtensionsString)
void SetLabelModeToLabelIds()
#define VTK_LABEL_NORMALS
void SetLabelModeToLabelVectors()
abstract class specifies interface for objects which render 2D actors
void SetFieldDataName(const char *arrayName)
abstract specification for Viewports
virtual void SetInputData(vtkDataObject *)
abstract class to specify dataset behavior
represent text properties.
vtkSetMacro(IgnoreDriverBugs, bool)
virtual int FillInputPortInformation(int, vtkInformation *)
virtual void ReleaseGraphicsResources(vtkWindow *)
a actor that draws 2D data
draw text labels at dataset points
void SetFieldDataArray(int arrayIndex)
void SetLabelModeToLabelFieldData()
void BuildLabelsInternal(vtkDataSet *)
void AllocateLabels(int numLabels)
vtkTextMapper ** TextMappers
virtual void SetLabelTextProperty(vtkTextProperty *p, int type)
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
void SetLabelModeToLabelTensors()
#define VTK_LABEL_TCOORDS
general representation of visualization data
#define VTK_LABEL_TENSORS
#define VTK_LABEL_SCALARS
virtual unsigned long GetMTime()
GLuint GLuint GLsizei GLenum type
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor)
virtual vtkTextProperty * GetLabelTextProperty(int type)