2014-04-28 21:09:25 +04:00
|
|
|
#pragma once
|
2011-07-30 23:29:40 +04:00
|
|
|
|
|
|
|
#include "renderer.h"
|
2014-08-15 01:16:24 +04:00
|
|
|
#include "CGAL_Nef_polyhedron.h"
|
2011-07-30 23:29:40 +04:00
|
|
|
|
|
|
|
class CGALRenderer : public Renderer
|
|
|
|
{
|
|
|
|
public:
|
2013-12-24 10:09:46 +04:00
|
|
|
CGALRenderer(shared_ptr<const class Geometry> geom);
|
2014-08-15 01:16:24 +04:00
|
|
|
~CGALRenderer();
|
2014-06-22 00:12:55 +04:00
|
|
|
virtual void draw(bool showfaces, bool showedges) const;
|
2014-08-15 01:16:24 +04:00
|
|
|
virtual void setColorScheme(const ColorScheme &cs);
|
2014-06-22 00:12:55 +04:00
|
|
|
virtual BoundingBox getBoundingBox() const;
|
2011-07-30 23:29:40 +04:00
|
|
|
|
2014-08-15 01:16:24 +04:00
|
|
|
private:
|
2014-08-15 21:04:34 +04:00
|
|
|
shared_ptr<class CGAL_OGL_Polyhedron> getPolyhedron() const;
|
2014-08-15 01:16:24 +04:00
|
|
|
void buildPolyhedron() const;
|
|
|
|
|
2014-08-15 21:04:34 +04:00
|
|
|
mutable shared_ptr<class CGAL_OGL_Polyhedron> polyhedron;
|
2014-08-15 01:16:24 +04:00
|
|
|
shared_ptr<const CGAL_Nef_polyhedron> N;
|
2013-12-24 10:09:46 +04:00
|
|
|
shared_ptr<const class PolySet> polyset;
|
2011-07-30 23:29:40 +04:00
|
|
|
};
|