12#define OT_FactoryKey_GraphicsGroupItem "OT_GIGroup"
34 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
45 const std::list<GraphicsItemCfg*>&
getItems(
void)
const {
return m_items; };
50 std::list<GraphicsItemCfg*> m_items;
#define OT_FactoryKey_GraphicsGroupItem
Definition GraphicsGroupItemCfg.h:12
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition GraphicsGroupItemCfg.h:18
void addItem(ot::GraphicsItemCfg *_item)
Will add the provided item to the group. The group takes ownership of the item.
Definition GraphicsGroupItemCfg.h:42
const std::list< GraphicsItemCfg * > & getItems(void) const
Returns a list with all items in the group.
Definition GraphicsGroupItemCfg.h:45
virtual std::string getFactoryKey(void) const override
Returns the key that is used to create an instance of this class in the simple factory.
Definition GraphicsGroupItemCfg.h:37
The GraphicsItemCfg is the base class for all graphics item configurations.
Definition GraphicsItemCfg.h:33
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30