Section: Visualization Toolkit Rendering Classes
To create an instance of class vtkDynamic2DLabelMapper, simply invoke its constructor as follows
obj = vtkDynamic2DLabelMapper
obj
is an instance of the vtkDynamic2DLabelMapper class.
string = obj.GetClassName ()
- Instantiate object with %%-#6.3g label format. By default, point ids
are labeled.
int = obj.IsA (string name)
- Instantiate object with %%-#6.3g label format. By default, point ids
are labeled.
vtkDynamic2DLabelMapper = obj.NewInstance ()
- Instantiate object with %%-#6.3g label format. By default, point ids
are labeled.
vtkDynamic2DLabelMapper = obj.SafeDownCast (vtkObject o)
- Instantiate object with %%-#6.3g label format. By default, point ids
are labeled.
obj.SetPriorityArrayName (string name)
- Set the points array name to use to give priority to labels.
Defaults to "priority".
obj.SetReversePriority (bool )
- Whether to reverse the priority order (i.e. low values have high priority).
Default is off.
bool = obj.GetReversePriority ()
- Whether to reverse the priority order (i.e. low values have high priority).
Default is off.
obj.ReversePriorityOn ()
- Whether to reverse the priority order (i.e. low values have high priority).
Default is off.
obj.ReversePriorityOff ()
- Whether to reverse the priority order (i.e. low values have high priority).
Default is off.
obj.SetLabelHeightPadding (float )
- Set the label height padding as a percentage. The percentage
is a percentage of your label height.
Default is 50%.
float = obj.GetLabelHeightPadding ()
- Set the label height padding as a percentage. The percentage
is a percentage of your label height.
Default is 50%.
obj.SetLabelWidthPadding (float )
- Set the label width padding as a percentage. The percentage
is a percentage of your label ^height^ (yes, not a typo).
Default is 50%.
float = obj.GetLabelWidthPadding ()
- Set the label width padding as a percentage. The percentage
is a percentage of your label ^height^ (yes, not a typo).
Default is 50%.
obj.RenderOpaqueGeometry (vtkViewport viewport, vtkActor2D actor)
- Draw non-overlapping labels to the screen.
obj.RenderOverlay (vtkViewport viewport, vtkActor2D actor)
- Draw non-overlapping labels to the screen.