|
C3D Toolkit
Kernel - 118072, Vision - 2.18.1.1852
|
Interface for configuring special PMI character conversion. More...
#include <conv_pmi_symbols_transformer.h>
Inheritance diagram for c3d::IPMISpecialSymbolsTransformer:
Collaboration diagram for c3d::IPMISpecialSymbolsTransformer:Public Member Functions | |
| virtual bool | Transform (const c3d::string_t &input, c3d::string_t &output) const =0 |
| Convert a sequence of special characters. More... | |
| virtual c3d::string_t | GetFontName () const =0 |
| Get the font name. The font is specified in the MbTextItem for which character conversion is being performed. | |
Public Member Functions inherited from MbRefItem | |
| virtual MbeRefType | RefType () const |
| Registration type (for copying, duplication). | |
| void | AddRegistrator (MbRegDuplicate *reg) const |
| Add the register. | |
| void | RemoveRegistrator (MbRegDuplicate *reg) const |
| Remove the register. | |
| refcount_t | GetUseCount () const |
| Get count of references (get count of owners of an object). | |
| refcount_t | AddRef () const |
| Increase count of references by one. | |
| refcount_t | DecRef () const |
| Decrease count of references by one. | |
| refcount_t | Release () const |
| Decrease count of references by one and if count of references became zero, then remove itself. | |
Additional Inherited Members | |
Protected Member Functions inherited from MbRefItem | |
| MbRefItem () | |
| Constructor without parameters. | |
Interface for configuring special PMI character conversion.
This class enables the conversion of source character sequences from CAD systems into user-defined strings. To configure the conversion, one must use an existing implementation of IPMISpecialSymbolsTransformer or add a new one. A custom implementation of IPMISpecialSymbolsTransformer requires specifying a font for the converted text elements, as well as rules for converting strings from the source sequences to the target font. Conversion rules are passed as an argument to the TransformPmiSymbol() function in the form of character mappings. The special character sequences subject to conversion vary across CAD systems, but they are delimited by the c3dPmiSym_OpenSequence and c3dPmiSym_CloseSequence codes.