VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkMathTextFreeTypeTextRenderer Class Reference

Default implementation of vtkTextRenderer. More...

#include <vtkMathTextFreeTypeTextRenderer.h>

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

List of all members.

Public Types

typedef vtkTextRenderer Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkMathTextFreeTypeTextRendererNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)

Static Public Member Functions

static int IsTypeOf (const char *type)
static
vtkMathTextFreeTypeTextRenderer
SafeDownCast (vtkObjectBase *o)
static
vtkMathTextFreeTypeTextRenderer
New ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkMathTextFreeTypeTextRenderer ()
 ~vtkMathTextFreeTypeTextRenderer ()
bool GetBoundingBoxInternal (vtkTextProperty *tprop, const vtkStdString &str, int bbox[4], int dpi, int backend)
bool GetBoundingBoxInternal (vtkTextProperty *tprop, const vtkUnicodeString &str, int bbox[4], int dpi, int backend)
bool RenderStringInternal (vtkTextProperty *tprop, const vtkStdString &str, vtkImageData *data, int textDims[2], int dpi, int backend)
bool RenderStringInternal (vtkTextProperty *tprop, const vtkUnicodeString &str, vtkImageData *data, int textDims[2], int dpi, int backend)
int GetConstrainedFontSizeInternal (const vtkStdString &str, vtkTextProperty *tprop, int targetWidth, int targetHeight, int dpi, int backend)
int GetConstrainedFontSizeInternal (const vtkUnicodeString &str, vtkTextProperty *tprop, int targetWidth, int targetHeight, int dpi, int backend)
bool StringToPathInternal (vtkTextProperty *tprop, const vtkStdString &str, vtkPath *path, int backend)
bool StringToPathInternal (vtkTextProperty *tprop, const vtkUnicodeString &str, vtkPath *path, int backend)
void SetScaleToPowerOfTwoInternal (bool scale)

Detailed Description

Default implementation of vtkTextRenderer.

Default implementation of vtkTextRenderer using vtkFreeTypeTools and vtkMathTextUtilities.

Warning:
The MathText backend does not currently support UTF16 strings, thus UTF16 strings passed to the MathText renderer will be converted to UTF8.

Definition at line 39 of file vtkMathTextFreeTypeTextRenderer.h.


Member Typedef Documentation

Reimplemented from vtkTextRenderer.

Definition at line 43 of file vtkMathTextFreeTypeTextRenderer.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkMathTextFreeTypeTextRenderer::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 vtkTextRenderer.

virtual int vtkMathTextFreeTypeTextRenderer::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 vtkTextRenderer.

Reimplemented from vtkTextRenderer.

Reimplemented from vtkTextRenderer.

Reimplemented from vtkTextRenderer.

void vtkMathTextFreeTypeTextRenderer::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 vtkTextRenderer.

This is a singleton pattern New. There will be only ONE reference to a vtkTextRenderer subclass object per process. Clients that call this method must use Delete() on the object so that reference counting will work. The single instance will be unreferenced when the program exits. You should just use the static GetInstance() method anyway to get the singleton. This method may return NULL if the object factory cannot find an override.

Reimplemented from vtkTextRenderer.

bool vtkMathTextFreeTypeTextRenderer::GetBoundingBoxInternal ( vtkTextProperty tprop,
const vtkStdString str,
int  bbox[4],
int  dpi,
int  backend 
) [protected, virtual]

Reimplemented from vtkTextRenderer.

Implements vtkTextRenderer.

bool vtkMathTextFreeTypeTextRenderer::GetBoundingBoxInternal ( vtkTextProperty tprop,
const vtkUnicodeString str,
int  bbox[4],
int  dpi,
int  backend 
) [protected, virtual]

Reimplemented from vtkTextRenderer.

Implements vtkTextRenderer.

bool vtkMathTextFreeTypeTextRenderer::RenderStringInternal ( vtkTextProperty tprop,
const vtkStdString str,
vtkImageData data,
int  textDims[2],
int  dpi,
int  backend 
) [protected, virtual]

Reimplemented from vtkTextRenderer.

Implements vtkTextRenderer.

bool vtkMathTextFreeTypeTextRenderer::RenderStringInternal ( vtkTextProperty tprop,
const vtkUnicodeString str,
vtkImageData data,
int  textDims[2],
int  dpi,
int  backend 
) [protected, virtual]

Reimplemented from vtkTextRenderer.

Implements vtkTextRenderer.

int vtkMathTextFreeTypeTextRenderer::GetConstrainedFontSizeInternal ( const vtkStdString str,
vtkTextProperty tprop,
int  targetWidth,
int  targetHeight,
int  dpi,
int  backend 
) [protected, virtual]

Reimplemented from vtkTextRenderer.

Implements vtkTextRenderer.

int vtkMathTextFreeTypeTextRenderer::GetConstrainedFontSizeInternal ( const vtkUnicodeString str,
vtkTextProperty tprop,
int  targetWidth,
int  targetHeight,
int  dpi,
int  backend 
) [protected, virtual]

Reimplemented from vtkTextRenderer.

Implements vtkTextRenderer.

bool vtkMathTextFreeTypeTextRenderer::StringToPathInternal ( vtkTextProperty tprop,
const vtkStdString str,
vtkPath path,
int  backend 
) [protected, virtual]

Reimplemented from vtkTextRenderer.

Implements vtkTextRenderer.

bool vtkMathTextFreeTypeTextRenderer::StringToPathInternal ( vtkTextProperty tprop,
const vtkUnicodeString str,
vtkPath path,
int  backend 
) [protected, virtual]

Reimplemented from vtkTextRenderer.

Implements vtkTextRenderer.

void vtkMathTextFreeTypeTextRenderer::SetScaleToPowerOfTwoInternal ( bool  scale) [protected, virtual]

Reimplemented from vtkTextRenderer.

Implements vtkTextRenderer.


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