TGraphStruct Class Reference

#include <TGraphStruct.h>

Inheritance diagram for TGraphStruct:

TObject List of all members.

Public Member Functions

 TGraphStruct ()
virtual ~TGraphStruct ()
void AddEdge (TGraphEdge *edge)
void AddNode (TGraphNode *node)
TGraphEdgeAddEdge (TGraphNode *n1, TGraphNode *n2)
TGraphNodeAddNode (const char *name, const char *title="")
void Draw (Option_t *option="")
void DumpAsDotFile (const char *filename)
TListGetListOfNodes () const
TListGetListOfEdges () const
Int_t Layout ()
virtual void SavePrimitive (ostream &out, Option_t *option="")
void SetMargin (Double_t m=10)

Protected Attributes

Agraph_t * fGVGraph
GVC_s * fGVC
TListfNodes
TListfEdges
Double_t fMargin

Detailed Description

Definition at line 40 of file TGraphStruct.h.


Constructor & Destructor Documentation

TGraphStruct::TGraphStruct (  ) 

TGraphStruct::~TGraphStruct (  )  [virtual]

Definition at line 76 of file TGraphStruct.cxx.

References fEdges, fGVC, fGVGraph, and fNodes.


Member Function Documentation

void TGraphStruct::AddEdge ( TGraphEdge edge  ) 

Definition at line 91 of file TGraphStruct.cxx.

References TList::Add(), and fEdges.

void TGraphStruct::AddNode ( TGraphNode node  ) 

Definition at line 119 of file TGraphStruct.cxx.

References TList::Add(), and fNodes.

TGraphEdge * TGraphStruct::AddEdge ( TGraphNode n1,
TGraphNode n2 
)

Definition at line 102 of file TGraphStruct.cxx.

References TList::Add(), and fEdges.

TGraphNode * TGraphStruct::AddNode ( const char *  name,
const char *  title = "" 
)

Definition at line 130 of file TGraphStruct.cxx.

References TList::Add(), TList::FindObject(), and fNodes.

void TGraphStruct::Draw ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

Definition at line 165 of file TGraphStruct.cxx.

References TList::After(), TObject::AppendPad(), TObject::Draw(), fEdges, fGVGraph, TList::First(), fMargin, fNodes, TCollection::GetSize(), gPad, i, and Layout().

void TGraphStruct::DumpAsDotFile ( const char *  filename  ) 

Definition at line 149 of file TGraphStruct.cxx.

References fclose(), fGVGraph, fopen, and Layout().

TList* TGraphStruct::GetListOfNodes (  )  const [inline]

Definition at line 61 of file TGraphStruct.h.

References fNodes.

TList* TGraphStruct::GetListOfEdges (  )  const [inline]

Definition at line 62 of file TGraphStruct.h.

References fEdges.

Int_t TGraphStruct::Layout (  ) 

Definition at line 207 of file TGraphStruct.cxx.

References TList::After(), TGraphEdge::CreateGVEdge(), TGraphNode::CreateGVNode(), fEdges, fGVC, fGVGraph, TList::First(), fNodes, TCollection::GetSize(), i, TGraphNode::Layout(), and TGraphEdge::Layout().

Referenced by Draw(), and DumpAsDotFile().

void TGraphStruct::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TObject.

Definition at line 278 of file TGraphStruct.cxx.

References TList::After(), fEdges, TList::First(), fNodes, Form(), TNamed::GetName(), TGraphEdge::GetNode1(), TGraphEdge::GetNode2(), TCollection::GetSize(), TNamed::GetTitle(), i, TGraphNode::SaveAttributes(), and TGraphEdge::SaveAttributes().

void TGraphStruct::SetMargin ( Double_t  m = 10  )  [inline]

Definition at line 65 of file TGraphStruct.h.

References fMargin, and m.


Member Data Documentation

Agraph_t* TGraphStruct::fGVGraph [protected]

Definition at line 44 of file TGraphStruct.h.

Referenced by Draw(), DumpAsDotFile(), Layout(), and ~TGraphStruct().

GVC_s* TGraphStruct::fGVC [protected]

Definition at line 45 of file TGraphStruct.h.

Referenced by Layout(), and ~TGraphStruct().

TList* TGraphStruct::fNodes [protected]

Definition at line 46 of file TGraphStruct.h.

Referenced by AddNode(), Draw(), GetListOfNodes(), Layout(), SavePrimitive(), and ~TGraphStruct().

TList* TGraphStruct::fEdges [protected]

Definition at line 47 of file TGraphStruct.h.

Referenced by AddEdge(), Draw(), GetListOfEdges(), Layout(), SavePrimitive(), and ~TGraphStruct().

Double_t TGraphStruct::fMargin [protected]

Definition at line 48 of file TGraphStruct.h.

Referenced by Draw(), and SetMargin().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:46 2011 for ROOT_528-00b_version by  doxygen 1.5.1