The VisualAsset class manages visual assets like images for rendering and manipulation.
More...
#include <VisualAsset.h>
|
|
std::string | id |
| | The identifier for the visual asset.
|
| |
|
cv::Mat4b | content |
| | The image content of the visual asset.
|
| |
|
bool | isActive = true |
| | Flag to indicate if the visual asset is active.
|
| |
The VisualAsset class manages visual assets like images for rendering and manipulation.
This class is responsible for loading, manipulating, and drawing images using OpenCV functionalities.
◆ drawOnImage()
| void visualization::VisualAsset::drawOnImage |
( |
cv::Mat & |
dstImage, |
|
|
cv::Rect |
dstArea, |
|
|
double |
scale = 1.0, |
|
|
double |
rotation = 0.0 |
|
) |
| |
Draws the loaded image onto another image.
- Parameters
-
| dstImage | The destination image to draw onto. |
| dstArea | The area on the destination image to draw the asset. |
| scale | Scaling factor for the asset. |
| rotation | Rotation angle for the asset in degrees. |
◆ load() [1/2]
| void visualization::VisualAsset::load |
( |
std::string |
imagePath | ) |
|
Loads an image from a file path.
- Parameters
-
| imagePath | The path to the image file. |
◆ load() [2/2]
| void visualization::VisualAsset::load |
( |
std::vector< uchar > |
imageContainer | ) |
|
Loads an image from a memory buffer.
- Parameters
-
| imageContainer | A vector of unsigned chars representing the image data. |
The documentation for this class was generated from the following files:
- C:/Projects/Engine/AntalEngine/Engine/VisualAsset.h
- C:/Projects/Engine/AntalEngine/Engine/VisualAsset.cpp