VTK
|
Renders labels with freetype. More...
#include <vtkFreeTypeLabelRenderStrategy.h>
Renders labels with freetype.
Uses the FreeType to render labels and compute label sizes. This strategy may be used with vtkLabelPlacementMapper.
Definition at line 33 of file vtkFreeTypeLabelRenderStrategy.h.
Reimplemented from vtkLabelRenderStrategy.
Definition at line 37 of file vtkFreeTypeLabelRenderStrategy.h.
vtkFreeTypeLabelRenderStrategy::vtkFreeTypeLabelRenderStrategy | ( | ) | [protected] |
vtkFreeTypeLabelRenderStrategy::~vtkFreeTypeLabelRenderStrategy | ( | ) | [protected] |
void vtkFreeTypeLabelRenderStrategy::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 vtkLabelRenderStrategy.
static int vtkFreeTypeLabelRenderStrategy::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type 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 vtkLabelRenderStrategy.
virtual int vtkFreeTypeLabelRenderStrategy::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 vtkLabelRenderStrategy.
static vtkFreeTypeLabelRenderStrategy* vtkFreeTypeLabelRenderStrategy::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkLabelRenderStrategy.
virtual vtkObjectBase* vtkFreeTypeLabelRenderStrategy::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkLabelRenderStrategy.
Reimplemented from vtkLabelRenderStrategy.
static vtkFreeTypeLabelRenderStrategy* vtkFreeTypeLabelRenderStrategy::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
virtual bool vtkFreeTypeLabelRenderStrategy::SupportsRotation | ( | ) | [inline, virtual] |
The free type render strategy currently does not support rotation.
Reimplemented from vtkLabelRenderStrategy.
Definition at line 42 of file vtkFreeTypeLabelRenderStrategy.h.
virtual bool vtkFreeTypeLabelRenderStrategy::SupportsBoundedSize | ( | ) | [inline, virtual] |
The free type render strategy currently does not support bounded size labels.
Reimplemented from vtkLabelRenderStrategy.
Definition at line 49 of file vtkFreeTypeLabelRenderStrategy.h.
virtual void vtkFreeTypeLabelRenderStrategy::ComputeLabelBounds | ( | vtkTextProperty * | tprop, |
vtkStdString | label, | ||
double | bds[4] | ||
) | [inline, virtual] |
Compute the bounds of a label. Must be performed after the renderer is set.
Reimplemented from vtkLabelRenderStrategy.
Definition at line 56 of file vtkFreeTypeLabelRenderStrategy.h.
virtual void vtkFreeTypeLabelRenderStrategy::ComputeLabelBounds | ( | vtkTextProperty * | tprop, |
vtkUnicodeString | label, | ||
double | bds[4] | ||
) | [virtual] |
Compute the bounds of a label. Must be performed after the renderer is set.
Implements vtkLabelRenderStrategy.
virtual void vtkFreeTypeLabelRenderStrategy::RenderLabel | ( | int | x[2], |
vtkTextProperty * | tprop, | ||
vtkStdString | label | ||
) | [inline, virtual] |
Render a label at a location in world coordinates. Must be performed between StartFrame() and EndFrame() calls.
Reimplemented from vtkLabelRenderStrategy.
Definition at line 64 of file vtkFreeTypeLabelRenderStrategy.h.
virtual void vtkFreeTypeLabelRenderStrategy::RenderLabel | ( | int | x[2], |
vtkTextProperty * | tprop, | ||
vtkStdString | label, | ||
int | width | ||
) | [inline, virtual] |
Render a label at a location in world coordinates. Must be performed between StartFrame() and EndFrame() calls.
Reimplemented from vtkLabelRenderStrategy.
Definition at line 66 of file vtkFreeTypeLabelRenderStrategy.h.
virtual void vtkFreeTypeLabelRenderStrategy::RenderLabel | ( | int | x[2], |
vtkTextProperty * | tprop, | ||
vtkUnicodeString | label | ||
) | [virtual] |
Render a label at a location in world coordinates. Must be performed between StartFrame() and EndFrame() calls.
Implements vtkLabelRenderStrategy.
virtual void vtkFreeTypeLabelRenderStrategy::RenderLabel | ( | int | x[2], |
vtkTextProperty * | tprop, | ||
vtkUnicodeString | label, | ||
int | width | ||
) | [inline, virtual] |
Render a label at a location in world coordinates. Must be performed between StartFrame() and EndFrame() calls.
Definition at line 69 of file vtkFreeTypeLabelRenderStrategy.h.
virtual void vtkFreeTypeLabelRenderStrategy::ReleaseGraphicsResources | ( | vtkWindow * | window | ) | [virtual] |
Release any graphics resources that are being consumed by this strategy. The parameter window could be used to determine which graphic resources to release.
Reimplemented from vtkLabelRenderStrategy.
Definition at line 82 of file vtkFreeTypeLabelRenderStrategy.h.
vtkTextMapper* vtkFreeTypeLabelRenderStrategy::Mapper [protected] |
Definition at line 83 of file vtkFreeTypeLabelRenderStrategy.h.
vtkActor2D* vtkFreeTypeLabelRenderStrategy::Actor [protected] |
Definition at line 84 of file vtkFreeTypeLabelRenderStrategy.h.