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;
160 virtual void getXML(std::string &outString);
165 virtual void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
171 void treatEvent(
const Event& evt);
175 GlGraphRenderingParameters parameters;
176 GlGraphInputData inputData;
179 GlGraphRenderer *graphRenderer;
182 std::set<node> metaNodes;