VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkLabeledDataMapper Class Reference

draw text labels at dataset points More...

#include <vtkLabeledDataMapper.h>

Inheritance diagram for vtkLabeledDataMapper:
[legend]
Collaboration diagram for vtkLabeledDataMapper:
[legend]

Public Types

enum  Coordinates { WORLD =0, DISPLAY =1 }
 Coordinate systems that output dataset may use. More...
 
typedef vtkMapper2D Superclass
 
- Public Types inherited from vtkMapper2D
typedef vtkAbstractMapper Superclass
 
- Public Types inherited from vtkAbstractMapper
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
enum  DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION }
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkLabeledDataMapperNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetInputData (vtkDataObject *)
 
vtkDataSetGetInput ()
 
virtual void ReleaseGraphicsResources (vtkWindow *)
 
virtual unsigned long GetMTime ()
 
const char * GetLabelText (int label)
 
virtual void SetLabelFormat (const char *)
 
virtual char * GetLabelFormat ()
 
virtual void SetLabeledComponent (int)
 
virtual int GetLabeledComponent ()
 
void SetFieldDataArray (int arrayIndex)
 
virtual int GetFieldDataArray ()
 
void SetFieldDataName (const char *arrayName)
 
virtual char * GetFieldDataName ()
 
virtual void SetLabelMode (int)
 
virtual int GetLabelMode ()
 
void SetLabelModeToLabelIds ()
 
void SetLabelModeToLabelScalars ()
 
void SetLabelModeToLabelVectors ()
 
void SetLabelModeToLabelNormals ()
 
void SetLabelModeToLabelTCoords ()
 
void SetLabelModeToLabelTensors ()
 
void SetLabelModeToLabelFieldData ()
 
virtual void SetLabelTextProperty (vtkTextProperty *p)
 
virtual vtkTextPropertyGetLabelTextProperty ()
 
virtual void SetLabelTextProperty (vtkTextProperty *p, int type)
 
virtual vtkTextPropertyGetLabelTextProperty (int type)
 
void RenderOpaqueGeometry (vtkViewport *viewport, vtkActor2D *actor)
 
void RenderOverlay (vtkViewport *viewport, vtkActor2D *actor)
 
virtual vtkTransformGetTransform ()
 
void SetTransform (vtkTransform *t)
 
virtual int GetCoordinateSystem ()
 
virtual void SetCoordinateSystem (int)
 
void CoordinateSystemWorld ()
 
void CoordinateSystemDisplay ()
 
virtual int GetNumberOfLabels ()
 
void GetLabelPosition (int label, double pos[3])
 
- Public Member Functions inherited from vtkMapper2D
vtkMapper2DNewInstance () const
 
virtual void RenderTranslucentPolygonalGeometry (vtkViewport *, vtkActor2D *)
 
virtual int HasTranslucentPolygonalGeometry ()
 
- Public Member Functions inherited from vtkAbstractMapper
vtkAbstractMapperNewInstance () const
 
void SetClippingPlanes (vtkPlanes *planes)
 
void ShallowCopy (vtkAbstractMapper *m)
 
virtual double GetTimeToDraw ()
 
void AddClippingPlane (vtkPlane *plane)
 
void RemoveClippingPlane (vtkPlane *plane)
 
void RemoveAllClippingPlanes ()
 
virtual void SetClippingPlanes (vtkPlaneCollection *)
 
virtual vtkPlaneCollectionGetClippingPlanes ()
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformationGetInputPortInformation (int port)
 
vtkInformationGetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformationGetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, int idx)
 
virtual void RemoveAllInputConnections (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformationGetInputInformation (int port, int index)
 
vtkInformationGetOutputInformation (int port)
 
virtual void UpdateInformation ()
 
virtual void UpdateDataObject ()
 
virtual void PropagateUpdateExtent ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
int SetUpdateExtentToWholeExtent (int port)
 
int SetUpdateExtentToWholeExtent ()
 
void SetUpdateExtent (int port, int extent[6])
 
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformationGetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int extent[6])
 
intGetUpdateExtent ()
 
intGetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 
void SetProgressObserver (vtkProgressObserver *)
 
