#include <vtkFreeTypeLabelRenderStrategy.h>
Uses the FreeType to render labels and compute label sizes. This strategy may be used with vtkLabelPlacementMapper.
Definition at line 32 of file vtkFreeTypeLabelRenderStrategy.h.
Public Types | |
typedef vtkLabelRenderStrategy | Superclass |
Public Member Functions | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | ReleaseGraphicsResources (vtkWindow *window) |
virtual bool | SupportsRotation () |
virtual bool | SupportsBoundedSize () |
virtual void | ComputeLabelBounds (vtkTextProperty *tprop, vtkStdString label, double bds[4]) |
virtual void | ComputeLabelBounds (vtkTextProperty *tprop, vtkUnicodeString label, double bds[4]) |
virtual void | RenderLabel (int x[2], vtkTextProperty *tprop, vtkStdString label) |
virtual void | RenderLabel (int x[2], vtkTextProperty *tprop, vtkStdString label, int width) |
virtual void | RenderLabel (int x[2], vtkTextProperty *tprop, vtkUnicodeString label) |
virtual void | RenderLabel (int x[2], vtkTextProperty *tprop, vtkUnicodeString label, int width) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkFreeTypeLabelRenderStrategy * | SafeDownCast (vtkObject *o) |
static vtkFreeTypeLabelRenderStrategy * | New () |
Protected Member Functions | |
vtkFreeTypeLabelRenderStrategy () | |
~vtkFreeTypeLabelRenderStrategy () | |
Protected Attributes | |
vtkFreeTypeUtilities * | FreeTypeUtilities |
vtkTextMapper * | Mapper |
vtkActor2D * | Actor |
Reimplemented from vtkLabelRenderStrategy.
Definition at line 36 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.
virtual const char* vtkFreeTypeLabelRenderStrategy::GetClassName | ( | ) | [virtual] |
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 | ( | vtkObject * | o | ) | [static] |
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 41 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 48 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 55 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 63 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 65 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 68 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 81 of file vtkFreeTypeLabelRenderStrategy.h.
vtkTextMapper* vtkFreeTypeLabelRenderStrategy::Mapper [protected] |
Definition at line 82 of file vtkFreeTypeLabelRenderStrategy.h.
vtkActor2D* vtkFreeTypeLabelRenderStrategy::Actor [protected] |
Definition at line 83 of file vtkFreeTypeLabelRenderStrategy.h.