FlowCanvas 0.7.1
Public Types | Public Member Functions | Protected Attributes | List of all members
FlowCanvas::Connectable Class Referenceabstract

An object a Connection can connect to. More...

#include <Connectable.hpp>

Inheritance diagram for FlowCanvas::Connectable:
Inheritance graph
[legend]

Public Types

typedef std::list< boost::weak_ptr< Connection > > Connections
 

Public Member Functions

virtual ~Connectable ()
 
virtual Gnome::Art::Point src_connection_point ()=0
 
virtual Gnome::Art::Point dst_connection_point (const Gnome::Art::Point &src)=0
 
virtual Gnome::Art::Point connection_point_vector (double dx, double dy)=0
 
virtual void add_connection (boost::shared_ptr< Connection > c)
 
virtual void remove_connection (boost::shared_ptr< Connection > c)
 
virtual void move_connections ()
 
virtual void raise_connections ()
 
bool is_connected_to (boost::shared_ptr< Connectable > other)
 
Connectionsconnections ()
 

Protected Attributes

Connections _connections
 needed for dragging More...
 

Detailed Description

An object a Connection can connect to.

Member Typedef Documentation

◆ Connections

typedef std::list< boost::weak_ptr<Connection> > FlowCanvas::Connectable::Connections

Constructor & Destructor Documentation

◆ ~Connectable()

virtual FlowCanvas::Connectable::~Connectable ( )
inlinevirtual

Member Function Documentation

◆ src_connection_point()

virtual Gnome::Art::Point FlowCanvas::Connectable::src_connection_point ( )
pure virtual

Implemented in FlowCanvas::Ellipse, and FlowCanvas::Port.

◆ dst_connection_point()

virtual Gnome::Art::Point FlowCanvas::Connectable::dst_connection_point ( const Gnome::Art::Point &  src)
pure virtual

Implemented in FlowCanvas::Ellipse, and FlowCanvas::Port.

◆ connection_point_vector()

virtual Gnome::Art::Point FlowCanvas::Connectable::connection_point_vector ( double  dx,
double  dy 
)
pure virtual

Implemented in FlowCanvas::Ellipse, and FlowCanvas::Port.

◆ add_connection()

virtual void FlowCanvas::Connectable::add_connection ( boost::shared_ptr< Connection c)
virtual

Reimplemented in FlowCanvas::Ellipse.

◆ remove_connection()

virtual void FlowCanvas::Connectable::remove_connection ( boost::shared_ptr< Connection c)
virtual

◆ move_connections()

virtual void FlowCanvas::Connectable::move_connections ( )
virtual

◆ raise_connections()

virtual void FlowCanvas::Connectable::raise_connections ( )
virtual

◆ is_connected_to()

bool FlowCanvas::Connectable::is_connected_to ( boost::shared_ptr< Connectable other)

◆ connections()

Connections & FlowCanvas::Connectable::connections ( )
inline

References _connections.

Member Data Documentation

◆ _connections

Connections FlowCanvas::Connectable::_connections
protected

needed for dragging

Referenced by connections().


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