21 #ifndef Tulip_GLGRAPHLOWDETAILSRENDERER_H
22 #define Tulip_GLGRAPHLOWDETAILSRENDERER_H
28 #if defined(__APPLE__)
29 #include <OpenGL/gl.h>
30 #include <OpenGL/glu.h>
34 # if defined(__WIN32__)
35 # include <GL/glext.h>
41 #include <tulip/Observable.h>
42 #include <tulip/GlGraphRenderer.h>
51 class BooleanProperty;
63 class TLP_GL_SCOPE GlGraphLowDetailsRenderer :
public GlGraphRenderer,
public Observable {
67 GlGraphLowDetailsRenderer(
const GlGraphInputData *inputData);
69 ~GlGraphLowDetailsRenderer();
71 virtual void draw(
float lod,Camera* camera);
73 void initSelectionRendering(RenderingEntitiesFlag ,std::map<unsigned int, SelectedEntity> &,
unsigned int &) {
79 void initEdgesArray();
80 void initTexArray(
unsigned int glyph, Vec2f tex[4]);
81 void initNodesArray();
84 void removeObservers();
85 void updateObservers();
86 void treatEvent(
const Event &ev);
92 std::vector<Vec2f> points;
93 std::vector<Color> colors;
94 std::vector<GLuint> indices;
96 std::vector<Vec2f> quad_points;
97 std::vector<Color> quad_colors;
98 std::vector<GLuint> quad_indices;
100 Graph *observedGraph;
101 LayoutProperty *observedLayoutProperty;
102 ColorProperty *observedColorProperty;
103 SizeProperty *observedSizeProperty;
104 BooleanProperty *observedSelectionProperty;