21 #ifndef Tulip_GLGRAPHLOWDETAILSRENDERER_H
22 #define Tulip_GLGRAPHLOWDETAILSRENDERER_H
24 #include <tulip/GlGraphRenderer.h>
28 #include <tulip/Observable.h>
30 #include <tulip/GlGraphRenderingParameters.h>
31 #include <tulip/GlGraphInputData.h>
32 #include <tulip/GlNode.h>
33 #include <tulip/GlEdge.h>
34 #include <tulip/GlQuadTreeLODCalculator.h>
35 #include <tulip/GlScene.h>
51 class TLP_GL_SCOPE GlGraphLowDetailsRenderer :
public GlGraphRenderer,
public Observable {
55 GlGraphLowDetailsRenderer(
const GlGraphInputData *inputData);
57 ~GlGraphLowDetailsRenderer();
59 virtual void draw(
float lod,Camera* camera);
61 void initSelectionRendering(RenderingEntitiesFlag ,std::map<unsigned int, SelectedEntity> &,
unsigned int &) {
67 void initEdgesArray();
68 void initTexArray(
unsigned int glyph, Vec2f tex[4]);
69 void initNodesArray();
72 void removeObservers();
73 void updateObservers();
74 void treatEvent(
const Event &ev);
80 std::vector<Vec2f> points;
81 std::vector<Color> colors;
82 std::vector<GLuint> indices;
84 std::vector<Vec2f> quad_points;
85 std::vector<Color> quad_colors;
86 std::vector<GLuint> quad_indices;
89 LayoutProperty *observedLayoutProperty;
90 ColorProperty *observedColorProperty;
91 SizeProperty *observedSizeProperty;
92 BooleanProperty *observedSelectionProperty;