21 #ifndef Tulip_GLGRAPHLOWDETAILSRENDERER_H
22 #define Tulip_GLGRAPHLOWDETAILSRENDERER_H
28 #if defined(__APPLE__)
29 #include <OpenGL/gl.h>
36 #include <tulip/Observable.h>
37 #include <tulip/GlGraphRenderer.h>
46 class BooleanProperty;
58 class TLP_GL_SCOPE GlGraphLowDetailsRenderer :
public GlGraphRenderer,
public Observable {
62 GlGraphLowDetailsRenderer(
const GlGraphInputData *inputData);
64 ~GlGraphLowDetailsRenderer();
66 virtual void draw(
float lod,Camera* camera);
68 void initSelectionRendering(RenderingEntitiesFlag ,std::map<unsigned int, SelectedEntity> &,
unsigned int &) {
74 void initEdgesArray();
75 void initTexArray(
unsigned int glyph, Vec2f tex[4]);
76 void initNodesArray();
79 void removeObservers();
80 void updateObservers();
81 void treatEvent(
const Event &ev);
87 std::vector<Vec2f> points;
88 std::vector<Color> colors;
89 std::vector<GLuint> indices;
91 std::vector<Vec2f> quad_points;
92 std::vector<Color> quad_colors;
93 std::vector<GLuint> quad_indices;
96 LayoutProperty *observedLayoutProperty;
97 ColorProperty *observedColorProperty;
98 SizeProperty *observedSizeProperty;
99 BooleanProperty *observedSelectionProperty;