src/tools/drawtool.h

Sat, 24 Jul 2021 01:50:38 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 24 Jul 2021 01:50:38 +0300
changeset 107
02f142b399b1
parent 106
128efb9d148b
child 108
94c92c923713
permissions
-rw-r--r--

Move selection logic into select tool

#pragma once
#include "basetool.h"

class DrawTool : public BaseTool
{
	Q_OBJECT

public:
	Q_INVOKABLE DrawTool(QObject* parent = nullptr);

	QString name() const override;
	QString toolTip() const override;
	bool mouseClick(const Canvas::MouseClickInfo& info) override;
	void reset() override;
private:
	std::vector<glm::vec3> polygon;
};

mercurial