summaryrefslogtreecommitdiff
path: root/src/CsgInfo.h
blob: 4107b1a54e25e2d78cc923575640aa57c3992e42 (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
#ifndef __CSGINFO_H__
#define __CSGINFO_H__

#include "OffscreenView.h"

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


#ifdef ENABLE_OPENCSG

#include "csgterm.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