SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Rendering and interaction code for nodes that represent Ports of Tasks. More...
#include <qtTaskPortNode.h>
Public Member Functions | |
smtkSuperclassMacro (qtBaseObjectNode) | |
smtkTypeMacro (smtk::extension::qtTaskPortNode) | |
qtTaskPortNode (qtDiagramGenerator *generator, smtk::resource::PersistentObject *resource, QGraphicsItem *parent=nullptr) | |
smtk::common::UUID | nodeId () const override |
Return a UUID for this node. | |
smtk::resource::PersistentObject * | object () const override |
Return the task this node represents. | |
QRectF | boundingRect () const override |
Get the bounding box of the node, which includes the border width and the label. | |
smtk::task::Port * | port () const |
void | setLength (qreal newLength) |
void | setAngle (qreal newAngle) |
![]() | |
smtkSuperclassMacro (qtBaseNode) | |
smtkTypeMacro (smtk::extension::qtBaseObjectNode) | |
qtBaseObjectNode (qtDiagramGenerator *generator, smtk::resource::PersistentObject *obj, QGraphicsItem *parent=nullptr) | |
std::string | name () const override |
Return the object's name as the node's name. | |
![]() | |
smtkSuperclassMacro (QGraphicsObject) | |
smtkTypeMacroBase (smtk::extension::qtBaseNode) | |
qtBaseNode (qtDiagramGenerator *scene, QGraphicsItem *parent=nullptr) | |
QRectF | boundingRect () const override |
Return a dummy bounding-rect. More... | |
qtDiagramGenerator * | generator () const |
Return the generator responsible for this node. | |
qtDiagram * | diagram () const |
Return the diagram which owns the generator of this node. | |
qtDiagramScene * | scene () const |
Return the scene this node belongs to. | |
virtual void | setContentStyle (ContentStyle cs) |
Set/get how much data the node should render inside its boundary. | |
ContentStyle | contentStyle () const |
virtual void | dataUpdated () |
Deal with updates (e.g., a configuration change that affects the node's visual appearance or interaction style). More... | |
Protected Member Functions | |
void | updateToolTip () |
void | adjustOrientation (const QPointF &pnt) |
void | adjustPosition (QPointF &pnt) |
QVariant | itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &val) override |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
Handle pointer hovers. | |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
void | updateArc () |
void | updateShape () |
![]() | |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
virtual int | updateSize () |
Update the node bounds to fit its content. | |
void | addToScene () |
Adds the node to the scene. More... | |
Protected Attributes | |
qreal | m_length { 20 } |
qreal | m_angle { 90 } |
QPainterPath | m_path |
QGraphicsPathItem * | m_arc |
smtk::task::Port * | m_port { nullptr } |
![]() | |
qtDiagramGenerator * | m_generator { nullptr } |
ContentStyle | m_contentStyle { ContentStyle::Minimal } |
Properties | |
QPointF | pos |
qreal | rotation |
![]() | |
smtk::resource::PersistentObject | object |
![]() | |
ContentStyle | contentStyle |
Friends | |
class | PortNodeWidget |
Additional Inherited Members | |
![]() | |
enum | ContentStyle : int { ContentStyle::Minimal, ContentStyle::Summary, ContentStyle::Details } |
Determine how the node is presented to users. More... | |
![]() | |
void | nodeResized () |
void | nodeMoved () |
Rendering and interaction code for nodes that represent Ports of Tasks.