summaryrefslogtreecommitdiff
path: root/src/CsgInfo.h
blob: 889eefe5f512f3fcf5cb07f0fa5bbf9a7ad25bca (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() { glview = NULL; }
	OffscreenView *glview;
};


#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;
		glview = 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