13#define OT_FactoryKey_GraphicsImageItem "OT_GIImage"
33 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
38 void setImagePath(
const std::string& _path) { m_imageSubPath = _path; };
39 const std::string&
imagePath(
void)
const {
return m_imageSubPath; };
45 std::string m_imageSubPath;
46 bool m_maintainAspectRatio;
#define OT_FactoryKey_GraphicsImageItem
Definition GraphicsImageItemCfg.h:13
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
Definition GraphicsImageItemCfg.h:17
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 GraphicsImageItemCfg.h:36
void setImagePath(const std::string &_path)
Definition GraphicsImageItemCfg.h:38
void setMaintainAspectRatio(bool _active)
Definition GraphicsImageItemCfg.h:41
const std::string & imagePath(void) const
Definition GraphicsImageItemCfg.h:39
bool isMaintainAspectRatio(void) const
Definition GraphicsImageItemCfg.h:42
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