20 #ifndef Tulip_GLGRAPHRENDERER_H 21 #define Tulip_GLGRAPHRENDERER_H 23 #include <unordered_map> 25 #include <tulip/GlScene.h> 26 #include <tulip/tulipconf.h> 31 class GlGraphInputData;
66 virtual void draw(
float lod,
Camera *camera) = 0;
77 virtual void selectEntities(
Camera *camera, RenderingEntitiesFlag type,
int x,
int y,
int w,
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 std::unordered_map<unsigned int, SelectedEntity> *selectionIdMap;
103 unsigned int *selectionCurrentId;
virtual ~GlGraphRenderer()
Destructor.
void setGraphModified(bool graphModified)
This function set if the content of the graph is modified.
Tulip OpenGL camera object.
Class used by GlGraphComposite to render the graph in OpenGL.