Inviwo  0.9.10.1
Inviwo documentation
inviwo::ConnectionGraphicsItem Class Reference

#include <connectiongraphicsitem.h>

+ Inheritance diagram for inviwo::ConnectionGraphicsItem:

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)
 
ProcessorGraphicsItemgetOutProcessor () const
 
ProcessorGraphicsItemgetInProcessor () const
 
OutportgetOutport () const
 
InportgetInport () const
 
PortConnection getPortConnection () const
 
ProcessorInportGraphicsItemgetInportGraphicsItem () const
 
ProcessorOutportGraphicsItemgetOutportGraphicsItem () 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
 
NetworkEditorgetNetworkEditor () const
 
- Protected Attributes inherited from inviwo::CurveGraphicsItem
QColor color_
 
QColor borderColor_
 
QColor selectedBorderColor_
 
QPainterPath path_
 
QRectF rect_
 

Detailed Description

Graphical representation of the connection between two ports in the network editor.

Constructor & Destructor Documentation

◆ ConnectionGraphicsItem()

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 (

See also
ProcessorGraphicsItem), the Ports are directly specified as used in the data flow network.

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