18#pragma warning(disable:4251)
32 static std::string shapeToString(ConnectionShape _shape);
33 static ConnectionShape stringToShape(
const std::string _shape);
51 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
74 void setLineWidth(
double _width) { m_lineStyle.setWidth(_width); };
91 std::string createConnectionKey(
void)
const;
92 std::string createConnectionKeyReverse(
void)
const;
99 std::string m_originConnectable;
102 std::string m_destConnectable;
106 ConnectionShape m_lineShape;
bool operator==(const FaceSelection &left, const FaceSelection &right)
Definition Model.cpp:55
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
The Color class is used to represent RGBA colors with integer values.
Definition Color.h:72
Definition GraphicsConnectionCfg.h:22
const ot::UID & getOriginUid(void) const
Definition GraphicsConnectionCfg.h:57
const ot::UID & getUid(void) const
Definition GraphicsConnectionCfg.h:69
void setOriginConnectable(const std::string &_name)
Definition GraphicsConnectionCfg.h:59
void setDestUid(const ot::UID &_uid)
Definition GraphicsConnectionCfg.h:62
void setUid(const ot::UID &_uid)
Definition GraphicsConnectionCfg.h:68
const std::string & getDestConnectable(void) const
Definition GraphicsConnectionCfg.h:66
const OutlineF & getLineStyle(void) const
Definition GraphicsConnectionCfg.h:89
void setLineStyle(const OutlineF &_style)
Definition GraphicsConnectionCfg.h:88
void setOriginUid(const ot::UID &_uid)
Definition GraphicsConnectionCfg.h:56
void setLineStyle(LineStyle _style)
Definition GraphicsConnectionCfg.h:87
bool getHandleState(void) const
Definition GraphicsConnectionCfg.h:95
double getLineWidth(void) const
Definition GraphicsConnectionCfg.h:75
ConnectionShape getLineShape(void) const
Definition GraphicsConnectionCfg.h:72
ConnectionShape
Definition GraphicsConnectionCfg.h:24
void setLineColor(const ot::Color &_color)
Definition GraphicsConnectionCfg.h:77
void setDestConnectable(const std::string &_name)
Definition GraphicsConnectionCfg.h:65
const ot::UID & getDestinationUid(void) const
Definition GraphicsConnectionCfg.h:63
const std::string & getOriginConnectable(void) const
Definition GraphicsConnectionCfg.h:60
const ot::Painter2D * getLinePainter(void) const
Returns the current painter. The item keeps ownership of the painter.
Definition GraphicsConnectionCfg.h:85
void setLineShape(ConnectionShape _shape)
Definition GraphicsConnectionCfg.h:71
void setLineWidth(double _width)
Definition GraphicsConnectionCfg.h:74
void setHandlesState(bool _handleState)
Definition GraphicsConnectionCfg.h:94
void setLinePainter(ot::Painter2D *_painter)
Set the line painter. The item takes ownership of the painter.
Definition GraphicsConnectionCfg.h:81
The OutlineF class is used to describe how a outline should look like.
Definition Outline.h:161
Definition Painter2D.h:17
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27
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
LineStyle
Line style.
Definition Outline.h:19