virtual vtkProgressObserverGetProgressObserver ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkLabeledDataMapperNew ()
 
static int IsTypeOf (const char *type)
 
static vtkLabeledDataMapperSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkMapper2D
static int IsTypeOf (const char *type)
 
static vtkMapper2DSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAbstractMapper
static int IsTypeOf (const char *type)
 
static vtkAbstractMapperSafeDownCast (vtkObjectBase *o)
 
static vtkDataArrayGetScalars (vtkDataSet *input, int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int &cellFlag)
 
static vtkAbstractArrayGetAbstractScalars (vtkDataSet *input, int scalarMode, int arrayAccessMode, int arrayId, const char *arrayName, int &cellFlag)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static vtkInformationInformationVectorKeyINPUT_REQUIRED_FIELDS ()
 
static vtkInformationStringVectorKeyINPUT_REQUIRED_DATA_TYPE ()
 
static vtkInformationInformationVectorKeyINPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyCAN_PRODUCE_SUB_EXTENT ()
 
static vtkInformationIntegerKeyCAN_HANDLE_PIECE_REQUEST ()
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkLabeledDataMapper ()
 
 ~vtkLabeledDataMapper ()
 
virtual int FillInputPortInformation (int, vtkInformation *)
 
void AllocateLabels (int numLabels)
 
void BuildLabels ()
 
void BuildLabelsInternal (vtkDataSet *)
 
- Protected Member Functions inherited from vtkMapper2D
 vtkMapper2D ()
 
 ~vtkMapper2D ()
 
- Protected Member Functions inherited from vtkAbstractMapper
 vtkAbstractMapper ()
 
 ~vtkAbstractMapper ()
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
virtual void SetErrorCode (unsigned long)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

vtkDataSetInput
 
char * LabelFormat
 
int LabelMode
 
int LabeledComponent
 
int FieldDataArray
 
char * FieldDataName
 
int CoordinateSystem
 
vtkTimeStamp BuildTime
 
int NumberOfLabels
 
int NumberOfLabelsAllocated
 
vtkTextMapper ** TextMappers
 
doubleLabelPositions
 
vtkTransformTransform
 
Internals * Implementation
 
- Protected Attributes inherited from vtkAbstractMapper
vtkTimerLogTimer
 
double TimeToDraw
 
vtkWindowLastWindow
 
vtkPlaneCollectionClippingPlanes
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
 
double Progress
 
char * ProgressText
 
vtkProgressObserverProgressObserver
 
unsigned long ErrorCode
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

draw text labels at dataset points

vtkLabeledDataMapper is a mapper that renders text at dataset points. Various items can be labeled including point ids, scalars, vectors, normals, texture coordinates, tensors, and field data components.

The format with which the label is drawn is specified using a printf style format string. The font attributes of the text can be set through the vtkTextProperty associated to this mapper.

By default, all the components of multi-component data such as vectors, normals, texture coordinates, tensors, and multi-component scalars are labeled. However, you can specify a single component if you prefer. (Note: the label format specifies the format to use for a single component. The label is creating by looping over all components and using the label format to render each component.)

Warning
Use this filter in combination with vtkSelectVisiblePoints if you want to label only points that are visible. If you want to label cells rather than points, use the filter vtkCellCenters to generate points at the center of the cells. Also, you can use the class vtkIdFilter to generate ids as scalars or field data, which can then be labeled.
See also
vtkMapper2D vtkActor2D vtkTextMapper vtkTextProperty vtkSelectVisiblePoints vtkIdFilter vtkCellCenters
Examples:
vtkLabeledDataMapper (Examples)
Tests:
vtkLabeledDataMapper (Tests)

Definition at line 73 of file vtkLabeledDataMapper.h.

Member Typedef Documentation

Definition at line 80 of file vtkLabeledDataMapper.h.

Member Enumeration Documentation

Coordinate systems that output dataset may use.

Enumerator
WORLD 

Output 3-D world-space coordinates for each label anchor.

DISPLAY 

Output 2-D display coordinates for each label anchor (3 components but only 2 are significant).

Definition at line 176 of file vtkLabeledDataMapper.h.

Constructor & Destructor Documentation

