83 #ifndef __svkLabeledDataMapper_h
84 #define __svkLabeledDataMapper_h
86 #include <vtkMapper2D.h>
97 class vtkTextProperty;
100 #define VTK_LABEL_IDS 0
101 #define VTK_LABEL_SCALARS 1
102 #define VTK_LABEL_VECTORS 2
103 #define VTK_LABEL_NORMALS 3
104 #define VTK_LABEL_TCOORDS 4
105 #define VTK_LABEL_TENSORS 5
106 #define VTK_LABEL_FIELD_DATA 6
107 #define SVK_LABEL_DATA_TAGS 7
121 void PrintSelf(ostream& os, vtkIndent indent);
134 vtkSetStringMacro(LabelFormat);
135 vtkGetStringMacro(LabelFormat);
143 vtkSetMacro(LabeledComponent,
int);
144 vtkGetMacro(LabeledComponent,
int);
146 vtkSetMacro(DisplayTags,
bool);
147 vtkGetMacro(DisplayTags,
bool);
153 void SetFieldDataArray(
int arrayIndex);
154 vtkGetMacro(FieldDataArray,
int);
160 void SetFieldDataName(
const char *arrayName);
161 vtkGetStringMacro(FieldDataName);
165 virtual void SetInput(vtkDataObject*);
170 vtkDataSet *GetInput();
177 vtkSetMacro(LabelMode,
int);
178 vtkGetMacro(LabelMode,
int);
195 { this->SetLabelTextProperty(p, 0); }
197 {
return this->GetLabelTextProperty(0); }
198 virtual void SetLabelTextProperty(vtkTextProperty *p,
int type);
199 virtual vtkTextProperty* GetLabelTextProperty(
int type);
203 void RenderOpaqueGeometry(vtkViewport* viewport, vtkActor2D* actor);
204 void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor);
208 virtual void ReleaseGraphicsResources(vtkWindow *);
212 vtkGetObjectMacro(Transform, vtkTransform);
213 void SetTransform(vtkTransform* t);
227 vtkGetMacro(CoordinateSystem,
int);
228 vtkSetClampMacro(CoordinateSystem,
int,WORLD,DISPLAY);
234 virtual unsigned long GetMTime();
258 virtual int FillInputPortInformation(
int, vtkInformation*);
260 void AllocateLabels(
int numLabels);
262 void BuildLabelsInternal(vtkDataSet*);
int NumberOfLabelsAllocated
Definition: svkLabeledDataMapper.h:253
#define VTK_LABEL_TCOORDS
Definition: svkLabeledDataMapper.h:104
vtkTextMapper ** TextMappers
Definition: svkLabeledDataMapper.h:254
void SetLabelModeToLabelScalars()
Definition: svkLabeledDataMapper.h:180
Coordinates
Coordinate systems that output dataset may use.
Definition: svkLabeledDataMapper.h:217
#define VTK_LABEL_FIELD_DATA
Definition: svkLabeledDataMapper.h:106
vtkTransform * Transform
Definition: svkLabeledDataMapper.h:256
char * FieldDataName
Definition: svkLabeledDataMapper.h:246
int LabelMode
Definition: svkLabeledDataMapper.h:243
virtual vtkTextProperty * GetLabelTextProperty()
Definition: svkLabeledDataMapper.h:196
void SetLabelModeToLabelIds()
Definition: svkLabeledDataMapper.h:179
virtual void SetLabelTextProperty(vtkTextProperty *p)
Definition: svkLabeledDataMapper.h:194
double * LabelPositions
Definition: svkLabeledDataMapper.h:255
Definition: svkLabeledDataMapper.h:111
#define VTK_LABEL_TENSORS
Definition: svkLabeledDataMapper.h:105
#define VTK_LABEL_NORMALS
Definition: svkLabeledDataMapper.h:103
char * LabelFormat
Definition: svkLabeledDataMapper.h:242
int NumberOfLabels
Definition: svkLabeledDataMapper.h:252
#define VTK_LABEL_IDS
Definition: svkLabeledDataMapper.h:100
vtkTimeStamp BuildTime
Definition: svkLabeledDataMapper.h:250
void CoordinateSystemWorld()
Definition: svkLabeledDataMapper.h:229
Output 2-D display coordinates for each label anchor (3 components but only 2 are significant)...
Definition: svkLabeledDataMapper.h:220
Definition: svkLabeledDataMapper.cc:80
void SetLabelModeToLabelTensors()
Definition: svkLabeledDataMapper.h:184
void SetLabelModeToLabelTCoords()
Definition: svkLabeledDataMapper.h:183
bool DisplayTags
Definition: svkLabeledDataMapper.h:248
void SetLabelModeToLabelVectors()
Definition: svkLabeledDataMapper.h:181
void SetLabelModeToLabelFieldData()
Definition: svkLabeledDataMapper.h:186
void CoordinateSystemDisplay()
Definition: svkLabeledDataMapper.h:230
Internals * Implementation
Definition: svkLabeledDataMapper.h:265
int LabeledComponent
Definition: svkLabeledDataMapper.h:244
vtkDataSet * Input
Definition: svkLabeledDataMapper.h:240
#define VTK_LABEL_VECTORS
Definition: svkLabeledDataMapper.h:102
int CoordinateSystem
Definition: svkLabeledDataMapper.h:247
void SetLabelModeToLabelNormals()
Definition: svkLabeledDataMapper.h:182
#define SVK_LABEL_DATA_TAGS
Definition: svkLabeledDataMapper.h:107
Output 3-D world-space coordinates for each label anchor.
Definition: svkLabeledDataMapper.h:219
int FieldDataArray
Definition: svkLabeledDataMapper.h:245
void SetLabelModeToLabelTags()
Definition: svkLabeledDataMapper.h:185
#define VTK_LABEL_SCALARS
Definition: svkLabeledDataMapper.h:101