Builder which takes images
as input to create an IIcon.
More...
#include <luciad/drawing/ImageIcon.h>
Builder which takes images
as input to create an IIcon.
- Since
- 2023.1
◆ Builder() [1/2]
luciad::ImageIcon::Builder::Builder |
( |
const Builder & |
other | ) |
|
◆ Builder() [2/2]
luciad::ImageIcon::Builder::Builder |
( |
Builder && |
other | ) |
|
|
noexcept |
◆ ~Builder()
luciad::ImageIcon::Builder::~Builder |
( |
| ) |
|
◆ addImage() [1/2]
Builder & luciad::ImageIcon::Builder::addImage |
( |
const std::shared_ptr< luciad::Image > & |
image, |
|
|
double |
anchorX, |
|
|
double |
anchorY, |
|
|
double |
displayScale |
|
) |
| |
Adds an Image to the icon builder.
When an image is already provided for a given display scale the last call overrides the previous image.
- Parameters
-
image | The image. Cannot be nullptr . |
anchorX | The x coordinate of the anchor point in pixels. This must be a value in the [0, getWidth()] range. |
anchorY | The y coordinate of the anchor point in pixels. This must be a value in the [0, getHeight()] range. |
displayScale | The display scale factor for the image. Must be > 0. |
- Returns
- this builder.
- Exceptions
-
- See also
- IIconPainter
◆ addImage() [2/2]
Builder & luciad::ImageIcon::Builder::addImage |
( |
const std::shared_ptr< luciad::Image > & |
image, |
|
|
double |
displayScale |
|
) |
| |
Adds an Image to the icon builder.
The anchor point is place at the center of the image.
When an image is already provided for a given display scale the last call overrides the previous image.
- Parameters
-
image | The image. Cannot be nullptr . |
displayScale | The display scale factor for the image. Must be > 0. |
- Returns
- this builder.
- Exceptions
-
◆ build()
std::shared_ptr< IIcon > luciad::ImageIcon::Builder::build |
( |
| ) |
|
Returns the IIcon based on the provided images.
- Returns
- the IIcon based on the provided images.
- Exceptions
-
◆ operator=()