# Visualization
TKService
MFT

# MFT_TextManager Class Reference

defines the common behaviour of the MFT output driver.
Warning: Permits to receives draw primitives from the FontManager
at DrawText(...) time.
This class must be redefined by the user as an application class
connected to a user driver.

`#include <MFT_TextManager.hxx>`

Inheritance diagram for MFT_TextManager:

[legend]

## Public Member Functions

Standard_EXPORT | MFT_TextManager ()
| Does NOTHING .
virtual Standard_EXPORT void | BeginString (const Quantity_Length X, const Quantity_Length Y, const Quantity_PlaneAngle anOrientation, const Quantity_Length aWidth, const Quantity_Length aHeight, const Quantity_PlaneAngle aSlant, const Standard_Integer aPaintType)
| Calls when string drawing is started. with a string aspect <apainttype> : 0 for filled string 1 for stroke string 2 for outline string The origine of the string <x>,<y>, The orientation of the string <anorientation>, The medium size of the char <aWidth,aHeight>, The Slant of the char <aslant>, .
virtual Standard_EXPORT Standard_Boolean | BeginChar (const Standard_Integer aCharCode, const Quantity_Length X, const Quantity_Length Y)
| Calls when a char drawing is started and give the relative char start position from the beginning of the string. The application can returns FALSE for skipping the char drawing. .
virtual Standard_EXPORT Standard_Boolean | SetCharBoundingBox (const Quantity_Length X1, const Quantity_Length Y1, const Quantity_Length X2, const Quantity_Length Y2, const Quantity_Length X3, const Quantity_Length Y3, const Quantity_Length X4, const Quantity_Length Y4)
| Calls to defines the current char bounding-box with : X1,Y1 : the lower left corner of the box, X2,Y2 : the lower right corner of the box, X3,Y3 : the upper right corner of the box, X4,Y4 : the upper left corner of the box. Warning: the char bounding box is not rectangular when the Slant is != 0. The application can returns FALSE for skipping the char drawing. .
virtual Standard_EXPORT Standard_Boolean | SetCharEncoding (const Standard_CString anEncoding)
| Calls to defines the current char encoding. Warning: The application can returns FALSE for skipping the char drawing. .
virtual Standard_EXPORT Standard_Boolean | Moveto (const Quantity_Length X, const Quantity_Length Y)
| Calls to sets the current string position. The application can returns FALSE for skipping the char drawing. .
virtual Standard_EXPORT Standard_Boolean | Lineto (const Quantity_Length X, const Quantity_Length Y)
| Calls to drawn to the current string position. The application can returns FALSE for skipping the char drawing. .
virtual Standard_EXPORT Standard_Boolean | Curveto (const Quantity_Length X1, const Quantity_Length Y1, const Quantity_Length X2, const Quantity_Length Y2, const Quantity_Length X3, const Quantity_Length Y3, const Quantity_Length X4, const Quantity_Length Y4)
| Calls to drawn to the current string position. The application can drawn the curve defined by his descriptor P1,P2,P3,P4 or returns FALSE to let the interpretor compute the curve vectors. .
virtual Standard_EXPORT void | ClosePath ()
| Calls when a char path drawing is ended .
virtual Standard_EXPORT Standard_Boolean | EndChar (const Quantity_Length X, const Quantity_Length Y)
| Calls when a char drawing is ended and give the relative char ending position from the beginning of the string. The application can returns FALSE for skipping the string drawing. .
virtual Standard_EXPORT void | EndString ()
| Calls when string drawing is ended (Normally the last call). .
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Static Private Member Functions

static Standard_EXPORT void | MinMax (Quantity_Length &Xmin, Quantity_Length &Ymin, Quantity_Length &Xmax, Quantity_Length &Ymax)
| Returns the current drawn string min-max. .
static Standard_EXPORT Standard_CString | Encoding ()
| Returns the current drawn char encoding. .

## Constructor & Destructor Documentation

Standard_EXPORT MFT_TextManager::MFT_TextManager | ( |  | ) |

## Member Function Documentation

