summaryrefslogtreecommitdiff
path: root/src/Tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tree.h')
-rw-r--r--src/Tree.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Tree.h b/src/Tree.h
new file mode 100644
index 0000000..9cfef84
--- /dev/null
+++ b/src/Tree.h
@@ -0,0 +1,29 @@
+#ifndef TREE_H_
+#define TREE_H_
+
+#include "nodecache.h"
+//#include "cgal.h"
+
+using std::string;
+
+class Tree
+{
+public:
+ Tree() {
+ this->root_node = NULL;
+ }
+ ~Tree() {}
+
+ void setRoot(const AbstractNode *root) { this->root_node = root; }
+ const AbstractNode *root() const { return this->root_node; }
+
+ // FIXME: Really return a reference?
+ const string &getString(const AbstractNode &node) const;
+// CGAL_Nef_polyhedron getCGALMesh(const AbstractNode &node) const;
+
+private:
+ const AbstractNode *root_node;
+ mutable NodeCache nodecache;
+};
+
+#endif
contact: Jan Huwald // Impressum