Workspace 6.21.5
|
Array input port class.
#include <Workspace/Presentation/ConnectionRacks/inputarrayport.h>
Public Types | |
enum | { Type = WorkspaceScene::InputArrayPortT } |
Public Types inherited from ConnectionPort | |
enum | { Type = WorkspaceScene::ConnectionPortT } |
enum class | LabelLocation { Right , Left } |
Public Member Functions | |
InputArrayPort (DataExecution::InputArray &input, DataExecution::Operation &op, const WorkspaceGraphicsEffectFactory &factory, QGraphicsItem *parent=nullptr) | |
~InputArrayPort () override | |
DataExecution::InputArray & | getInput () |
const DataExecution::InputArray & | getInput () const |
DataExecution::IOBase & | getIOBase () override |
bool | isArrayElement () const 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::IOBase & | getIOBase ()=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 | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
bool | supportsData () const override |
Protected Member Functions inherited from ConnectionPort | |
virtual QString | getStatusBarMessage ()=0 |
WorkspaceScene & | getWorkspaceScene () |
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) |
InputArrayPort | ( | DataExecution::InputArray & | input, |
DataExecution::Operation & | op, | ||
const WorkspaceGraphicsEffectFactory & | factory, | ||
QGraphicsItem * | parent = nullptr |
||
) |
input | The array input this port will represent. |
op | The operation that this port belongs to. |
factory | The current WorkspaceGraphicsEffectFactory |
parent | The parent graphics item which would typically be a port rack. |
An array input port will be created with a rounded rectangle look to differentiate it from scalar input ports.
|
overridedefault |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
InputArray & getInput | ( | ) |
const InputArray & getInput | ( | ) | const |
|
inlineoverridevirtual |
Implements ConnectionPort.
|
overrideprotectedvirtual |
Implements ConnectionPort.
|
overrideprotectedvirtual |
Implements ConnectionPort.
|
overridevirtual |
Implements ConnectionPort.
|
overrideprotected |
|
overrideprotected |
|
overrideprotectedvirtual |
Implements ConnectionPort.
|
inlineoverride |