summaryrefslogtreecommitdiff
path: root/src/dxflinextrudenode.h
blob: 2df52c8deb4337604b43675752d83dd447f96143 (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
30
#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;
	virtual QString dump(QString indent) const;
};

#endif
contact: Jan Huwald // Impressum