Public Member Functions | Private Attributes

GVGraph Class Reference

#include <graphvizwrapper.h>

Inheritance diagram for GVGraph:
Collaboration diagram for GVGraph:

List of all members.

Public Member Functions

 GVGraph ()
 ~GVGraph ()
bool addEdge (const QString &s1, const QString &s2, const QString &l)
bool addNode (const QString &name)
int getEdgeCount () const
QSharedPointer< IGVNodegetFirstNode () const
QSharedPointer< IGVNodegetLastNode () const
QSharedPointer< IGVNodegetNode (const QString &name) const
int getNodeCount () const
void layoutGraphUsingDot ()
void renderToFile (const QString &fileName)

Private Attributes

Agraph_t * m_graph
GVC_t * m_gvc
bool m_layout

Detailed Description

Definition at line 55 of file graphvizwrapper.h.


Constructor & Destructor Documentation

GVGraph::GVGraph (  ) 

Definition at line 129 of file graphvizwrapper.cpp.

References m_graph, and m_gvc.

GVGraph::~GVGraph (  ) 

Definition at line 139 of file graphvizwrapper.cpp.

References DBGLOG_GV, m_graph, m_gvc, and m_layout.


Member Function Documentation

bool GVGraph::addEdge ( const QString &  s1,
const QString &  s2,
const QString &  l 
) [virtual]

Implements IGVGraph.

Definition at line 200 of file graphvizwrapper.cpp.

References m_graph, RELLOG, and RELLOG_GV.

bool GVGraph::addNode ( const QString &  name  )  [virtual]

Implements IGVGraph.

Definition at line 166 of file graphvizwrapper.cpp.

References m_graph, and RELLOG_GV.

int GVGraph::getEdgeCount (  )  const [virtual]

Implements IGVGraph.

Definition at line 219 of file graphvizwrapper.cpp.

References m_graph.

QSharedPointer< IGVNode > GVGraph::getFirstNode (  )  const [virtual]

Implements IGVGraph.

Definition at line 188 of file graphvizwrapper.cpp.

References m_graph.

QSharedPointer< IGVNode > GVGraph::getLastNode (  )  const [virtual]

Implements IGVGraph.

Definition at line 194 of file graphvizwrapper.cpp.

References m_graph.

QSharedPointer< IGVNode > GVGraph::getNode ( const QString &  name  )  const [virtual]

Implements IGVGraph.

Definition at line 182 of file graphvizwrapper.cpp.

References m_graph.

int GVGraph::getNodeCount (  )  const [virtual]

Implements IGVGraph.

Definition at line 177 of file graphvizwrapper.cpp.

References m_graph.

void GVGraph::layoutGraphUsingDot (  )  [virtual]

Implements IGVGraph.

Definition at line 148 of file graphvizwrapper.cpp.

References m_graph, m_gvc, and m_layout.

Referenced by renderToFile().

Here is the caller graph for this function:

void GVGraph::renderToFile ( const QString &  fileName  )  [virtual]

Implements IGVGraph.

Definition at line 159 of file graphvizwrapper.cpp.

References layoutGraphUsingDot(), m_graph, m_gvc, and m_layout.

Here is the call graph for this function:


Member Data Documentation

Agraph_t* GVGraph::m_graph [private]
GVC_t* GVGraph::m_gvc [private]

Definition at line 75 of file graphvizwrapper.h.

Referenced by GVGraph(), layoutGraphUsingDot(), renderToFile(), and ~GVGraph().

bool GVGraph::m_layout [private]

Definition at line 76 of file graphvizwrapper.h.

Referenced by layoutGraphUsingDot(), renderToFile(), and ~GVGraph().


The documentation for this class was generated from the following files: