Base class for organizing a set of ports into a vertical rack.
#include <Workspace/Presentation/ConnectionRacks/connectionrack.h>
◆ Visibility
Enumerator |
---|
Full | |
OnlyValidDrops | |
Hidden | |
◆ ConnectionRack()
◆ ~ConnectionRack()
◆ canShowItem()
◆ dragEnterEvent()
void dragEnterEvent |
( |
QGraphicsSceneDragDropEvent * |
event | ) |
|
|
overrideprotected |
◆ dragFromIOBaseFinished()
virtual void dragFromIOBaseFinished |
( |
| ) |
|
|
pure virtual |
◆ dragLeaveEvent()
void dragLeaveEvent |
( |
QGraphicsSceneDragDropEvent * |
event | ) |
|
|
overrideprotected |
◆ flipOverlappingRackLabels()
void flipOverlappingRackLabels |
( |
bool |
onlyConnectedRacks | ) |
|
- Parameters
-
onlyConnectedRacks | 1. When set to true, only this rack and other connected racks will have their labels checked for overlapping port labels. This is used for mouse hover events because in that case we don't want to flip racks which are not connected to this one.
- When set to false, this rack and any other overlapping racks are eligible to have their port labels flipped.
|
◆ flipRackLabels()
◆ generateNextVerticalPos()
void generateNextVerticalPos |
( |
const QGraphicsItem & |
item, |
|
|
QPointF & |
pos, |
|
|
double |
spacing = 0 |
|
) |
| |
|
static |
◆ getGraphicsEffectFactory()
◆ getItemMap()
◆ getNumberOfVisiblePorts()
int getNumberOfVisiblePorts |
( |
| ) |
|
◆ getObjectMap()
◆ getPortList()
◆ getPortMap()
◆ getVisibilityState()
◆ handleConnectedRackHoverEnter
void handleConnectedRackHoverEnter |
( |
| ) |
|
|
slot |
◆ handleConnectedRackHoverLeave
void handleConnectedRackHoverLeave |
( |
| ) |
|
|
slot |
◆ handlePortHoverEnter
void handlePortHoverEnter |
( |
| ) |
|
|
slot |
◆ handlePortHoverLeave
void handlePortHoverLeave |
( |
const QPointF & |
pos | ) |
|
|
slot |
◆ hideObscuredOperationLabel()
void hideObscuredOperationLabel |
( |
| ) |
|
Only hides operation label if there are too many ports visible.
◆ hoverEnter
◆ hoverEnterEvent()
void hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
overrideprotected |
◆ hoverLeave
◆ hoverLeaveEvent()
void hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
overrideprotected |
◆ initializePosAndVis()
void initializePosAndVis |
( |
| ) |
|
Initializes the visibility and position of the ports based on flags set by mini Operations.
◆ isDragStarter()
◆ isInputRack()
virtual bool isInputRack |
( |
| ) |
const |
|
pure virtual |
◆ isLabelFlipInitiator()
bool isLabelFlipInitiator |
( |
| ) |
|
◆ isPinButtonVisible()
bool isPinButtonVisible |
( |
| ) |
const |
◆ isPinned()
◆ isVisible()
◆ itemChange()
QVariant itemChange |
( |
GraphicsItemChange |
change, |
|
|
const QVariant & |
value |
|
) |
| |
|
overrideprotected |
◆ neverShow()
◆ paint()
void paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget = nullptr |
|
) |
| |
|
override |
◆ portLabelsFlipped
void portLabelsFlipped |
( |
| ) |
|
|
signal |
◆ portLabelsReset
◆ portsRepositioned
void portsRepositioned |
( |
| ) |
|
|
signal |
◆ refreshVisibility
void refreshVisibility |
( |
| ) |
|
|
slot |
Refresh port visibility. This is useful if the state underlying the connection rack has changed (e.g. if the operation's inputs/outputs have changed visibility state) and the UI needs to be updated to reflect this.
◆ registerPortConnections()
◆ repositionRackItems()
virtual void repositionRackItems |
( |
| ) |
|
|
pure virtual |
◆ requestOpLabelVisibilityChange
void requestOpLabelVisibilityChange |
( |
bool |
show | ) |
|
|
signal |
◆ requestZValueForConnections
void requestZValueForConnections |
( |
int |
zValue | ) |
|
|
signal |
◆ resetPortLabelLocations()
void resetPortLabelLocations |
( |
| ) |
|
◆ setAlwaysShow()
void setAlwaysShow |
( |
bool |
alwaysShow | ) |
|
◆ setDragStarter()
void setDragStarter |
( |
bool |
dragStarter | ) |
|
◆ setItemsToShow()
Allows base classes to specify a list of ports to show before calling setVisibility(Visibility::OnlyValidDropPorts)
◆ setNeverShow()
void setNeverShow |
( |
bool |
neverShow | ) |
|
|
protected |
◆ setNeverShowDependenciesPort()
void setNeverShowDependenciesPort |
( |
bool |
neverShow | ) |
|
◆ setNeverShowPinButton()
void setNeverShowPinButton |
( |
bool |
neverShowPinButton | ) |
|
◆ setPinButtonVisible()
void setPinButtonVisible |
( |
bool |
visible | ) |
|
◆ setPinned
void setPinned |
( |
bool |
pinned | ) |
|
|
slot |
◆ setPinPosition()
void setPinPosition |
( |
const QPointF & |
pos | ) |
|
|
protected |
◆ setStatusMessage
void setStatusMessage |
( |
const QString & |
message | ) |
|
|
signal |
◆ setVisibility()
void setVisibility |
( |
Visibility |
visState, |
|
|
bool |
force = false |
|
) |
| |
◆ setWorkspaceTooltip
void setWorkspaceTooltip |
( |
const QString & |
tooltip | ) |
|
|
signal |
◆ updateBoundingRect()
void updateBoundingRect |
( |
| ) |
|
◆ DEFAULT_HIDE_DELAY_MS
constexpr int DEFAULT_HIDE_DELAY_MS = 650 |
|
staticconstexpr |
◆ NEVER_SHOW_IOBASE_PROPERTY_NAME
constexpr const char* NEVER_SHOW_IOBASE_PROPERTY_NAME = "neverShowIoBase" |
|
staticconstexpr |