virtual Standard_EXPORT Standard_Boolean MFT_TextManager::BeginChar | ( | const Standard_Integer | aCharCode,
|  | const Quantity_Length | X,
|  | const Quantity_Length | Y
| ) | `[virtual]`

| Reimplemented in PlotMgt_TextManager, WNT_TextManager, and Xw_TextManager.

virtual Standard_EXPORT void MFT_TextManager::BeginString | ( | const Quantity_Length | X,
|  | const Quantity_Length | Y,
|  | const Quantity_PlaneAngle | anOrientation,
|  | const Quantity_Length | aWidth,
|  | const Quantity_Length | aHeight,
|  | const Quantity_PlaneAngle | aSlant,
|  | const Standard_Integer | aPaintType
| ) | `[virtual]`

| Reimplemented in PlotMgt_TextManager, WNT_TextManager, and Xw_TextManager.

virtual Standard_EXPORT void MFT_TextManager::ClosePath | ( |  | ) | `[virtual]`

| Reimplemented in PlotMgt_TextManager, WNT_TextManager, and Xw_TextManager.

virtual Standard_EXPORT Standard_Boolean MFT_TextManager::Curveto | ( | const Quantity_Length | X1,
|  | const Quantity_Length | Y1,
|  | const Quantity_Length | X2,
|  | const Quantity_Length | Y2,
|  | const Quantity_Length | X3,
|  | const Quantity_Length | Y3,
|  | const Quantity_Length | X4,
|  | const Quantity_Length | Y4
| ) | `[virtual]`

| Reimplemented in PlotMgt_TextManager, WNT_TextManager, and Xw_TextManager.

static Standard_EXPORT Standard_CString MFT_TextManager::Encoding | ( |  | ) | `[static, private]`

virtual Standard_EXPORT Standard_Boolean MFT_TextManager::EndChar | ( | const Quantity_Length | X,
|  | const Quantity_Length | Y
| ) | `[virtual]`

| Reimplemented in PlotMgt_TextManager, WNT_TextManager, and Xw_TextManager.

virtual Standard_EXPORT void MFT_TextManager::EndString | ( |  | ) | `[virtual]`

| Reimplemented in PlotMgt_TextManager, WNT_TextManager, and Xw_TextManager.

Standard_EXPORT const MFT_TextManager::Handle | ( | Standard_Type |  | ) | const

| Reimplemented in PlotMgt_TextManager, WNT_TextManager, and Xw_TextManager.

virtual Standard_EXPORT Standard_Boolean MFT_TextManager::Lineto | ( | const Quantity_Length | X,
|  | const Quantity_Length | Y
| ) | `[virtual]`

| Reimplemented in PlotMgt_TextManager, WNT_TextManager, and Xw_TextManager.

static Standard_EXPORT void MFT_TextManager::MinMax | ( | Quantity_Length & | Xmin,
|  | Quantity_Length & | Ymin,
|  | Quantity_Length & | Xmax,
|  | Quantity_Length & | Ymax
| ) | `[static, private]`

virtual Standard_EXPORT Standard_Boolean MFT_TextManager::Moveto | ( | const Quantity_Length | X,
|  | const Quantity_Length | Y
| ) | `[virtual]`

| Reimplemented in PlotMgt_TextManager, WNT_TextManager, and Xw_TextManager.

virtual Standard_EXPORT Standard_Boolean MFT_TextManager::SetCharBoundingBox | ( | const Quantity_Length | X1,
|  | const Quantity_Length | Y1,
|  | const Quantity_Length | X2,
|  | const Quantity_Length | Y2,
|  | const Quantity_Length | X3,
|  | const Quantity_Length | Y3,
|  | const Quantity_Length | X4,
|  | const Quantity_Length | Y4
| ) | `[virtual]`

| Reimplemented in PlotMgt_TextManager, WNT_TextManager, and Xw_TextManager.

virtual Standard_EXPORT Standard_Boolean MFT_TextManager::SetCharEncoding | ( | const Standard_CString | anEncoding | ) | `[virtual]`

| Reimplemented in PlotMgt_TextManager, WNT_TextManager, and Xw_TextManager.

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

- MFT_TextManager.hxx