Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::ConnectionGraphicsItem Class Reference

#include <connectiongraphicsitem.h>

+ Inheritance diagram for inviwo::ConnectionGraphicsItem:

Public Types

enum  { Type = static_cast<int>(UserType) + static_cast<int>(ConnectionGraphicsType) }
 
- Public Types inherited from inviwo::CurveGraphicsItem
enum  { Type = static_cast<int>(UserType) + static_cast<int>(CurveGraphicsType) }
 

Public Member Functions

 ConnectionGraphicsItem (ProcessorOutportGraphicsItem *outport, ProcessorInportGraphicsItem *inport, const PortConnection &connection)
 
 ConnectionGraphicsItem (const ConnectionGraphicsItem &)=delete
 
 ConnectionGraphicsItem (ConnectionGraphicsItem &&)=delete
 
ConnectionGraphicsItemoperator= (const ConnectionGraphicsItem &)=delete
 
ConnectionGraphicsItemoperator= (ConnectionGraphicsItem &&)=delete
 
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)
 
 CurveGraphicsItem (const CurveGraphicsItem &)=delete
 
 CurveGraphicsItem (CurveGraphicsItem &&)=delete
 
CurveGraphicsItemoperator= (const CurveGraphicsItem &)=delete
 
CurveGraphicsItemoperator= (CurveGraphicsItem &&)=delete
 
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)
 
void setHoverInfo (const QString &info)
 
void resetHoverInfo ()
 
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)
 
 EditorGraphicsItem (const EditorGraphicsItem &)=delete
 
 EditorGraphicsItem (EditorGraphicsItem &&)=delete
 
EditorGraphicsItemoperator= (const EditorGraphicsItem &)=delete
 
EditorGraphicsItemoperator= (EditorGraphicsItem &&)=delete
 
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_
 
QGraphicsTextItem * infoLabel_
 

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.

Member Function Documentation

◆ getEndPoint()

virtual QPointF inviwo::ConnectionGraphicsItem::getEndPoint ( ) const
overridevirtual

◆ getStartPoint()

virtual QPointF inviwo::ConnectionGraphicsItem::getStartPoint ( ) const
overridevirtual

◆ showToolTip()

virtual void inviwo::ConnectionGraphicsItem::showToolTip ( QGraphicsSceneHelpEvent * e)
overridevirtual

Reimplemented from inviwo::EditorGraphicsItem.

◆ type()

virtual int inviwo::ConnectionGraphicsItem::type ( ) const
inlineoverridevirtual

Reimplemented from inviwo::CurveGraphicsItem.


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