![]() |
FLImaging 7.6.11.1
|
A class that converts strings to Figure. More...
#include <Stencil.h>
Public Member Functions | |
| CStencil () | |
| Default constructor. | |
| CStencil (const CStencil &st) | |
| Copy constructor. | |
| CStencil (const CStencil *pSt) | |
| Copy constructor. | |
| virtual | ~CStencil () |
| Default destructor. | |
| virtual const CResult | Assign (const CStencil &st) |
| Assigns a copy of the specified CStencil object to this object. | |
| virtual const CResult | Assign (const CStencil *pSt) |
| Assigns a copy of the specified CStencil object to this object. | |
| const CStencil & | operator= (const CStencil &st) |
| Assignment operator. | |
| virtual const CResult | LoadFont (const Base::CFLString< wchar_t > &strFontName) |
| virtual const CResult | LoadFontByPath (const Base::CFLString< wchar_t > &strFilePath, const Base::CFLString< wchar_t > &strFontName) |
| virtual const CResult | SelectFont (const Base::CFLString< wchar_t > &strFontName) |
| virtual const CResult | GetSelectedFontName (Base::CFLString< wchar_t > &strFontName) |
| virtual const CResult | Clear () |
| Clears the object and releases all loaded fonts. | |
| virtual const CResult | ClearFont (const Base::CFLString< wchar_t > &strFontName) |
| Removes the specified font from the list of loaded fonts. | |
| virtual bool | IsLoaded () const |
| virtual bool | IsLoaded (const Base::CFLString< wchar_t > &strFontName) const |
| virtual bool | IsLoadedByPath (const Base::CFLString< wchar_t > &strFilePath, const Base::CFLString< wchar_t > &strFontName) const |
| const CResult | SetLineSpacing (float f32LineSpacing) |
| Sets the line spacing as a multiplier. If set to 0, there is no spacing between lines. If set to 1, the spacing between lines is equal to the font size. | |
| float | GetLineSpacing () const |
| Returns the line spacing multiplier. | |
| const CResult | SetLetterSpacing (float f32LetterSpacing) |
| Sets the spacing between characters as a multiplier. If set to 0, there is no spacing between characters. If set to 1, the spacing between characters is equal to the font size. | |
| float | GetLetterSpacing () const |
| Returns the character spacing multiplier. | |
| const CResult | SetLetterWidth (float f32LetterWidth) |
| Sets the character width as a multiplier. | |
| float | GetLetterWidth () const |
| Returns the character width multiplier. | |
| const CResult | SetFontSize (float f32FontSize) |
| Sets the font size. | |
| float | GetFontSize () const |
| Returns the font size. | |
| const CResult | ConvertStringToFigure (const Base::CFLString< char > &str, Foundation::CFLFigureArray *pFigureArray) const |
| Converts a string into Figure objects. | |
| const CResult | ConvertStringToFigure (const Base::CFLString< char > &str, Foundation::CFLFigureArray &figureArray) const |
| Converts a string into Figure objects. | |
| const CResult | ConvertStringToFigure (const Base::CFLString< wchar_t > &str, Foundation::CFLFigureArray *pFigureArray) const |
| Converts a string into Figure objects. | |
| const CResult | ConvertStringToFigure (const Base::CFLString< wchar_t > &str, Foundation::CFLFigureArray &figureArray) const |
| Converts a string into Figure objects. | |
| Base::CFLString< wchar_t > | GetFontFaceName () const |
| Returns the face name of the loaded font. | |
| virtual bool | IsLicenseAvailable () const override |
| Returns whether the algorithm can be used with the current license. | |
| Public Member Functions inherited from FLImaging::Base::CFLBase | |
| CFLBase () | |
| Default constructor. | |
| virtual | ~CFLBase () |
| Destructor. | |
| void | Lock () const |
| Set a lock on an object. | |
| bool | TryLock () const |
| Try to lock the object. | |
| void | Unlock () const |
| Unlock the object. | |
| virtual const CProcessingUnitBase * | GetProcessingUnit () const |
| Returns the set ProcessingUnit. | |
| virtual const CResult | SetProcessingUnit (const CProcessingUnitBase &pub) |
| set the ProcessingUnit | |
| virtual const CResult | SetProcessingUnit (const CProcessingUnitBase *pPub) |
| Set the ProcessingUnit. | |
| virtual void | ResetProcessingUnit () |
| Rest the ProcessingUnit. | |
| virtual bool | IsValid () const |
| Validate the object. | |
| template<class T> | |
| bool | IsValid (T &tValue) const |
| Validate input values. | |
| template<class T> | |
| bool | IsValid (T *pTValue) const |
| Validate input values. | |
| template<class T> | |
| void | GenerateMin (T &tValue) const |
| Generate the minimum value of that type. | |
| template<class T> | |
| void | GenerateMin (T *pTValue) const |
| Generate the minimum value of that type. | |
| template<class T> | |
| void | GenerateMinInt32 (T &tValue) const |
| Generate minimum signed 32-bit integer value. | |
| template<class T> | |
| void | GenerateMinInt32 (T *pTValue) const |
| Generate minimum signed 32-bit integer value. | |
| template<class T> | |
| void | GenerateMinInt31 (T &tValue) const |
| Generate minimum signed 31-bit integer value. | |
| template<class T> | |
| void | GenerateMinInt31 (T *pTValue) const |
| Generate minimum signed 31-bit integer value. | |
| template<class T> | |
| void | GenerateMax (T &tValue) const |
| Generate the maximum value of that type. | |
| template<class T> | |
| void | GenerateMax (T *pTValue) const |
| Generate the maximum value of that type. | |
| template<class T> | |
| void | GenerateMaxInt32 (T &tValue) const |
| Generate maximum signed 32-bit integer value. | |
| template<class T> | |
| void | GenerateMaxInt32 (T *pTValue) const |
| Generate maximum signed 32-bit integer value. | |
| template<class T> | |
| void | GenerateMaxInt31 (T &tValue) const |
| Generate maximum signed 31-bit integer value. | |
| template<class T> | |
| void | GenerateMaxInt31 (T *pTValue) const |
| Generate maximum signed 31-bit integer value. | |
| template<class T> | |
| void | GenerateInvalid (T &tValue) const |
| Generate invalid value. | |
| template<class T> | |
| void | GenerateInvalid (T *pTValue) const |
| Generate invalid value. | |
| virtual void | OnReceiveBroadcast (const CBroadcastMessage *pMessage) |
| Callback function. A function that receives a BroadcastMessage. | |
| virtual int64_t | GetClassType () const =0 |
| Returns the Type value of Class. The returned value itself has no meaning, but if it is the same type of class, the same value will be displayed, so comparison is possible. | |
| const char * | GetClassNameWithNamespace () const |
| Returns the class name including the namespace of the actual instance. | |
| const char * | GetClassNameWithoutNamespace () const |
| Returns the class name that does not include the namespace of the actual instance. | |
| virtual uint32_t | GetClassHash () const |
| Returns the class hash value of the actual instance. For the same class, even if the instance is different, it has the same value. | |
| const CResult | ShareSynchronizationObject (const CFLBase *pSrcObject) const |
| Share synchronization object of original object. | |
| bool | IsSharedSynchronizationObject () const |
| Is shared synchronization object. | |
| virtual void | Throw (const CResult &res, const wchar_t *pWcsExtraMessage=nullptr) const |
| Raise an exception. Information and error codes of the object that occurred are recorded in the log. | |
| virtual void | Throw (const std::exception &res, const wchar_t *pWcsExtraMessage) const |
| Raise an exception. Information and error codes of the object that occurred are recorded in the log. | |
A class that converts strings to Figure.
| FLImaging::Foundation::CStencil::CStencil | ( | const CStencil & | st | ) |
Copy constructor.
| [in] | st | Creates a new object by copying the parameters of the specified object. |
| FLImaging::Foundation::CStencil::CStencil | ( | const CStencil * | pSt | ) |
Copy constructor.
| [in] | pSt | Creates a new object by copying the parameters of the specified object. |
Assigns a copy of the specified CStencil object to this object.
| [in] | st | CStencil object to copy. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
Assigns a copy of the specified CStencil object to this object.
| [in] | pSt | Pointer to the CStencil object to copy. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
|
virtual |
Clears the object and releases all loaded fonts.
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
|
virtual |
Removes the specified font from the list of loaded fonts.
| [in] | strFontName | Name of the font to remove. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
| const CResult FLImaging::Foundation::CStencil::ConvertStringToFigure | ( | const Base::CFLString< char > & | str, |
| Foundation::CFLFigureArray & | figureArray ) const |
Converts a string into Figure objects.
| [in] | str | String to convert. |
| [out] | figureArray | Receives the converted Figure objects. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
| const CResult FLImaging::Foundation::CStencil::ConvertStringToFigure | ( | const Base::CFLString< char > & | str, |
| Foundation::CFLFigureArray * | pFigureArray ) const |
Converts a string into Figure objects.
| [in] | str | String to convert. |
| [in] | pFigureArray | Pointer to receive the converted Figure objects. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
| const CResult FLImaging::Foundation::CStencil::ConvertStringToFigure | ( | const Base::CFLString< wchar_t > & | str, |
| Foundation::CFLFigureArray & | figureArray ) const |
Converts a string into Figure objects.
| [in] | str | String to convert. |
| [out] | figureArray | Receives the converted Figure objects. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
| const CResult FLImaging::Foundation::CStencil::ConvertStringToFigure | ( | const Base::CFLString< wchar_t > & | str, |
| Foundation::CFLFigureArray * | pFigureArray ) const |
Converts a string into Figure objects.
| [in] | str | String to convert. |
| [in] | pFigureArray | Pointer to receive the converted Figure objects. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
| Base::CFLString< wchar_t > FLImaging::Foundation::CStencil::GetFontFaceName | ( | ) | const |
Returns the face name of the loaded font.
| FLImaging::Base::CFLString<wchar_t> | Font face name. |
| float FLImaging::Foundation::CStencil::GetFontSize | ( | ) | const |
Returns the font size.
| float | Font size. |
| float FLImaging::Foundation::CStencil::GetLetterSpacing | ( | ) | const |
Returns the character spacing multiplier.
| float | Character spacing (unit: multiplier). |
| float FLImaging::Foundation::CStencil::GetLetterWidth | ( | ) | const |
Returns the character width multiplier.
| float | Character width (unit: multiplier). |
| float FLImaging::Foundation::CStencil::GetLineSpacing | ( | ) | const |
Returns the line spacing multiplier.
| float | Line spacing (unit: multiplier). |
|
virtual |
Retrieves the name of the currently selected font.
| [out] | strFontName | Receives the name of the currently selected font. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
|
overridevirtual |
Returns whether the algorithm can be used with the current license.
| bool | License availability |
Reimplemented from FLImaging::Base::CFLBase.
|
virtual |
Returns whether one or more fonts are loaded.
| bool | Returns true if one or more fonts are loaded; otherwise, false. |
|
virtual |
Returns whether the specified font is loaded.
| [in] | strFontName | Name of the font to check. |
| bool | Returns true if the specified font is loaded; otherwise, false. |
|
virtual |
Returns whether a font loaded from the specified path and font name exists.
| [in] | strFilePath | File path to check. |
| [in] | strFontName | Font name to check. |
| bool | Returns true if a loaded font matching the specified path and font name exists; otherwise, false. |
|
virtual |
Loads a font. Once loaded, the font remains loaded in the object until the Clear() function is called.
| [in] | strFontName | Font name. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
|
virtual |
Loads a .TTF (TrueType Font) file. Once loaded, the font remains loaded in the object until the Clear() function is called.
| [in] | strFilePath | Path of the font file to load. |
| [in] | strFontName | Font name. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
Assignment operator.
| [in] | st | CStencil object to assign. |
| const | CStencil& Reference to this object. |
|
virtual |
Selects a preloaded font. If the font specified by the given name has not been loaded yet, it is loaded internally and then selected.
| [in] | strFontName | Font name. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
| const CResult FLImaging::Foundation::CStencil::SetFontSize | ( | float | f32FontSize | ) |
Sets the font size.
| [in] | f32FontSize | Font size. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
| const CResult FLImaging::Foundation::CStencil::SetLetterSpacing | ( | float | f32LetterSpacing | ) |
Sets the spacing between characters as a multiplier. If set to 0, there is no spacing between characters. If set to 1, the spacing between characters is equal to the font size.
| [in] | f32LetterSpacing | Character spacing (unit: multiplier). |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
| const CResult FLImaging::Foundation::CStencil::SetLetterWidth | ( | float | f32LetterWidth | ) |
Sets the character width as a multiplier.
| [in] | f32LetterWidth | Character width. A value of 1 uses the original character width. A value of 0.7 renders characters at 70% of their original width. |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |
| const CResult FLImaging::Foundation::CStencil::SetLineSpacing | ( | float | f32LineSpacing | ) |
Sets the line spacing as a multiplier. If set to 0, there is no spacing between lines. If set to 1, the spacing between lines is equal to the font size.
| [in] | f32LineSpacing | Line spacing (unit: multiplier). |
| const | FLImaging::CResult Result of the function execution (EResult_OK on success) |