summaryrefslogtreecommitdiff
path: root/src/CsgInfo.h
blob: 6c3e3528eae3843827c11eb4071d8150b46f6b20 (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
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef __CSGINFO_H__
#define __CSGINFO_H__

#include "OffscreenView.h"

class CsgInfo
{
public:
	CsgInfo() { qglview = NULL; }
	OffscreenView *qglview;
};


#ifdef ENABLE_OPENCSG

#include <opencsg.h>
#include "OpenCSGRenderer.h"
#include "csgterm.h"
#include "csgtermnormalizer.h"

class CsgInfo_OpenCSG : public CsgInfo
{
public:
	CsgInfo_OpenCSG()
	{
		root_chain = NULL;
		highlights_chain = NULL;
		background_chain = NULL;
		qglview = NULL;
	}
	shared_ptr<CSGTerm> root_norm_term;    // Normalized CSG products
	class CSGChain *root_chain;
	std::vector<shared_ptr<CSGTerm> > highlight_terms;
	CSGChain *highlights_chain;
	std::vector<shared_ptr<CSGTerm> > background_terms;
	CSGChain *background_chain;
};

#endif // ENABLE_OPENCSG

#endif

contact: Jan Huwald // Impressum