00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00025 #ifndef _DELAUNAY_2DRENDER_H_ 00026 #define _DELAUNAY_2DRENDER_H_ 00027 00028 #include <vector> 00029 00030 #include "Point.h" 00031 #include "Line.h" 00032 #include "Circle.h" 00033 00034 namespace DelaunayTest 00035 { 00036 00045 class DelaunayTest2dRender 00046 { 00047 public: 00049 DelaunayTest2dRender(void); 00050 00052 ~DelaunayTest2dRender(void); 00053 00057 void LoadPresetConfiguration(int width, int height); 00058 00060 void BeginFrame(void); 00061 00066 void SetMaterial(float red, float green, float blue); 00067 00071 void DrawPoints(const std::vector<Point>& points); 00072 00075 void DrawLines(const std::vector<Line>& lines); 00076 00079 void DrawCircles(const std::vector<Circle>& circles); 00080 00082 void EndFrame(void); 00083 00084 private: 00086 const float m_depth; 00087 00089 const float m_pointSize; 00090 00092 const int m_circleSegmentsCount; 00093 00095 DelaunayTest2dRender(const DelaunayTest2dRender&); 00096 00098 DelaunayTest2dRender& operator=(const DelaunayTest2dRender&); 00099 }; 00100 00101 } 00102 00103 #endif