blob: c262afd1abe44075561554b5244827f3ff3cc2da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef TRANSFORMNODE_H_
#define TRANSFORMNODE_H_
#include "node.h"
#include "visitor.h"
#ifdef ENABLE_CGAL
# include "cgal.h"
#endif
class TransformNode : public AbstractNode
{
public:
TransformNode(const ModuleInstantiation *mi) : AbstractNode(mi) { }
virtual Response accept(const class State &state, Visitor &visitor) const {
return visitor.visit(state, *this);
}
virtual std::string toString() const;
double m[20];
#ifdef ENABLE_CGAL
virtual CGAL_Nef_polyhedron renderCSGMesh() const;
#endif
virtual 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
|