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;
59 void initSelectionRendering(RenderingEntitiesFlag, std::map<unsigned int, SelectedEntity> &,
65 void initEdgesArray();
66 void initTexArray(
unsigned int glyph, Vec2f tex[4]);
67 void initNodesArray();
70 void removeObservers();
71 void updateObservers();
72 void treatEvent(
const Event &ev)
override;
78 std::vector<Vec2f> points;
79 std::vector<Color> colors;
80 std::vector<GLuint> indices;
82 std::vector<Vec2f> quad_points;
83 std::vector<Color> quad_colors;
84 std::vector<GLuint> quad_indices;
87 LayoutProperty *observedLayoutProperty;
88 ColorProperty *observedColorProperty;
89 SizeProperty *observedSizeProperty;
90 BooleanProperty *observedSelectionProperty;