Inviwo
0.9.10.1
Inviwo documentation
|
#include <connectiongraphicsitem.h>
Public Types | |
enum | { Type = UserType + ConnectionGraphicsType } |
Public Types inherited from inviwo::CurveGraphicsItem | |
enum | { Type = UserType + CurveGraphicsType } |
Public Member Functions | |
ConnectionGraphicsItem (ProcessorOutportGraphicsItem *outport, ProcessorInportGraphicsItem *inport, const PortConnection &connection) | |
ProcessorGraphicsItem * | getOutProcessor () const |
ProcessorGraphicsItem * | getInProcessor () const |
Outport * | getOutport () const |
Inport * | getInport () const |
PortConnection | getPortConnection () const |
ProcessorInportGraphicsItem * | getInportGraphicsItem () const |
ProcessorOutportGraphicsItem * | getOutportGraphicsItem () const |
virtual int | type () const override |
virtual QPointF | getStartPoint () const override |
virtual QPointF | getEndPoint () const override |
virtual void | showToolTip (QGraphicsSceneHelpEvent *e) override |
virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
Public Member Functions inherited from inviwo::CurveGraphicsItem | |
CurveGraphicsItem (QColor color=QColor(38, 38, 38), QColor borderColor=Qt::black, QColor selectedBorderColor=Qt::darkRed) | |
virtual QPainterPath | shape () const override |
virtual QColor | getColor () const |
virtual void | updateShape () |
virtual void | setColor (QColor color) |
void | resetBorderColors () |
void | setBorderColor (QColor borderColor) |
void | setSelectedBorderColor (QColor selectedBorderColor) |
virtual void | paint (QPainter *p, const QStyleOptionGraphicsItem *options, QWidget *widget) override |
virtual QRectF | boundingRect () const override |
virtual QPainterPath | obtainCurvePath () const |
virtual QPainterPath | obtainCurvePath (QPointF startPoint, QPointF endPoint) const |
Public Member Functions inherited from inviwo::EditorGraphicsItem | |
EditorGraphicsItem (QGraphicsItem *parent) | |
QPoint | mapPosToSceen (QPointF pos) const |
void | showPortInfo (QGraphicsSceneHelpEvent *e, Port *port) const |
Additional Inherited Members | |
Protected Member Functions inherited from inviwo::EditorGraphicsItem | |
void | showToolTipHelper (QGraphicsSceneHelpEvent *event, QString string) const |
NetworkEditor * | getNetworkEditor () const |
Protected Attributes inherited from inviwo::CurveGraphicsItem | |
QColor | color_ |
QColor | borderColor_ |
QColor | selectedBorderColor_ |
QPainterPath | path_ |
QRectF | rect_ |
Graphical representation of the connection between two ports in the network editor.
inviwo::ConnectionGraphicsItem::ConnectionGraphicsItem | ( | ProcessorOutportGraphicsItem * | outport, |
ProcessorInportGraphicsItem * | inport, | ||
const PortConnection & | connection | ||
) |
Construct a new graphical representation between the outport of the outProcessor and the inport of the inProcessor. Data is assumed to flow from outport to inport. While the processors are provided through their graphical representations (