diff options
Diffstat (limited to 'src/projectionnode.h')
-rw-r--r-- | src/projectionnode.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/projectionnode.h b/src/projectionnode.h new file mode 100644 index 0000000..295e48c --- /dev/null +++ b/src/projectionnode.h @@ -0,0 +1,24 @@ +#ifndef PROJECTIONNODE_H_ +#define PROJECTIONNODE_H_ + +#include "node.h" +#include "visitor.h" + +class ProjectionNode : public AbstractPolyNode +{ +public: + ProjectionNode(const ModuleInstantiation *mi) : AbstractPolyNode(mi) { + cut_mode = false; + } + virtual Response accept(class State &state, Visitor &visitor) const { + return visitor.visit(state, *this); + } + virtual std::string toString() const; + virtual std::string name() const { return "projection"; } + + int convexity; + bool cut_mode; + virtual PolySet *render_polyset(render_mode_e mode, class PolySetRenderer *renderer) const; +}; + +#endif |