OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Connection Class Reference

#include "Connection.h"

Inheritance diagram for Connection:
ot::GraphicsConnectionCfg ot::Serializable

Public Member Functions

 Connection ()
 
virtual ~Connection ()
 
 Connection (const GraphicsConnectionCfg &obj)
 
void setNodeNumber (std::string num)
 
std::string getNodeNumber ()
 
- Public Member Functions inherited from ot::GraphicsConnectionCfg
 GraphicsConnectionCfg ()
 
 GraphicsConnectionCfg (const ot::UID &_originUid, const std::string &_originConnectableName, const ot::UID &_destinationUid, const std::string &_destinationName)
 
 GraphicsConnectionCfg (const GraphicsConnectionCfg &_other)
 
virtual ~GraphicsConnectionCfg ()
 
GraphicsConnectionCfgoperator= (const GraphicsConnectionCfg &_other)
 
bool operator== (const GraphicsConnectionCfg &_other) const
 
virtual void addToJsonObject (JsonValue &_object, JsonAllocator &_allocator) const override
 Add the object contents to the provided JSON object.
 
virtual void setFromJsonObject (const ConstJsonObject &_object) override
 Will set the object contents from the provided JSON object.
 
GraphicsConnectionCfg getReversedConnection (void) const
 Create a copy of this connection but the origin an destination are swapped.
 
void setOriginUid (const ot::UID &_uid)
 
const ot::UIDgetOriginUid (void) const
 
void setOriginConnectable (const std::string &_name)
 
const std::string & getOriginConnectable (void) const
 
void setDestUid (const ot::UID &_uid)
 
const ot::UIDgetDestinationUid (void) const
 
void setDestConnectable (const std::string &_name)
 
const std::string & getDestConnectable (void) const
 
void setUid (const ot::UID &_uid)
 
const ot::UIDgetUid (void) const
 
void setLineShape (ConnectionShape _shape)
 
ConnectionShape getLineShape (void) const
 
void setLineWidth (double _width)
 
double getLineWidth (void) const
 
void setLineColor (const ot::Color &_color)
 
void setLinePainter (ot::Painter2D *_painter)
 Set the line painter. The item takes ownership of the painter.
 
const ot::Painter2DgetLinePainter (void) const
 Returns the current painter. The item keeps ownership of the painter.
 
void setLineStyle (LineStyle _style)
 
void setLineStyle (const OutlineF &_style)
 
const OutlineFgetLineStyle (void) const
 
std::string createConnectionKey (void) const
 
std::string createConnectionKeyReverse (void) const
 
void setHandlesState (bool _handleState)
 
bool getHandleState (void) const
 
- Public Member Functions inherited from ot::Serializable
 Serializable ()
 
virtual ~Serializable ()
 
virtual void addToJsonObject (ot::JsonValue &_object, ot::JsonAllocator &_allocator) const =0
 Add the object contents to the provided JSON object.
 

Additional Inherited Members

- Public Types inherited from ot::GraphicsConnectionCfg
enum class  ConnectionShape {
  DirectLine , SmoothLine , XYLine , YXLine ,
  AutoXYLine
}
 
- Static Public Member Functions inherited from ot::GraphicsConnectionCfg
static std::string shapeToString (ConnectionShape _shape)
 
static ConnectionShape stringToShape (const std::string _shape)
 

Constructor & Destructor Documentation

◆ Connection() [1/2]

Connection::Connection ( )

◆ ~Connection()

Connection::~Connection ( )
virtual

◆ Connection() [2/2]

Connection::Connection ( const GraphicsConnectionCfg & obj)

Member Function Documentation

◆ getNodeNumber()

std::string Connection::getNodeNumber ( )
inline

◆ setNodeNumber()

void Connection::setNodeNumber ( std::string num)
inline

The documentation for this class was generated from the following files: