Workspace 6.21.5
|
Scalar input port class.
#include <Workspace/Presentation/ConnectionRacks/inputscalarport.h>
Public Types | |
enum | { Type = WorkspaceScene::InputScalarPortT } |
Public Types inherited from ConnectionPort | |
enum | { Type = WorkspaceScene::ConnectionPortT } |
enum class | LabelLocation { Right , Left } |
Public Member Functions | |
InputScalarPort (DataExecution::InputScalar &input, DataExecution::Operation &op, const WorkspaceGraphicsEffectFactory &factory, QGraphicsItem *parent=nullptr) | |
~InputScalarPort () override | |
DataExecution::InputScalar & | getInput () |
const DataExecution::InputScalar & | getInput () const |
DataExecution::IOBase & | getIOBase () override |
bool | isArrayElement () const override |
void | setEnabled (bool enable) |
void | setHighlighted (bool highlight, bool applyToAllConnections=false) 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 | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) 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 |
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) |
InputScalarPort | ( | DataExecution::InputScalar & | input, |
DataExecution::Operation & | op, | ||
const WorkspaceGraphicsEffectFactory & | factory, | ||
QGraphicsItem * | parent = nullptr |
||
) |
|
overridedefault |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
InputScalar & getInput | ( | ) |
const InputScalar & getInput | ( | ) | const |
|
inlineoverridevirtual |
Implements ConnectionPort.
|
overrideprotectedvirtual |
Implements ConnectionPort.
|
overrideprotectedvirtual |
Implements ConnectionPort.
|
overrideprotected |
|
overrideprotected |
|
overridevirtual |
Implements ConnectionPort.
|
overrideprotected |
Check if shift is not being pressed as Hand-scrolling precedes operation drag
|
overrideprotected |
void setEnabled | ( | bool | enable | ) |
|
overridevirtual |
highlight | Set to false to remove highlighting |
applyToAllConnections | If true, all connections from the same output as the connection to this port also have highlighting applied/removed |
Reimplemented from ConnectionPort.
|
overrideprotectedvirtual |
Implements ConnectionPort.
|
inlineoverride |