|
Maps SDK for C++ 1.0.0
|
Signpost image object. More...


Public Member Functions | |
| SignpostImage (const SignpostImage &)=default | |
| Default copy constructor. | |
| SignpostImage (SignpostImage &&)=default | |
| Default move constructor noexcept is deduced. | |
| SignpostImage & | operator= (const SignpostImage &si)=default |
| Default copy assignment. | |
| SignpostImage & | operator= (SignpostImage &&si)=default |
| Default move assignment noexcept is deduced. | |
| bool | operator== (const SignpostImage &img) const |
| Comparison operator equal. | |
| bool | operator!= (const SignpostImage &img) const |
| Comparison operator not equal. | |
| int | render (IAdjustableBitmap &bitmap, const SignpostImageRenderSettings &settings=SignpostImageRenderSettings()) const noexcept |
| Render the specified SignpostImage into the provided IAdjustableBitmap. | |
| DataBuffer | exportAs (const Size &size, int format, const SignpostImageRenderSettings &settings=SignpostImageRenderSettings()) const noexcept |
| Export image as a data buffer in the specified format. | |
| int | exportAs (const Size &size, int format, const String &path, const SignpostImageRenderSettings &settings=SignpostImageRenderSettings()) const noexcept |
| Export image to a file in the specified format. | |
| bool | operator== (const Image &img) const noexcept |
| Equal operator. | |
| unsigned | getType () const noexcept |
| Get the type of the image, see EImageType. | |
| unsigned | getUid () const noexcept |
| Get the unique ID of the image. | |
| int | render (IBitmap &bitmap) const noexcept |
| Render the Image into the provided IBitmap. | |
| Size | getSize () const noexcept |
| Get the preferred size of the image. | |
| SizeF | getAspectRatio () const noexcept |
| Get the icon aspect ratio as pair of ( width_aspect, height_aspect ). | |
| float | getAspectRatioF () const noexcept |
| Get the icon aspect ratio as a direct raport width / height. | |
| bool | isScalable () const noexcept |
| Check if icon is scalable ( i.e. | |
| bool | isValid () const noexcept |
| Check the validity of the Image. | |
| template<typename TSpecializedImage> | |
| TSpecializedImage & | cast () noexcept |
| Cast to specialized image. | |
| template<typename TSpecializedImage> | |
| const TSpecializedImage & | cast () const noexcept |
| Cast to const specialized image. | |
| DataBuffer | exportAs (const Size &size, int format) const noexcept |
| Export image as a data buffer in the specified format. | |
| int | exportAs (const Size &size, int format, const String &path) const noexcept |
| Export image to a file in the specified format. | |
Protected Member Functions | |
| template<typename ... TArgs> | |
| StrongPointer< IBitmap > | renderTo (const Size &size, TArgs &&... args) const noexcept |
| Render the Image into a new IBitmap of the specified size, using the provided additional arguments if needed. | |
| template<typename ... TArgs> | |
| DataBuffer | exportTo (const Size &size, int format, TArgs &&... args) const noexcept |
| Export image to a data buffer or file in the specified format, using the provided additional arguments if needed. | |
| template<typename ... TArgs> | |
| int | exportTo (const Size &size, int format, const String &path, TArgs &&... args) const noexcept |
| Export image to a file in the specified format, using the provided additional arguments if needed. | |
Signpost image object.
|
inlinenoexceptinherited |
Cast to const specialized image.
|
inlinenoexceptinherited |
Cast to specialized image.
|
inlinenoexceptinherited |
Export image as a data buffer in the specified format.
| [in] | size | The exported image size in pixels |
| [in] | format | The exported image format, see EImageFileFormat |
|
inlinenoexceptinherited |
Export image to a file in the specified format.
| [in] | size | The exported image size in pixels |
| [in] | format | The exported image format, see EImageFileFormat |
| [in] | path | The file path where to save the image |
|
inlinenoexcept |
Export image as a data buffer in the specified format.
| [in] | size | The exported image size in pixels |
| [in] | format | The exported image format, see EImageFileFormat |
| [in] | settings | Settings of signpost image render. |
|
inlinenoexcept |
Export image to a file in the specified format.
| [in] | size | The exported image size in pixels |
| [in] | format | The exported image format, see EImageFileFormat |
| [in] | path | The file path where to save the image |
| [in] | settings | Settings of signpost image render. |
|
inlineprotectednoexceptinherited |
Export image to a file in the specified format, using the provided additional arguments if needed.
| [in] | size | The exported image size in pixels |
| [in] | format | The exported image format, see EImageFileFormat |
| [in] | path | The file path where to save the image |
| [in] | args | Additional arguments to be forwarded to the Render function, if needed by the specific image type |
|
inlineprotectednoexceptinherited |
Export image to a data buffer or file in the specified format, using the provided additional arguments if needed.
| [in] | size | The exported image size in pixels |
| [in] | format | The exported image format, see EImageFileFormat |
| [in] | args | Additional arguments to be forwarded to the Render function, if needed by the specific image type |
|
inlinenoexceptinherited |
Get the icon aspect ratio as pair of ( width_aspect, height_aspect ).
If width > height return { width / height, 1.f ) If width < height return { 1.f, height / width )
|
inlinenoexceptinherited |
Get the icon aspect ratio as a direct raport width / height.
|
inlinenoexceptinherited |
Get the preferred size of the image.
|
inlinenoexceptinherited |
Get the type of the image, see EImageType.
|
inlinenoexceptinherited |
Get the unique ID of the image.
|
inlinenoexceptinherited |
Check if icon is scalable ( i.e.
it has vectorial format )
|
inlinenoexceptinherited |
Check the validity of the Image.
|
inline |
Comparison operator not equal.
| img | Other image |
|
default |
Default copy assignment.
| si | Other image |
|
default |
Default move assignment noexcept is deduced.
| si | Other image |
|
inlinenoexceptinherited |
Equal operator.
| img | Other image. |
|
inline |
Comparison operator equal.
| img | Other image |
|
inlinenoexceptinherited |
|
inlinenoexcept |
Render the specified SignpostImage into the provided IAdjustableBitmap.
The function will request the bitmap to be adjusted to a specified size in order to get an optimal signpost view
| bitmap | Bitmap to render into. |
| settings | Settings of signpost image render. |
|
inlineprotectednoexceptinherited |
Render the Image into a new IBitmap of the specified size, using the provided additional arguments if needed.
| [in] | size | The size of the bitmap to render into |
| [in] | args | Additional arguments to be forwarded to the Render function, if needed by the specific image type |