20 #ifndef Tulip_GLGRAPHRENDERER_H
21 #define Tulip_GLGRAPHRENDERER_H
23 #include <tulip/GlGraphRenderingParameters.h>
24 #include <tulip/GlGraphInputData.h>
25 #include <tulip/GlScene.h>
48 GlGraphRenderer(
const GlGraphInputData *inputData):inputData(inputData),graphModified(true),selectionDrawActivate(false),selectionIdMap(NULL),selectionCurrentId(NULL) {
64 virtual void draw(
float lod,
Camera* camera) = 0;
75 virtual void selectEntities(
Camera *camera,RenderingEntitiesFlag type,
int x,
int y,
int w,
int h, std::vector<SelectedEntity>& selectedEntities) = 0;
80 virtual void visitGraph(GlSceneVisitor *visitor,
bool visitHiddenEntities=
false);
86 this->graphModified=graphModified;
91 void visitNodes(
Graph *graph,GlSceneVisitor *visitor,
bool visitHiddenEntities=
false);
92 void visitEdges(
Graph *graph,GlSceneVisitor *visitor,
bool visitHiddenEntities=
false);
94 const GlGraphInputData* inputData;
98 bool selectionDrawActivate;
99 RenderingEntitiesFlag selectionType;
100 std::map<unsigned int, SelectedEntity> *selectionIdMap;
101 unsigned int *selectionCurrentId;