Workspace 6.21.5
Public Types | Public Member Functions | Protected Member Functions | List of all members
OutputPort Class Reference

Widget class for representing an output connection port.

#include <Workspace/Presentation/ConnectionRacks/outputport.h>

Inheritance diagram for OutputPort:
[legend]

Public Types

enum  { Type = WorkspaceScene::OutputPortT }
 
- Public Types inherited from ConnectionPort
enum  { Type = WorkspaceScene::ConnectionPortT }
 
enum class  LabelLocation { Right , Left }
 

Public Member Functions

 OutputPort (DataExecution::Output &output, DataExecution::Operation &op, const WorkspaceGraphicsEffectFactory &factory, QGraphicsItem *parent=nullptr)
 
 ~OutputPort () override
 
DataExecution::IOBasegetIOBase () override
 
DataExecution::OutputgetOutput ()
 
void setHighlighted (bool highlight, bool applyToConnections) override
 
int type () const override
 
- Public Member Functions inherited from ConnectionPort
 ConnectionPort (DataExecution::IOBase &ioBase, DataExecution::Operation &op, const WorkspaceGraphicsEffectFactory &factory, QGraphicsItem *parent=nullptr)
 
 ~ConnectionPort () override
 
virtual DataExecution::IOBasegetIOBase ()=0
 
QGraphicsSimpleTextItem * getLabel ()
 
virtual QString getToolTip () const =0
 
virtual bool isArrayElement () const =0
 
bool isHighlighted () const
 
bool isValidConnectionTarget () const
 
void resetLabelLocation ()
 
void setDefaultLabelLocation (LabelLocation location)
 
virtual void setHighlighted (bool highlight, bool applyToAllSourceConnections)
 
void setLabelHorizontalOffset (qreal labelOffsetX)
 
void setLabelLocation (LabelLocation location)
 
void setValidConnectionTarget (bool valid)
 
int type () const override
 

Protected Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *event) override
 
void dragEnterEvent (QGraphicsSceneDragDropEvent *event) override
 
void dragLeaveEvent (QGraphicsSceneDragDropEvent *event) override
 
void dragMoveEvent (QGraphicsSceneDragDropEvent *event) override
 
void dropEvent (QGraphicsSceneDragDropEvent *event) override
 
QString getStatusBarMessage () override
 
QString getToolTip () const override
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
bool isArrayElement () const override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
bool supportsData () const override
 
- Protected Member Functions inherited from ConnectionPort
virtual QString getStatusBarMessage ()=0
 
WorkspaceScenegetWorkspaceScene ()
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
void installGraphicsEffect ()
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 
void setLabel (const QString &text)
 
void setLabelFont (const QFont &font)
 
virtual bool supportsData () const =0
 

Additional Inherited Members

- Signals inherited from ConnectionPort
void dragFromInputStarted (const DataExecution::IOBase &ioBase)
 
void dragFromOutputStarted (const DataExecution::IOBase &ioBase)
 
void itemPositionChanged ()
 
void itemVisibilityChanged (bool visible)
 
void notifyDragStarter ()
 
void requestZValue (qreal z)
 
void setStatusMessage (const QString &message)
 
void setWorkspaceTooltip (const QString &tooltip)
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ OutputPort()

OutputPort ( DataExecution::Output output,
DataExecution::Operation op,
const WorkspaceGraphicsEffectFactory factory,
QGraphicsItem *  parent = nullptr 
)
Parameters
outputThe output the port will represent.
opThe operation that this port belongs to.
factoryThe current WorkspaceGraphicsEffectFactory
parentThe parent graphics item which would typically be a port rack.

◆ ~OutputPort()

~OutputPort ( )
overridedefault

Member Function Documentation

◆ contextMenuEvent()

void contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event)
overrideprotected

◆ dragEnterEvent()

void dragEnterEvent ( QGraphicsSceneDragDropEvent *  event)
overrideprotected

◆ dragLeaveEvent()

void dragLeaveEvent ( QGraphicsSceneDragDropEvent *  event)
overrideprotected

◆ dragMoveEvent()

void dragMoveEvent ( QGraphicsSceneDragDropEvent *  event)
overrideprotected

◆ dropEvent()

void dropEvent ( QGraphicsSceneDragDropEvent *  event)
overrideprotected

◆ getIOBase()

DataExecution::IOBase & getIOBase ( )
inlineoverridevirtual
Returns
Return the IOBase associated with the connection port.

Implements ConnectionPort.

◆ getOutput()

DataExecution::Output & getOutput ( )

◆ getStatusBarMessage()

QString getStatusBarMessage ( )
overrideprotectedvirtual

Implements ConnectionPort.

◆ getToolTip()

QString getToolTip ( ) const
overrideprotectedvirtual
Returns
The tool tip text for this port.

Implements ConnectionPort.

◆ hoverEnterEvent()

void hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected

◆ hoverLeaveEvent()

void hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotected

◆ isArrayElement()

bool isArrayElement ( ) const
overrideprotectedvirtual
Returns
True if the connection port is associated with an array element, false otherwise.

Implements ConnectionPort.

◆ mousePressEvent()

void mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

◆ mouseReleaseEvent()

void mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

◆ setHighlighted()

void setHighlighted ( bool  highlight,
bool  applyToConnections 
)
overridevirtual
Parameters
highlightTrue to highlight, false to remove highlight
applyToConnectionsIf true, all connections to this port are highlighted too

Reimplemented from ConnectionPort.

◆ supportsData()

bool supportsData ( ) const
overrideprotectedvirtual

Implements ConnectionPort.

◆ type()

int type ( ) const
inlineoverride