diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-26 06:10:36 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-26 06:10:36 (GMT) |
commit | 7d147032543f51c93123c484d0c2b2c7e191df26 (patch) | |
tree | 451ff6e100de7671bb5df4167e47446abc5d4007 /src/CsgInfo.h | |
parent | af4333a669eacc2cafc8274e23f58415e634477b (diff) |
commit files created during refactor
Diffstat (limited to 'src/CsgInfo.h')
-rw-r--r-- | src/CsgInfo.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/CsgInfo.h b/src/CsgInfo.h new file mode 100644 index 0000000..fa3e100 --- /dev/null +++ b/src/CsgInfo.h @@ -0,0 +1,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 + |