20 #ifndef Tulip_GLGRAPHCOMPOSITE_H
21 #define Tulip_GLGRAPHCOMPOSITE_H
23 #include <tulip/GlComposite.h>
27 #include <tulip/Observable.h>
29 #include <tulip/GlGraphRenderingParameters.h>
30 #include <tulip/GlGraphInputData.h>
31 #include <tulip/GlScene.h>
32 #include <tulip/GlGraphRenderer.h>
102 GlGraphInputData* getInputData();
108 return inputData.getGraph();
116 virtual void acceptVisitor(GlSceneVisitor *visitor);
120 virtual void acceptVisitorOnGraph(GlSceneVisitor *visitor);
122 virtual void draw(
float lod,
Camera* camera);
124 virtual void selectEntities(
Camera *camera,RenderingEntitiesFlag type,
int x,
int y,
int w,
int h, std::vector<SelectedEntity>& selectedEntities);
129 std::set<node> &getMetaNodes() {
133 Graph *graph=inputData.getGraph();
134 Iterator<node>* nodesIterator = graph->
getNodes();
136 while (nodesIterator->hasNext()) {
137 node n=nodesIterator->next();
143 delete nodesIterator;
151 GlGraphRenderer *getRenderer() {
152 return graphRenderer;
165 virtual void getXML(std::string &outString);
170 virtual void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
176 void treatEvent(
const Event& evt);
180 GlGraphRenderingParameters parameters;
181 GlGraphInputData inputData;
184 GlGraphRenderer *graphRenderer;
187 std::set<node> metaNodes;