src/editmodes/circlemode.h

Fri, 04 Jul 2014 22:40:35 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Fri, 04 Jul 2014 22:40:35 +0300
changeset 824
6add2126e7ff
parent 823
1a2f593f0c02
child 825
f7649c9bfd9a
permissions
-rw-r--r--

- more work on edit modes

#include "abstracteditmode.h"

class CircleMode : public AbstractDrawMode
{
	DEFINE_CLASS (CircleMode, AbstractDrawMode)

public:
	CircleMode (GLRenderer* renderer);

	virtual void render (QPainter& painter) const override;
	virtual EditModeType type() const override;

	double getCircleDrawDist (int pos) const;
	Matrix getCircleDrawMatrix (double scale);
	bool mouseReleased (const AbstractEditMode::MouseEventData& data) override;
};

mercurial