summaryrefslogtreecommitdiff
path: root/src/dxflinextrudenode.h
blob: 9ae9549cb7a5a35de88516746117484d7b158210 (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 DXFLINEXTRUDENODE_H_
#define DXFLINEXTRUDENODE_H_

#include "node.h"
#include "visitor.h"

class DxfLinearExtrudeNode : public AbstractPolyNode
{
public:
	DxfLinearExtrudeNode(const ModuleInstantiation *mi) : AbstractPolyNode(mi) {
		convexity = slices = 0;
		fn = fs = fa = height = twist = 0;
		origin_x = origin_y = scale = 0;
		center = has_twist = false;
	}
  virtual Response accept(const class State &state, Visitor &visitor) const {
		return visitor.visit(state, *this);
	}
	virtual std::string toString() const;

	int convexity, slices;
	double fn, fs, fa, height, twist;
	double origin_x, origin_y, scale;
	bool center, has_twist;
	QString filename, layername;
	virtual PolySet *render_polyset(render_mode_e mode) const;
};

#endif
contact: Jan Huwald // Impressum