46 #ifndef vtkLabeledDataMapper_h 47 #define vtkLabeledDataMapper_h 49 #include "vtkRenderingLabelModule.h" 60 #define VTK_LABEL_IDS 0 61 #define VTK_LABEL_SCALARS 1 62 #define VTK_LABEL_VECTORS 2 63 #define VTK_LABEL_NORMALS 3 64 #define VTK_LABEL_TCOORDS 4 65 #define VTK_LABEL_TENSORS 5 66 #define VTK_LABEL_FIELD_DATA 6 93 vtkSetStringMacro(LabelFormat);
106 vtkGetMacro(LabeledComponent,
int);
115 void SetFieldDataArray(
int arrayIndex);
116 vtkGetMacro(FieldDataArray,
int);
125 void SetFieldDataName(
const char *arrayName);
148 vtkGetMacro(LabelMode,
int);
167 { this->SetLabelTextProperty(p, 0); }
169 {
return this->GetLabelTextProperty(0); }
207 vtkGetMacro(CoordinateSystem,
int);
208 vtkSetClampMacro(CoordinateSystem,
int,WORLD,DISPLAY);
222 vtkGetMacro(NumberOfLabels,
int)
229 void GetLabelPosition(
int label,
double pos[3])
231 assert(
"label index range" && label >= 0 && label < this->NumberOfLabels);
232 pos[0] = this->LabelPositions[3 * label];
233 pos[1] = this->LabelPositions[3 * label + 1];
234 pos[2] = this->LabelPositions[3 * label + 2];
241 const char *GetLabelText(
int label);
251 int LabeledComponent;
254 int CoordinateSystem;
259 int NumberOfLabelsAllocated;
261 double* LabelPositions;
266 void AllocateLabels(
int numLabels);
271 Internals* Implementation;
void SetLabelModeToLabelFieldData()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
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, or field data.
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, or field data.
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, or field data.
draw text labels at dataset points
void SetLabelModeToLabelVectors()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
window superclass for vtkRenderWindow
void CoordinateSystemDisplay()
Set/get the coordinate system used for output labels.
a simple class to control print indentation
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
represent text properties.
void SetLabelModeToLabelScalars()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
#define VTK_LABEL_TENSORS
#define VTK_LABEL_FIELD_DATA
void SetLabelModeToLabelNormals()
Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data.
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)...