From 16b1544fff7e9ca11deb3ae1b891c79eac7ec50e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 21 Jan 2018 11:36:34 +0100 Subject: Implement little bit more of scheme and fix connection angle This commit adds few more bits to scheme but mainly it chnages how connectors specify angles. Originally it was in radians but we was mapping that trough mathematical operations directly to sizes. But that was problematic because of floating point inacuracy and we sometimes founded intersection where there should be one. So this commit gets rid of this at all and instead allows just some fixes axes to be used instead of arbitrary angles. --- qtmips_gui/coreview/multiplexer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qtmips_gui/coreview/multiplexer.h') diff --git a/qtmips_gui/coreview/multiplexer.h b/qtmips_gui/coreview/multiplexer.h index 2cfc90d..ad4fd0b 100644 --- a/qtmips_gui/coreview/multiplexer.h +++ b/qtmips_gui/coreview/multiplexer.h @@ -9,7 +9,7 @@ namespace coreview { class Multiplexer : public QGraphicsItem { public: - Multiplexer(unsigned size); + Multiplexer(unsigned size, bool ctl_up = false); ~Multiplexer(); QRectF boundingRect() const; @@ -21,7 +21,6 @@ public: const Connector *connector_in(unsigned i) const; // Inputs void set(unsigned i); // Set what value should be set as connected (indexing from 1 where 0 is no line) - void setCtl(bool up); // Set if control signal is from up or down (in default down) private: bool ctlfrom; -- cgit v1.2.3