/
pi_coder
/
ByteMachine
Обзор
Документация
Войти
/
pi_coder
/
ByteMachine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/nodes/moving_node_connection.cpp
45 строк
2 KB
pimenov-and
Перенос функциональности из старого проекта, в основном это описания узлов
19 июл 2026, 20:13
19 июл 2026, 20:13
cb3c51b
Код
Авторство
О чём код?
//////////////////////////////////////////////////////////////// // ByteMachine // Описание перемещения связи узла //////////////////////////////////////////////////////////////// #include "moving_node_connection.h" //============================================================== // Конструктор с параметрами //============================================================== MovingNodeConnection::MovingNodeConnection(const ShPtrOutputPin &outputPin, const QPoint &beginPt, const QPoint &endPt) { this->outputPin = outputPin; this->beginPt = beginPt; this->endPt = endPt; } //============================================================== // Конструктор с параметрами //============================================================== MovingNodeConnection::MovingNodeConnection(const ShPtrInputPin &inputPin, const QPoint &beginPt, const QPoint &endPt) { this->inputPin = inputPin; this->beginPt = beginPt; this->endPt = endPt; } //============================================================== // Получение признака перемещения //============================================================== bool MovingNodeConnection::isMove() const { return (outputPin != nullptr) || (inputPin != nullptr); } //============================================================== // Сброс //============================================================== void MovingNodeConnection::reset() { outputPin = nullptr; inputPin = nullptr; beginPt = endPt = QPoint{}; }