vtkLabeledDataMapper::vtkLabeledDataMapper ( )
protected
vtkLabeledDataMapper::~vtkLabeledDataMapper ( )
protected

Member Function Documentation

static vtkLabeledDataMapper* vtkLabeledDataMapper::New ( )
static

Instantiate object with %%-#6.3g label format. By default, point ids are labeled.

static int vtkLabeledDataMapper::IsTypeOf ( const char *  type)
static
virtual int vtkLabeledDataMapper::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkMapper2D.

Reimplemented in vtkDynamic2DLabelMapper, vtkQtTreeRingLabelMapper, and vtkLabeledTreeMapDataMapper.

static vtkLabeledDataMapper* vtkLabeledDataMapper::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkLabeledDataMapper::NewInstanceInternal ( ) const
protectedvirtual
vtkLabeledDataMapper* vtkLabeledDataMapper::NewInstance ( ) const
void vtkLabeledDataMapper::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkMapper2D.

Reimplemented in vtkQtTreeRingLabelMapper, and vtkLabeledTreeMapDataMapper.

virtual void vtkLabeledDataMapper::SetLabelFormat ( const char *  )
virtual

Set/Get the format with which to print the labels. This should be a printf-style format string. By default, the mapper will try to print each component of the tuple using a sane format: d for integers, f for floats, g for doubles, ld for longs, et cetera. If you need a different format, set it here. You can do things like limit the number of significant digits, add prefixes/suffixes, basically anything that printf can do. If you only want to print one component of a vector, see the ivar LabeledComponent.

virtual char* vtkLabeledDataMapper::GetLabelFormat ( )
virtual

Set/Get the format with which to print the labels. This should be a printf-style format string. By default, the mapper will try to print each component of the tuple using a sane format: d for integers, f for floats, g for doubles, ld for longs, et cetera. If you need a different format, set it here. You can do things like limit the number of significant digits, add prefixes/suffixes, basically anything that printf can do. If you only want to print one component of a vector, see the ivar LabeledComponent.

virtual void vtkLabeledDataMapper::SetLabeledComponent ( int  )
virtual

Set/Get the component number to label if the data to print has more than one component. For example, all the components of scalars, vectors, normals, etc. are labeled by default (LabeledComponent=(-1)). However, if this ivar is nonnegative, then only the one component specified is labeled.

virtual int vtkLabeledDataMapper::GetLabeledComponent ( )
virtual

Set/Get the component number to label if the data to print has more than one component. For example, all the components of scalars, vectors, normals, etc. are labeled by default (LabeledComponent=(-1)). However, if this ivar is nonnegative, then only the one component specified is labeled.

void vtkLabeledDataMapper::SetFieldDataArray ( int  arrayIndex)

Set/Get the field data array to label. This instance variable is only applicable if field data is labeled. This will clear FieldDataName when set.

virtual int vtkLabeledDataMapper::GetFieldDataArray ( )
virtual

Set/Get the field data array to label. This instance variable is only applicable if field data is labeled. This will clear FieldDataName when set.

void vtkLabeledDataMapper::SetFieldDataName ( const char *  arrayName)

Set/Get the name of the field data array to label. This instance variable is only applicable if field data is labeled. This will override FieldDataArray when set.

virtual char* vtkLabeledDataMapper::GetFieldDataName ( )
virtual

Set/Get the name of the field data array to label. This instance variable is only applicable if field data is labeled. This will override FieldDataArray when set.

virtual void vtkLabeledDataMapper::SetInputData ( vtkDataObject )
virtual

Set the input dataset to the mapper. This mapper handles any type of data.

vtkDataSet* vtkLabeledDataMapper::GetInput ( )

Use GetInputDataObject() to get the input data object for composite datasets.

virtual void vtkLabeledDataMapper::SetLabelMode ( int  )
virtual

Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data. If the data has more than one component, use the method SetLabeledComponent to control which components to plot. The default is VTK_LABEL_IDS.

virtual int vtkLabeledDataMapper::GetLabelMode ( )
virtual

Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data. If the data has more than one component, use the method SetLabeledComponent to control which components to plot. The default is VTK_LABEL_IDS.

