Package that will be used to add graphics items to an existing scene. Note that the request to the UI must be send manually by providing this object (serialized) as the package.
More...
#include "GraphicsPackage.h"
Package that will be used to add graphics items to an existing scene. Note that the request to the UI must be send manually by providing this object (serialized) as the package.
◆ GraphicsScenePackage()
ot::GraphicsScenePackage::GraphicsScenePackage |
( |
const std::string & | _editorName = std::string() | ) |
|
◆ ~GraphicsScenePackage()
ot::GraphicsScenePackage::~GraphicsScenePackage |
( |
| ) |
|
|
virtual |
◆ addItem()
///
Takes over ownership.
◆ addToJsonObject()
Add the object contents to the provided JSON object.
- Parameters
-
_document | The JSON document (used to get the allocator) |
_object | The JSON object to add the contents to |
◆ items()
const std::list< GraphicsItemCfg * > & ot::GraphicsScenePackage::items |
( |
void | | ) |
const |
|
inline |
◆ name()
const std::string & ot::GraphicsScenePackage::name |
( |
void | | ) |
const |
|
inline |
◆ setFromJsonObject()
void ot::GraphicsScenePackage::setFromJsonObject |
( |
const ConstJsonObject & | _object | ) |
|
|
overridevirtual |
Will set the object contents from the provided JSON object.
- Parameters
-
_object | The JSON object containing the information |
- Exceptions
-
Will | throw an exception if the provided object is not valid (members missing or invalid types) |
Implements ot::Serializable.
◆ setName()
void ot::GraphicsScenePackage::setName |
( |
const std::string & | _name | ) |
|
|
inline |
The documentation for this class was generated from the following files: