openscad/src/PolySetEvaluator.h

29 lines
817 B
C
Raw Normal View History

#ifndef POLYSETEVALUATOR_H_
#define POLYSETEVALUATOR_H_
#include "node.h"
#include "Tree.h"
#include "memory.h"
class PolySetEvaluator
{
public:
2011-09-09 08:10:33 +04:00
PolySetEvaluator(const Tree &tree) : tree(tree) {}
virtual ~PolySetEvaluator() {}
const Tree &getTree() const { return this->tree; }
virtual shared_ptr<PolySet> getPolySet(const class AbstractNode &, bool cache);
virtual PolySet *evaluatePolySet(const class ProjectionNode &) { return NULL; }
virtual PolySet *evaluatePolySet(const class DxfLinearExtrudeNode &) { return NULL; }
virtual PolySet *evaluatePolySet(const class DxfRotateExtrudeNode &) { return NULL; }
virtual PolySet *evaluatePolySet(const class CgaladvNode &) { return NULL; }
virtual PolySet *evaluatePolySet(const class RenderNode &) { return NULL; }
private:
const Tree &tree;
};
#endif