Open CASCADE Technology
6.5.4
|
#include <WNT_TextManager.hxx>
Public Member Functions | |
WNT_TextManager (const Standard_Real aPixelToUnit) | |
virtual 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_Boolean | BeginChar (const Standard_Integer aCharCode, const Quantity_Length X, const Quantity_Length Y) |
Calls when a char drawing is started and give the current string position for this char. and give the relative char position from the beginning of the string. The application can returns FALSE for skipping the char drawing. | |
virtual 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. The application can returns FALSE for ending the char drawing. | |
virtual 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_Boolean | Moveto (const Quantity_Length X, const Quantity_Length Y) |
Calls to sets the current string position. The application can returns FALSE for ending the char drawing. | |
virtual 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 ending the char drawing. | |
virtual 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 void | ClosePath () |
Calls when a char path drawing is ended | |
virtual 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 void | EndString () |
Calls when string drawing is ended (Normally the last call). | |
void | SetDrawAttribs (const Standard_Address aDrawData) |
Called when starting to draw the string | |
void | SetTextAttribs (const Standard_Integer aTextColor, const Aspect_TypeOfText aTypeOfText, const Quantity_Length anUnderlinePosition=0.0) |
Sets the current attribs of the text. |
WNT_TextManager::WNT_TextManager | ( | const Standard_Real | aPixelToUnit | ) |
virtual Standard_Boolean WNT_TextManager::BeginChar | ( | const Standard_Integer | aCharCode, |
const Quantity_Length | X, | ||
const Quantity_Length | Y | ||
) | [virtual] |
Reimplemented from MFT_TextManager.
virtual void WNT_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 from MFT_TextManager.
virtual void WNT_TextManager::ClosePath | ( | ) | [virtual] |
Reimplemented from MFT_TextManager.
virtual Standard_Boolean WNT_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 from MFT_TextManager.
virtual Standard_Boolean WNT_TextManager::EndChar | ( | const Quantity_Length | X, |
const Quantity_Length | Y | ||
) | [virtual] |
Reimplemented from MFT_TextManager.
virtual void WNT_TextManager::EndString | ( | ) | [virtual] |
Reimplemented from MFT_TextManager.
virtual Standard_Boolean WNT_TextManager::Lineto | ( | const Quantity_Length | X, |
const Quantity_Length | Y | ||
) | [virtual] |
Reimplemented from MFT_TextManager.
virtual Standard_Boolean WNT_TextManager::Moveto | ( | const Quantity_Length | X, |
const Quantity_Length | Y | ||
) | [virtual] |
Reimplemented from MFT_TextManager.
virtual Standard_Boolean WNT_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 from MFT_TextManager.
virtual Standard_Boolean WNT_TextManager::SetCharEncoding | ( | const Standard_CString | anEncoding | ) | [virtual] |
Reimplemented from MFT_TextManager.
void WNT_TextManager::SetDrawAttribs | ( | const Standard_Address | aDrawData | ) |
void WNT_TextManager::SetTextAttribs | ( | const Standard_Integer | aTextColor, |
const Aspect_TypeOfText | aTypeOfText, | ||
const Quantity_Length | anUnderlinePosition = 0.0 |
||
) |