summaryrefslogtreecommitdiffstats
path: root/VertexProvider.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-02-13 22:06:01 +0100
committerneoraider <devnull@localhost>2008-02-13 22:06:01 +0100
commitc4aadd98230f3b9ab50398b715164ff874ea8a61 (patch)
tree8b6fcaf48fb0a7eb9af6fd1483659ab4d6e5c000 /VertexProvider.h
parent16397f4474fbbe5f140a5e68b3bb6934170bf2e3 (diff)
downloadzoomedit-c4aadd98230f3b9ab50398b715164ff874ea8a61.tar
zoomedit-c4aadd98230f3b9ab50398b715164ff874ea8a61.zip
zoomedit: Vertices are selectable now.
Diffstat (limited to 'VertexProvider.h')
-rw-r--r--VertexProvider.h18
1 files changed, 18 insertions, 0 deletions
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_*/