ui: Increased graph edge drawing performance

* only draw lines within the redrawn rectangle
* cache polygon points
This commit is contained in:
Eberhard Graether
2016-04-01 15:26:44 +02:00
parent 2be3b541a6
commit 31f366ab8f
5 changed files with 198 additions and 75 deletions
@@ -20,7 +20,13 @@ class QtGraphEdge
Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
public:
QtGraphEdge(const std::weak_ptr<QtGraphNode>& owner, const std::weak_ptr<QtGraphNode>& target, const Edge* data, size_t weight);
QtGraphEdge(
const std::weak_ptr<QtGraphNode>& owner,
const std::weak_ptr<QtGraphNode>& target,
const Edge* data,
size_t weight,
bool isActive,
TokenComponentAggregation::Direction direction);
virtual ~QtGraphEdge();
const Edge* getData() const;