|
Maps SDK for C++ 1.0.0
|
AbstractGeometryImage object. More...


Public Member Functions | |
| AbstractGeometryImage (const AbstractGeometryImage &)=default | |
| Default copy constructor. | |
| AbstractGeometryImage (AbstractGeometryImage &&)=default | |
| Default move constructor noexcept is deduced. | |
| AbstractGeometryImage & | operator= (const AbstractGeometryImage &image)=default |
| Default copy assignment. | |
| AbstractGeometryImage & | operator= (AbstractGeometryImage &&image)=default |
| Default move assignment noexcept is deduced. | |
| bool | operator== (const AbstractGeometryImage &img) const |
| Comparison operator. | |
| bool | operator!= (const AbstractGeometryImage &img) const |
| Comparison operator not equal. | |
| int | render (IBitmap &bitmap, const AbstractGeometryImageRenderSettings &settings) const noexcept |
| Render the specified AbstractGeometryImage into the provided IBitmap. | |
| DataBuffer | exportAs (const Size &size, int format, const AbstractGeometryImageRenderSettings &settings) const noexcept |
| Export image as a data buffer in the specified format. | |
| int | exportAs (const Size &size, int format, const String &path, const AbstractGeometryImageRenderSettings &settings) 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. | |
AbstractGeometryImage object.
|
inlinenoexceptinherited |
Cast to const specialized image.
|
inlinenoexceptinherited |
Cast to specialized 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 abstract geometry 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 abstract geometry image render. |
|
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 |
|
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 move assignment noexcept is deduced.
| image | Other image |
|
default |
Default copy assignment.
| image | Other image |
|
inline |
Comparison operator.
| img | Other image |
|
inlinenoexceptinherited |
Equal operator.
| img | Other image. |
|
inlinenoexcept |
Render the specified AbstractGeometryImage into the provided IBitmap.
| bitmap | Bitmap to render into. |
| settings | Settings of abstract geometry image render. |
|
inlinenoexceptinherited |
|
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 |