2014-04-28 21:09:25 +04:00
|
|
|
#pragma once
|
2010-03-02 21:22:31 +03:00
|
|
|
|
|
|
|
#include "node.h"
|
|
|
|
#include "visitor.h"
|
2013-11-05 10:20:27 +04:00
|
|
|
#include "enums.h"
|
2010-03-02 21:22:31 +03:00
|
|
|
|
|
|
|
class CsgNode : public AbstractNode
|
|
|
|
{
|
|
|
|
public:
|
2013-11-05 10:20:27 +04:00
|
|
|
OpenSCADOperator type;
|
|
|
|
CsgNode(const ModuleInstantiation *mi, OpenSCADOperator type) : AbstractNode(mi), type(type) { }
|
2010-08-28 19:34:22 +04:00
|
|
|
virtual Response accept(class State &state, Visitor &visitor) const {
|
2010-03-02 21:22:31 +03:00
|
|
|
return visitor.visit(state, *this);
|
|
|
|
}
|
|
|
|
virtual std::string toString() const;
|
2010-08-28 23:21:44 +04:00
|
|
|
virtual std::string name() const;
|
2010-03-02 21:22:31 +03:00
|
|
|
};
|