void vtkLabeledDataMapper::SetLabelModeToLabelIds ( )
inline

Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data. If the data has more than one component, use the method SetLabeledComponent to control which components to plot. The default is VTK_LABEL_IDS.

Definition at line 137 of file vtkLabeledDataMapper.h.

void vtkLabeledDataMapper::SetLabelModeToLabelScalars ( )
inline

Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data. If the data has more than one component, use the method SetLabeledComponent to control which components to plot. The default is VTK_LABEL_IDS.

Definition at line 138 of file vtkLabeledDataMapper.h.

void vtkLabeledDataMapper::SetLabelModeToLabelVectors ( )
inline

Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data. If the data has more than one component, use the method SetLabeledComponent to control which components to plot. The default is VTK_LABEL_IDS.

Definition at line 139 of file vtkLabeledDataMapper.h.

void vtkLabeledDataMapper::SetLabelModeToLabelNormals ( )
inline

Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data. If the data has more than one component, use the method SetLabeledComponent to control which components to plot. The default is VTK_LABEL_IDS.

Definition at line 140 of file vtkLabeledDataMapper.h.

void vtkLabeledDataMapper::SetLabelModeToLabelTCoords ( )
inline

Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data. If the data has more than one component, use the method SetLabeledComponent to control which components to plot. The default is VTK_LABEL_IDS.

Definition at line 141 of file vtkLabeledDataMapper.h.

void vtkLabeledDataMapper::SetLabelModeToLabelTensors ( )
inline

Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data. If the data has more than one component, use the method SetLabeledComponent to control which components to plot. The default is VTK_LABEL_IDS.

Definition at line 142 of file vtkLabeledDataMapper.h.

void vtkLabeledDataMapper::SetLabelModeToLabelFieldData ( )
inline

Specify which data to plot: IDs, scalars, vectors, normals, texture coords, tensors, or field data. If the data has more than one component, use the method SetLabeledComponent to control which components to plot. The default is VTK_LABEL_IDS.

Definition at line 143 of file vtkLabeledDataMapper.h.

virtual void vtkLabeledDataMapper::SetLabelTextProperty ( vtkTextProperty p)
inlinevirtual

Set/Get the text property. If an integer argument is provided, you may provide different text properties for different label types. The type is determined by an optional type input array.

Reimplemented in vtkQtTreeRingLabelMapper.

Definition at line 151 of file vtkLabeledDataMapper.h.

virtual vtkTextProperty* vtkLabeledDataMapper::GetLabelTextProperty ( )
inlinevirtual

Set/Get the text property. If an integer argument is provided, you may provide different text properties for different label types. The type is determined by an optional type input array.

Reimplemented in vtkQtTreeRingLabelMapper.

Definition at line 153 of file vtkLabeledDataMapper.h.

virtual void vtkLabeledDataMapper::SetLabelTextProperty ( vtkTextProperty p,
int  type 
)
virtual

Set/Get the text property. If an integer argument is provided, you may provide different text properties for different label types. The type is determined by an optional type input array.

Reimplemented in vtkQtTreeRingLabelMapper.

virtual vtkTextProperty* vtkLabeledDataMapper::GetLabelTextProperty ( int  type)
virtual

Set/Get the text property. If an integer argument is provided, you may provide different text properties for different label types. The type is determined by an optional type input array.

Reimplemented in vtkQtTreeRingLabelMapper.

void vtkLabeledDataMapper::RenderOpaqueGeometry ( vtkViewport viewport,
vtkActor2D actor 
)
virtual

Draw the text to the screen at each input point.

Reimplemented from vtkMapper2D.

Reimplemented in vtkQtTreeRingLabelMapper, and vtkLabeledTreeMapDataMapper.

void vtkLabeledDataMapper::RenderOverlay ( vtkViewport viewport,
vtkActor2D actor 
)
virtual

Draw the text to the screen at each input point.

Reimplemented from vtkMapper2D.

Reimplemented in vtkQtTreeRingLabelMapper, and vtkLabeledTreeMapDataMapper.

virtual void vtkLabeledDataMapper::ReleaseGraphicsResources ( vtkWindow )
virtual

Release any graphics resources that are being consumed by this actor.

Reimplemented from vtkAbstractMapper.

