21 #ifndef Tulip_GLGRAPHLOWDETAILSRENDERER_H
22 #define Tulip_GLGRAPHLOWDETAILSRENDERER_H
24 #include <tulip/OpenGlIncludes.h>
28 #include <tulip/Observable.h>
29 #include <tulip/GlGraphRenderer.h>
38 class BooleanProperty;
50 class TLP_GL_SCOPE GlGraphLowDetailsRenderer :
public GlGraphRenderer,
public Observable {
53 GlGraphLowDetailsRenderer(
const GlGraphInputData *inputData);
55 ~GlGraphLowDetailsRenderer()
override;
57 void draw(
float lod, Camera *camera)
override;
60 void initEdgesArray();
61 void initTexArray(
unsigned int glyph, Vec2f tex[4]);
62 void initNodesArray();
65 void removeObservers();
66 void updateObservers();
67 void treatEvent(
const Event &ev)
override;
73 std::vector<Vec2f> points;
74 std::vector<Color> colors;
75 std::vector<GLuint> indices;
77 std::vector<Vec2f> quad_points;
78 std::vector<Color> quad_colors;
79 std::vector<GLuint> quad_indices;
82 LayoutProperty *observedLayoutProperty;
83 ColorProperty *observedColorProperty;
84 SizeProperty *observedSizeProperty;
85 BooleanProperty *observedSelectionProperty;