20 #ifndef Tulip_GLGRAPHRENDERER_H
21 #define Tulip_GLGRAPHRENDERER_H
23 #include <tulip/tuliphash.h>
25 #include <tulip/GlScene.h>
26 #include <tulip/tulipconf.h>
31 class GlGraphInputData;
78 int h, std::vector<SelectedEntity> &selectedEntities) = 0;
83 virtual void visitGraph(GlSceneVisitor *visitor,
bool visitHiddenEntities =
false);
89 this->graphModified = graphModified;
93 void visitNodes(
Graph *graph, GlSceneVisitor *visitor);
94 void visitEdges(
Graph *graph, GlSceneVisitor *visitor);
96 const GlGraphInputData *inputData;
100 bool selectionDrawActivate;
101 RenderingEntitiesFlag selectionType;
102 tlp_hash_map<unsigned int, SelectedEntity> *selectionIdMap;
103 unsigned int *selectionCurrentId;
Tulip OpenGL camera object.
Class used by GlGraphComposite to render the graph in OpenGL.
virtual void selectEntities(Camera *camera, RenderingEntitiesFlag type, int x, int y, int w, int h, std::vector< SelectedEntity > &selectedEntities)=0
This function is call by GlGraphComposite to selected entities into the graph.
void setGraphModified(bool graphModified)
This function set if the content of the graph is modified.
GlGraphRenderer(const GlGraphInputData *inputData)
Constructor.
virtual ~GlGraphRenderer()
Destructor.
virtual void visitGraph(GlSceneVisitor *visitor, bool visitHiddenEntities=false)
You can use this function if you want to inject a visitor on the graph.
virtual void draw(float lod, Camera *camera)=0
This function is call by GlGraphComposite to draw the graph.