From c4aadd98230f3b9ab50398b715164ff874ea8a61 Mon Sep 17 00:00:00 2001 From: neoraider Date: Wed, 13 Feb 2008 21:06:01 +0000 Subject: zoomedit: Vertices are selectable now. --- VertexProvider.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 VertexProvider.h (limited to 'VertexProvider.h') diff --git a/VertexProvider.h b/VertexProvider.h new file mode 100644 index 0000000..fadda04 --- /dev/null +++ b/VertexProvider.h @@ -0,0 +1,18 @@ +#ifndef VERTEXPROVIDER_H_ +#define VERTEXPROVIDER_H_ + +#include "Vertex.h" + + +class VertexProvider { + public: + virtual ~VertexProvider() {} + + virtual const Vertex* getVertex(size_t id) const = 0; + virtual size_t getVertexCount() const = 0; + + virtual void moveVertex(size_t id, float x, float y) {} + virtual void rotateVertex(size_t id, float a) {} +}; + +#endif /*VERTEXPROVIDER_H_*/ -- cgit v1.2.3