summaryrefslogtreecommitdiff
path: root/src/PolySetCGALRenderer.h
blob: ef71a5704db0dda7d0b39dc3f04f7e42b9c4325b (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
#ifndef POLYSETCGALRENDERER_H_
#define POLYSETCGALRENDERER_H_

#include "PolySetRenderer.h"
#include "CGALRenderer.h"

/*!
	This is a PolySet renderer which uses the CGALRenderer to support building
	polysets.
*/
class PolySetCGALRenderer : public PolySetRenderer
{
public:
	PolySetCGALRenderer(CGALRenderer &cgalrenderer) : 
		PolySetRenderer(), cgalrenderer(cgalrenderer) { }
	virtual ~PolySetCGALRenderer() { }
	virtual PolySet *renderPolySet(const ProjectionNode &node, AbstractPolyNode::render_mode_e);
	virtual PolySet *renderPolySet(const DxfLinearExtrudeNode &node, AbstractPolyNode::render_mode_e);
	virtual PolySet *renderPolySet(const DxfRotateExtrudeNode &node, AbstractPolyNode::render_mode_e);

private:
	CGALRenderer &cgalrenderer;
};

#endif
contact: Jan Huwald // Impressum