Loading...
Searching...
No Matches
Public Member Functions |
Static Public Member Functions |
Public Attributes |
Static Public Attributes |
Protected Member Functions |
Protected Attributes |
Friends |
List of all members
Dataflow::PortItem Class Reference
Inheritance diagram for Dataflow::PortItem:
Public Member Functions | |
| PortItem (const Process::Port &p, const Process::Context &ctx, QGraphicsItem *parent) | |
| const Process::Port & | port () const |
| virtual void | setupMenu (QMenu &, const score::DocumentContext &ctx) |
| void | setPortVisible (bool b) |
| void | resetPortVisible () |
| void | resetDrop () |
| void | setHighlight (bool b) |
| int | type () const final override |
| QPointF | sceneCenter () const noexcept |
| portCenter() in scene coordinates, taking the item's transform into account. | |
| QRectF | boundingRect () const override |
| QPainterPath | shape () const override |
| bool | contains (const QPointF &point) const override |
| void | createCable (PortItem *src, PortItem *snk) |
| void | contextMenuRequested (QPointF scenepos, QPoint pos) |
Static Public Member Functions | |
| static constexpr QPointF | portCenter () noexcept |
| static const QPixmap & | portImage (Process::PortType t, bool inlet, bool smol, bool light, bool addr) noexcept |
Public Attributes | |
| AddressPropagationItem * | m_address {} |
| double | m_diam = 8. |
| bool | m_visible {true} |
| bool | m_inlet {true} |
| bool | m_highlight {true} |
Static Public Attributes | |
| static PortItem * | clickedPort |
| static const constexpr int | Type = QGraphicsItem::UserType + 700 |
| static constexpr double | hitRadius = 5.5 |
| Radius of the clickable zone around portCenter(). | |
Protected Attributes | |
| const Process::Context & | m_context |
| std::vector< QPointer< CableItem > > | cables |
| const Process::Port & | m_port |
Friends | |
| class | Dataflow::CableItem |
Member Function Documentation
◆ portCenter()
|
inlinestaticconstexprnoexcept |
Center of the drawn port circle, in item coordinates. Cables, the drag line and magnetic snapping all anchor on this point.
The documentation for this class was generated from the following files:
- score-lib-process/Process/Dataflow/PortItem.hpp
- score-lib-process/Process/Dataflow/PortItem.cpp