|
scenepic 1.1.0
3D Visualization Made Easy
|
A ScenePic Image type. More...
#include <image.h>
Public Member Functions | |
| void | load (const std::string &path) |
| Load an image file from the disk. More... | |
| std::string | to_string () const |
| Return a JSON string representing the object. More... | |
| JsonValue | to_json () const |
| Convert this object into ScenePic json. More... | |
| const std::string & | image_id () const |
| A unique identifier for the image. More... | |
| const std::vector< std::uint8_t > & | data () const |
| The encoded binary image data. More... | |
| std::vector< std::uint8_t > & | data () |
| The encoded binary image data. More... | |
| Image & | data (const std::vector< std::uint8_t > &value) |
| The encoded binary image data. More... | |
| const std::string & | ext () const |
| The extension of the image (e.g. More... | |
| Image & | ext (const std::string &value) |
| The extension of the image (e.g. More... | |
Friends | |
| class | Scene |
A ScenePic Image type.
| std::vector< std::uint8_t > & scenepic::Image::data | ( | ) |
The encoded binary image data.
| const std::vector< std::uint8_t > & scenepic::Image::data | ( | ) | const |
The encoded binary image data.
| Image & scenepic::Image::data | ( | const std::vector< std::uint8_t > & | value | ) |
The encoded binary image data.
| const std::string & scenepic::Image::ext | ( | ) | const |
The extension of the image (e.g.
JPG, PNG)
| Image & scenepic::Image::ext | ( | const std::string & | value | ) |
The extension of the image (e.g.
JPG, PNG)
| const std::string & scenepic::Image::image_id | ( | ) | const |
A unique identifier for the image.
| void scenepic::Image::load | ( | const std::string & | path | ) |
Load an image file from the disk.
| path | the path to the image file |
| JsonValue scenepic::Image::to_json | ( | ) | const |
Convert this object into ScenePic json.
| std::string scenepic::Image::to_string | ( | ) | const |
Return a JSON string representing the object.
|
friend |