Reimplemented in vtkLabeledTreeMapDataMapper.

virtual vtkTransform* vtkLabeledDataMapper::GetTransform ( )
virtual

The transform to apply to the labels before mapping to 2D.

void vtkLabeledDataMapper::SetTransform ( vtkTransform t)

The transform to apply to the labels before mapping to 2D.

virtual int vtkLabeledDataMapper::GetCoordinateSystem ( )
virtual

Set/get the coordinate system used for output labels. The output datasets may have point coordinates reported in the world space or display space.

virtual void vtkLabeledDataMapper::SetCoordinateSystem ( int  )
virtual

Set/get the coordinate system used for output labels. The output datasets may have point coordinates reported in the world space or display space.

void vtkLabeledDataMapper::CoordinateSystemWorld ( )
inline

Set/get the coordinate system used for output labels. The output datasets may have point coordinates reported in the world space or display space.

Definition at line 189 of file vtkLabeledDataMapper.h.

void vtkLabeledDataMapper::CoordinateSystemDisplay ( )
inline

Set/get the coordinate system used for output labels. The output datasets may have point coordinates reported in the world space or display space.

Definition at line 190 of file vtkLabeledDataMapper.h.

virtual unsigned long vtkLabeledDataMapper::GetMTime ( )
virtual

Return the modified time for this object.

Reimplemented from vtkAbstractMapper.

Reimplemented in vtkQtTreeRingLabelMapper.

virtual int vtkLabeledDataMapper::GetNumberOfLabels ( )
virtual

Return the number of labels rendered by the mapper.

void vtkLabeledDataMapper::GetLabelPosition ( int  label,
double  pos[3] 
)
inline

Return the position of the requested label.

Definition at line 203 of file vtkLabeledDataMapper.h.

const char* vtkLabeledDataMapper::GetLabelText ( int  label)

Return the text for the requested label.

virtual int vtkLabeledDataMapper::FillInputPortInformation ( int  port,
vtkInformation info 
)
protectedvirtual

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkAlgorithm.

void vtkLabeledDataMapper::AllocateLabels ( int  numLabels)
protected
void vtkLabeledDataMapper::BuildLabels ( )
protected
void vtkLabeledDataMapper::BuildLabelsInternal ( vtkDataSet )
protected

Member Data Documentation

vtkDataSet* vtkLabeledDataMapper::Input
protected

Definition at line 219 of file vtkLabeledDataMapper.h.

char* vtkLabeledDataMapper::LabelFormat
protected

Definition at line 221 of file vtkLabeledDataMapper.h.

int vtkLabeledDataMapper::LabelMode
protected

Definition at line 222 of file vtkLabeledDataMapper.h.

int vtkLabeledDataMapper::LabeledComponent
protected

Definition at line 223 of file vtkLabeledDataMapper.h.

int vtkLabeledDataMapper::FieldDataArray
protected

Definition at line 224 of file vtkLabeledDataMapper.h.

char* vtkLabeledDataMapper::FieldDataName
protected

Definition at line 225 of file vtkLabeledDataMapper.h.

int vtkLabeledDataMapper::CoordinateSystem
protected

Definition at line 226 of file vtkLabeledDataMapper.h.

vtkTimeStamp vtkLabeledDataMapper::BuildTime
protected

Definition at line 228 of file vtkLabeledDataMapper.h.

int vtkLabeledDataMapper::NumberOfLabels
protected

Definition at line 230 of file vtkLabeledDataMapper.h.

int vtkLabeledDataMapper::NumberOfLabelsAllocated
protected

Definition at line 231 of file vtkLabeledDataMapper.h.

vtkTextMapper** vtkLabeledDataMapper::TextMappers
protected

Definition at line 232 of file vtkLabeledDataMapper.h.

double* vtkLabeledDataMapper::LabelPositions
protected

Definition at line 233 of file vtkLabeledDataMapper.h.

vtkTransform* vtkLabeledDataMapper::Transform
protected

Definition at line 234 of file vtkLabeledDataMapper.h.

Internals* vtkLabeledDataMapper::Implementation
protected

Definition at line 243 of file vtkLabeledDataMapper.h.


The documentation for this class was generated from the following file: