Tulip
4.6.0
Better Visualization Through Research
|
#include <GlGraphComposite.h>
Public Member Functions | |
GlGraphComposite (Graph *graph, GlGraphRenderer *graphRenderer=NULL) | |
GlGraphComposite (Graph *graph, GlScene *scene) | |
~GlGraphComposite () | |
Graph * | getGraph () |
GlGraphInputData * | getInputData () |
const GlGraphRenderingParameters & | getRenderingParameters () |
GlGraphRenderingParameters * | getRenderingParametersPointer () |
virtual void | getXML (std::string &outString) |
void | setRenderingParameters (const GlGraphRenderingParameters ¶meter) |
virtual void | setWithXML (const std::string &inString, unsigned int ¤tPosition) |
Protected Attributes | |
GlGraphRenderer * | graphRenderer |
GlGraphInputData | inputData |
std::set< node > | metaNodes |
bool | nodesModified |
GlGraphRenderingParameters | parameters |
Graph * | rootGraph |
Class use to visualize graph in OpenGL Tulip engine.
GlSimpleEntity specialisation used to visualize graph in GlScene system
To visualize graph you have to create a new GlGraphComposite and add it to a GlLayer of a GlScene After that you can change some visualize parameters throw GlGraphRenderingParameters class
To render the graph in OpenGL, GlGraphComposite use a GlGraphRenderer. So if you want to change the system to render the graph, you have to create a new GlGraphRender
Definition at line 50 of file GlGraphComposite.h.
tlp::GlGraphComposite::GlGraphComposite | ( | Graph * | graph, |
GlGraphRenderer * | graphRenderer = NULL |
||
) |
Build a GlGraphComposite with the graph data.
You can specify a GlGraphRenderer, if you don't do this a GlGraphHighDetailsRenderer will be used to display the graph
tlp::GlGraphComposite::GlGraphComposite | ( | Graph * | graph, |
GlScene * | scene | ||
) |
Build a GlGraphComposite with the graph data.
Is better to use the other one constructor
This graph composite is associated to the scene passed in parameter
Destructor.
Graph* tlp::GlGraphComposite::getGraph | ( | ) | [inline] |
Return the graph used by this GlGraphComposite.
Definition at line 103 of file GlGraphComposite.h.
GlGraphInputData* tlp::GlGraphComposite::getInputData | ( | ) |
Return the inputData use by the composite.
In GlGraphInputData you have properties used to render the graph
Return a copy of rendering parameters use for rendering.
So after you have to call setRenderingParameters
Return a pointer on rendering parameters used for rendering.
With this function you don't have to call setRenderingParameters() function
virtual void tlp::GlGraphComposite::getXML | ( | std::string & | outString | ) | [virtual] |
Function to export data in outString (in XML format)
Reimplemented from tlp::GlComposite.
void tlp::GlGraphComposite::setRenderingParameters | ( | const GlGraphRenderingParameters & | parameter | ) |
Set the rendering parameters use for rendering.
virtual void tlp::GlGraphComposite::setWithXML | ( | const std::string & | inString, |
unsigned int & | currentPosition | ||
) | [virtual] |
Function to set data with inString (in XML format)
Reimplemented from tlp::GlComposite.