tlp::GlGraphComposite(3) Class use to represent a graph.

SYNOPSIS


#include <GlGraphComposite.h>

Inherits tlp::GlComposite.

Public Member Functions


GlGraphComposite (Graph *graph)

~GlGraphComposite ()

const GlGraphRenderingParameters & getRenderingParameters ()

void setRenderingParameters (const GlGraphRenderingParameters &parameter)

GlGraphInputData * getInputData ()

virtual void acceptVisitor (GlSceneVisitor *visitor)

virtual void addNode (Graph *, const node)

virtual void addEdge (Graph *, const edge)

virtual void delNode (Graph *, const node)

virtual void delEdge (Graph *, const edge)

virtual void destroy (Graph *)

void getXML (xmlNodePtr rootNode)

void setWithXML (xmlNodePtr rootNode)

void setDisplayNodes (bool display)

void setDisplayMetaNodes (bool display)

void setDisplayEdges (bool display)

void setDisplayNodesLabel (bool display)

void setDisplayMetaNodesLabel (bool display)

void setDisplayEdgesLabel (bool display)

void setSelectedNodesStencil (int stencil)

void setSelectedMetaNodesStencil (int stencil)

void setSelectedEdgesStencil (int stencil)

void setNodesStencil (int stencil)

void setMetaNodesStencil (int stencil)

void setEdgesStencil (int stencil)

void setNodesLabelStencil (int stencil)

void setMetaNodesLabelStencil (int stencil)

void setEdgesLabelStencil (int stencil)

bool isDisplayNodes ()

bool isDisplayMetaNodes ()

bool isDisplayEdges ()

bool isDisplayNodesLabel ()

bool isDisplayMetaNodesLabel ()

bool isDisplayEdgesLabel ()

int getSelectedNodesStencil ()

int getSelectedMetaNodesStencil ()

int getSelectedEdgesStencil ()

int getNodesStencil ()

int getMetaNodesStencil ()

int getEdgesStencil ()

int getNodesLabelStencil ()

int getMetaNodesLabelStencil ()

int getEdgesLabelStencil ()

Protected Member Functions


void buildSortedList ()

Protected Attributes


GlGraphRenderingParameters parameters

GlGraphInputData inputData

bool haveToSort

std::list< node > sortedNodes

std::list< edge > sortedEdges

Detailed Description

Class use to represent a graph.

GlComposite use to represent a graph with nodes, metanodes and edges

Constructor & Destructor Documentation

tlp::GlGraphComposite::GlGraphComposite (Graph * graph)Build a GlGraphComposite with the graph data

tlp::GlGraphComposite::~GlGraphComposite ()

Member Function Documentation

virtual void tlp::GlGraphComposite::acceptVisitor (GlSceneVisitor * visitor) [virtual]Function used to visit composite's children

Reimplemented from tlp::GlComposite.

virtual void tlp::GlGraphComposite::addEdge (Graph *, const edge) [inline, virtual]Function use by the GraphObserver when an edge is create in the graph

virtual void tlp::GlGraphComposite::addNode (Graph *, const node) [inline, virtual]Function use by the GraphObserver when a node is create in the graph

void tlp::GlGraphComposite::buildSortedList () [protected]

virtual void tlp::GlGraphComposite::delEdge (Graph *, const edge) [inline, virtual]Function use by the GraphObserver when an edge is delete in the graph

virtual void tlp::GlGraphComposite::delNode (Graph *, const node) [inline, virtual]Function use by the GraphObserver when a node is delete in the graph

virtual void tlp::GlGraphComposite::destroy (Graph *) [inline, virtual]Function use by the GraphObserver when the graph is delete

int tlp::GlGraphComposite::getEdgesLabelStencil () [inline]

int tlp::GlGraphComposite::getEdgesStencil () [inline]

GlGraphInputData* tlp::GlGraphComposite::getInputData ()Return the inputData use by the composite

int tlp::GlGraphComposite::getMetaNodesLabelStencil () [inline]

int tlp::GlGraphComposite::getMetaNodesStencil () [inline]

int tlp::GlGraphComposite::getNodesLabelStencil () [inline]

int tlp::GlGraphComposite::getNodesStencil () [inline]

const GlGraphRenderingParameters& tlp::GlGraphComposite::getRenderingParameters ()Return the rendering parameters use for rendering

int tlp::GlGraphComposite::getSelectedEdgesStencil () [inline]

int tlp::GlGraphComposite::getSelectedMetaNodesStencil () [inline]

int tlp::GlGraphComposite::getSelectedNodesStencil () [inline]

void tlp::GlGraphComposite::getXML (xmlNodePtr rootNode) [virtual]Get the data in XML form

Reimplemented from tlp::GlComposite.

bool tlp::GlGraphComposite::isDisplayEdges () [inline]

bool tlp::GlGraphComposite::isDisplayEdgesLabel () [inline]

bool tlp::GlGraphComposite::isDisplayMetaNodes () [inline]

bool tlp::GlGraphComposite::isDisplayMetaNodesLabel () [inline]

bool tlp::GlGraphComposite::isDisplayNodes () [inline]

bool tlp::GlGraphComposite::isDisplayNodesLabel () [inline]

void tlp::GlGraphComposite::setDisplayEdges (bool display) [inline]

void tlp::GlGraphComposite::setDisplayEdgesLabel (bool display) [inline]

void tlp::GlGraphComposite::setDisplayMetaNodes (bool display) [inline]

void tlp::GlGraphComposite::setDisplayMetaNodesLabel (bool display) [inline]

void tlp::GlGraphComposite::setDisplayNodes (bool display) [inline]

void tlp::GlGraphComposite::setDisplayNodesLabel (bool display) [inline]

void tlp::GlGraphComposite::setEdgesLabelStencil (int stencil) [inline]

void tlp::GlGraphComposite::setEdgesStencil (int stencil) [inline]

void tlp::GlGraphComposite::setMetaNodesLabelStencil (int stencil) [inline]

void tlp::GlGraphComposite::setMetaNodesStencil (int stencil) [inline]

void tlp::GlGraphComposite::setNodesLabelStencil (int stencil) [inline]

void tlp::GlGraphComposite::setNodesStencil (int stencil) [inline]

void tlp::GlGraphComposite::setRenderingParameters (const GlGraphRenderingParameters & parameter)Set the rendering parameters use for rendering

void tlp::GlGraphComposite::setSelectedEdgesStencil (int stencil) [inline]

void tlp::GlGraphComposite::setSelectedMetaNodesStencil (int stencil) [inline]

void tlp::GlGraphComposite::setSelectedNodesStencil (int stencil) [inline]

void tlp::GlGraphComposite::setWithXML (xmlNodePtr rootNode) [virtual]Set the data with XML

Reimplemented from tlp::GlComposite.

Member Data Documentation

bool tlp::GlGraphComposite::haveToSort [protected]

GlGraphInputData tlp::GlGraphComposite::inputData [protected]

GlGraphRenderingParameters tlp::GlGraphComposite::parameters [protected]

std::list<edge> tlp::GlGraphComposite::sortedEdges [protected]

std::list<node> tlp::GlGraphComposite::sortedNodes [protected]

Author

Generated automatically by Doxygen for Tulip Open GL Library from the source code.