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 {
54 GlGraphLowDetailsRenderer(
const GlGraphInputData *inputData);
56 ~GlGraphLowDetailsRenderer();
58 virtual void draw(
float lod,Camera* camera);
60 void initSelectionRendering(RenderingEntitiesFlag ,std::map<unsigned int, SelectedEntity> &,
unsigned int &) {
66 void initEdgesArray();
67 void initTexArray(
unsigned int glyph, Vec2f tex[4]);
68 void initNodesArray();
71 void removeObservers();
72 void updateObservers();
73 void treatEvent(
const Event &ev);
79 std::vector<Vec2f> points;
80 std::vector<Color> colors;
81 std::vector<GLuint> indices;
83 std::vector<Vec2f> quad_points;
84 std::vector<Color> quad_colors;
85 std::vector<GLuint> quad_indices;
88 LayoutProperty *observedLayoutProperty;
89 ColorProperty *observedColorProperty;
90 SizeProperty *observedSizeProperty;
91 BooleanProperty *observedSelectionProperty;