#include <TGraphStruct.h>
Inheritance diagram for TGraphStruct:
Public Member Functions | |
TGraphStruct () | |
virtual | ~TGraphStruct () |
void | AddEdge (TGraphEdge *edge) |
void | AddNode (TGraphNode *node) |
TGraphEdge * | AddEdge (TGraphNode *n1, TGraphNode *n2) |
TGraphNode * | AddNode (const char *name, const char *title="") |
void | Draw (Option_t *option="") |
void | DumpAsDotFile (const char *filename) |
TList * | GetListOfNodes () const |
TList * | GetListOfEdges () 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 |
TList * | fNodes |
TList * | fEdges |
Double_t | fMargin |
Definition at line 40 of file TGraphStruct.h.
TGraphStruct::TGraphStruct | ( | ) |
TGraphStruct::~TGraphStruct | ( | ) | [virtual] |
void TGraphStruct::AddEdge | ( | TGraphEdge * | edge | ) |
void TGraphStruct::AddNode | ( | TGraphNode * | node | ) |
TGraphEdge * TGraphStruct::AddEdge | ( | TGraphNode * | n1, | |
TGraphNode * | n2 | |||
) |
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 | ) |
TList* TGraphStruct::GetListOfNodes | ( | ) | const [inline] |
TList* TGraphStruct::GetListOfEdges | ( | ) | const [inline] |
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] |
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] |
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] |