vtkFreeTypeLabelRenderStrategy Class Reference

#include <vtkFreeTypeLabelRenderStrategy.h>

Inheritance diagram for vtkFreeTypeLabelRenderStrategy:

Inheritance graph
[legend]
Collaboration diagram for vtkFreeTypeLabelRenderStrategy:

Collaboration graph
[legend]

List of all members.


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 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

vtkFreeTypeUtilitiesFreeTypeUtilities
vtkTextMapperMapper
vtkActor2DActor

Member Typedef Documentation

Reimplemented from vtkLabelRenderStrategy.

Definition at line 36 of file vtkFreeTypeLabelRenderStrategy.h.


Constructor & Destructor Documentation

vtkFreeTypeLabelRenderStrategy::vtkFreeTypeLabelRenderStrategy (  )  [protected]

vtkFreeTypeLabelRenderStrategy::~vtkFreeTypeLabelRenderStrategy (  )  [protected]


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.

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 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.


Member Data Documentation

Definition at line 83 of file vtkFreeTypeLabelRenderStrategy.h.

Definition at line 84 of file vtkFreeTypeLabelRenderStrategy.h.

Definition at line 85 of file vtkFreeTypeLabelRenderStrategy.h.


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

Generated on Mon Sep 27 18:24:30 2010 for VTK by  doxygen 1.5.6