20 #ifndef Tulip_GLGRAPHCOMPOSITE_H
21 #define Tulip_GLGRAPHCOMPOSITE_H
23 #include <tulip/GlComposite.h>
24 #include <tulip/Observable.h>
25 #include <tulip/GlGraphRenderingParameters.h>
26 #include <tulip/GlGraphInputData.h>
27 #include <tulip/GlScene.h>
32 class GlGraphRenderer;
99 GlGraphInputData *getInputData();
105 return inputData.getGraph();
113 void acceptVisitor(GlSceneVisitor *visitor)
override;
117 virtual void acceptVisitorOnGraph(GlSceneVisitor *visitor);
119 void draw(
float lod,
Camera *camera)
override;
121 virtual void selectEntities(
Camera *camera, RenderingEntitiesFlag type,
int x,
int y,
int w,
122 int h, std::vector<SelectedEntity> &selectedEntities);
127 std::set<node> &getMetaNodes() {
131 Graph *graph = inputData.getGraph();
133 for (
auto n : graph->
nodes()) {
137 nodesModified =
false;
143 GlGraphRenderer *getRenderer() {
144 return graphRenderer;
158 void getXML(std::string &outString)
override;
163 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition)
override;
168 void treatEvent(
const Event &evt)
override;
172 GlGraphRenderingParameters parameters;
173 GlGraphInputData inputData;
176 GlGraphRenderer *graphRenderer;
179 std::set<node> metaNodes;