15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_NODEEDITORPORT_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_NODEEDITORPORT_H
25 #include <QGraphicsPathItem>
52 virtual int type()
const;
65 QVariant
itemChange(GraphicsItemChange change,
const QVariant& value);
Defines namespace ViewTypes with enum EWidgetTypes (nothing to implement)
parent class for graphic representation of all ISampleNode's
void append(NodeEditorConnection *connection)
virtual ~NodeEditorPort()
NodeEditorPort(QGraphicsItem *parent=0, const QString &name="unnamed", EPortDirection direction=INPUT, EPortType port_type=DEFAULT)
void remove(NodeEditorConnection *connection)
EPortType
type of ports, same type can be connected together
QVector< NodeEditorConnection * > m_connections
EPortDirection m_direction
static QColor getPortTypeColor(NodeEditorPort::EPortType port_type)
const QString & portName() const
EPortDirection
port direction
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
void setLabel(QString name)
QGraphicsTextItem * m_label
EPortType getPortType() const
QString const & name(EShape k)