|
| VoidResult | start () override |
| | Starts the node.
|
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *style, QWidget *widget) override |
| | Paints the item using the given painter.
|
| void | addChild (NodeItem *node, std::shared_ptr< NodeSaveInfo > info) override |
| | Adds a child node with the given save information.
|
| void | childRemoved (NodeItem *child) override |
| | Handles when a child is removed from this item.
|
|
void | settingsChanged (const AppearanceSettings &appearance) override |
| | Update the node on setting change.
|
| | NodeItem (const QString &id, std::shared_ptr< NodeSaveInfo > info, const QPointF &initialPosition, std::shared_ptr< NodeConfig > nodeConfig, QGraphicsItem *parent=nullptr) |
| | Constructs a new NodeItem with the given parameters.
|
|
virtual | ~NodeItem () |
| | Destructor for the NodeItem.
|
| int | type () const override |
| | Returns the type of this item.
|
| virtual QRectF | nodeRect () const override |
| | Returns the bounding rectangle for this item.
|
| virtual QPainterPath | shape () const override |
| | Returns the shape of this item.
|
| HelpConfig | help () const |
| | Returns help configuration for this node.
|
| QString | nodeName () const |
| | Returns the name of the node.
|
| QString | nodeType () const |
| | Returns the type of the node.
|
| QString | behaviour () const |
| | Returns the behavior of the node.
|
| QVector< ControlsConfig > | controls () const |
| | Returns the controls configuration for this node.
|
| QVector< std::shared_ptr< IParameter > > | properties () const |
| | Returns the properties of the node.
|
| QVector< PropertyConfig > | configurationProperties () const |
| | Returns the configuration properties of the node.
|
| Types::LibraryTypes | function () const |
| | Returns the library type associated with this node's function.
|
| const PropertyInfo * | getProperty (const QString &key) const |
| | Gets a property by key.
|
| virtual void | setProperty (const QString &key, const maki::Value &value) |
| | Sets a property with a given key and value.
|
|
void | renameNode () |
| | Renames the node to a new name.
|
| NodeItem * | parentNode () const |
| | Returns the parent node of this item.
|
| QVector< NodeItem * > | children (const QString &subflow=Constants::MAIN_SUB_FLOW) const |
| | Returns a list of child nodes.
|
| QPointF | edgePointToward (const QPointF &targetScenePos) const |
| | Calculates an edge point toward a target scene position.
|
| QVector< std::shared_ptr< IParameter > > | fields () const |
| | Returns a list of fields associated with this node.
|
| PropertyInfo | getField (const QString &key) const |
| | Gets a property info by key.
|
| VoidResult | setField (const QString &key, const QJsonObject &property) |
| | Sets a field with a given key and JSON object.
|
| VoidResult | setField (const QString &key, std::shared_ptr< PropertyInfo > property) |
| | Sets a field with a given key and PropertyInfo object.
|
| void | removeField (const QString &key) |
| | Removes a field by key.
|
| void | setEvent (int index, const FlowConfig &event) |
| | Sets an event at the given index with the provided FlowConfig.
|
| QVector< std::shared_ptr< IFlow > > | flowConfigs () const |
| | Returns a list of events associated with this node.
|
| virtual void | addParent (NodeItem *node, const QString &subflow) |
| | Adds a parent node to this item.
|
| std::vector< std::shared_ptr< Flow > > | flows () const |
| | Returns a list of flows associated with this node.
|
| PFlow | createFlow (std::shared_ptr< FlowSaveInfo > info) |
| | Creates a new flow with the given name and save information.
|
| PFlow | getFlow (const QString &flowId) const |
| | Gets a flow by its ID.
|
| void | deleteFlow (const QString &flowId) |
| | Deletes a flow by its ID.
|
| qreal | baseScale () const |
| | Returns the base scale for this node.
|
| QVector< TransitionConfig > | configTransitions () const |
| | Returns a list of configured transitions.
|
| virtual void | applySize (const QSizeF &size) |
| | Applies a new size to the node.
|
| void | updatePosition (const QPointF &position, Config::NodeMove reason=Config::NodeMove::User) |
| | Updates the position of the node.
|
| NodeSaveInfo | saveInfo () const |
| | Returns the savable information for this node.
|
|
virtual void | childPositionUpdated (NodeItem *node) |
| | Called to tell the parent that the position of this node was updated.
|
| | NodeBase (const QString &id, const QString &nodeId, std::shared_ptr< NodeConfig > config, QGraphicsItem *parent) |
| | Constructs a new NodeBase instance.
|
|
virtual | ~NodeBase () |
| | Destructor.
|
| QString | id () const |
| | Retrieves the unique identifier of the node.
|
| virtual QString | nodeId () const |
| | Retrieves the identifier of the node within its type.
|
| std::shared_ptr< NodeConfig > | config () const |
| | Retrieves the configuration settings for the node.
|
| virtual QRectF | boundingRect () const override |
| | Returns the bounding rectangle of the node.
|
| virtual QRectF | labelBoundingRect () const |
| | Returns the bounding rectangle of the label.
|
| virtual QRectF | scaledRect () const |
| | Returns the scaled rectangle of the node.
|
| virtual QRectF | drawingRect (const QRectF &input) const |
| | Returns the drawing rectangle based on the input rectangle.
|
| virtual QPainterPath | nodeShape (const QRectF &bounds) const |
| | Returns the node shape as a QPainterPath.
|
| void | paintNode (const QRectF &bounds, const QColor &background, const QPen &text, QPainter *painter) |
| | Paints the node using the provided painter.
|
| virtual QPixmap | nodePixmap () const |
| | Retrieves the pixmap of the node.
|
| virtual QString | nodeIcon () const |
| | Retrieves the icon path of the node.
|
|
virtual void | toggleLabelVisibility (bool forceVisible=false) |
| | Toggles the visibility of the label.
|
|
|
void | initializeNodeSize () override |
| | Called by children after setup to fix size.
|
| void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
| | Handles mouse move events for this item.
|
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| | Handles mouse press events for this item.
|
| void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
| | Handles mouse release events for this item.
|
| virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
| | Handles changes to the item's properties.
|
|
virtual void | updateExtrasPosition (Config::NodeMove reason) |
| | Updates extra positions related to this node.
|
| virtual void | setIcon (const QString &path, const QColor &iconColor) |
| | Sets the icon for the node.
|
| virtual void | setLabel (const QString &name, qreal fontSize) |
| | Sets the label text and font size.
|
| virtual void | setLabelName (const QString &name) |
| | Sets the label text.
|
| virtual void | setLabelSize (qreal fontSize, const QSizeF &boundingSize) |
| | Sets the font size and bounding size for the label.
|
| virtual void | paintLabel (QPainter *painter, const QRectF &area, const QPen &pen, bool elide=false) const |
| | Paints the label using the provided painter.
|
Structural system-view node (Tasks, capabilities, timers, etc.).