VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkFreeTypeLabelRenderStrategy Class Reference

Renders labels with freetype. More...

#include <vtkFreeTypeLabelRenderStrategy.h>

Inheritance diagram for vtkFreeTypeLabelRenderStrategy:
Inheritance graph
[legend]
Collaboration diagram for vtkFreeTypeLabelRenderStrategy:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkLabelRenderStrategy Superclass

Public Member Functions

void PrintSelf (ostream &os, vtkIndent indent)
virtual int IsA (const char *type)
vtkFreeTypeLabelRenderStrategyNewInstance () const
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 (vtkObjectBase *o)
static
vtkFreeTypeLabelRenderStrategy
New ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkFreeTypeLabelRenderStrategy ()
 ~vtkFreeTypeLabelRenderStrategy ()

Protected Attributes

vtkFreeTypeUtilitiesFreeTypeUtilities
vtkTextMapperMapper
vtkActor2DActor

Detailed Description

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.


Member Typedef Documentation

Reimplemented from vtkLabelRenderStrategy.

Definition at line 37 of file vtkFreeTypeLabelRenderStrategy.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkLabelRenderStrategy.

virtual vtkObjectBase* vtkFreeTypeLabelRenderStrategy::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkLabelRenderStrategy.

Reimplemented from vtkLabelRenderStrategy.

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.

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.


Member Data Documentation

Definition at line 82 of file vtkFreeTypeLabelRenderStrategy.h.

Definition at line 83 of file vtkFreeTypeLabelRenderStrategy.h.

Definition at line 84 of file vtkFreeTypeLabelRenderStrategy.h.


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