summaryrefslogtreecommitdiff
path: root/src/rendernode.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2010-03-28 15:57:39 (GMT)
committerMarius Kintel <marius@kintel.net>2010-10-31 00:42:34 (GMT)
commit7468c940672b31e569cbb2310676fb1ac841e2d0 (patch)
tree1ddd374a0006e074695bd8638d1f5e59db6a3509 /src/rendernode.h
parent3396706e248d4baccf08707103deae378181b299 (diff)
Mostly completed test implementation of text-based CGALRenderer
Diffstat (limited to 'src/rendernode.h')
-rw-r--r--src/rendernode.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/rendernode.h b/src/rendernode.h
new file mode 100644
index 0000000..8bb2c9c
--- /dev/null
+++ b/src/rendernode.h
@@ -0,0 +1,29 @@
+#ifndef RENDERNODE_H_
+#define RENDERNODE_H_
+
+#include "node.h"
+#include "visitor.h"
+#ifdef ENABLE_CGAL
+# include "cgal.h"
+#endif
+
+class RenderNode : public AbstractNode
+{
+public:
+ RenderNode(const ModuleInstantiation *mi) : AbstractNode(mi), convexity(1) { }
+ virtual Response accept(const class State &state, Visitor &visitor) const {
+ return visitor.visit(state, *this);
+ }
+ virtual std::string toString() const;
+
+ int convexity;
+#ifdef ENABLE_CGAL
+ virtual CGAL_Nef_polyhedron renderCSGMesh() const;
+#endif
+ CSGTerm *render_csg_term(double m[20], QVector<CSGTerm*> *highlights, QVector<CSGTerm*> *background) const;
+#ifndef REMOVE_DUMP
+ virtual QString dump(QString indent) const;
+#endif
+};
+
+#endif
contact: Jan Huwald // Impressum