TGraphNode Class Reference

#include <TGraphNode.h>

Inheritance diagram for TGraphNode:

TNamed TAttText TAttFill TAttLine TObject TObject List of all members.

Public Member Functions

 TGraphNode ()
 TGraphNode (const char *name, const char *title="")
virtual ~TGraphNode ()
void CreateGVNode (Agraph_t *gv)
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
void SetGVNode (Agnode_t *gvn)
virtual void SetTextAngle (Float_t)
Agnode_t * GetGVNode ()
void Layout ()
virtual void Paint (Option_t *option="")
virtual void SavePrimitive (ostream &, Option_t *)
void SaveAttributes (ostream &)

Protected Attributes

Agnode_t * fGVNode
Double_t fX
Double_t fY
Double_t fH
Double_t fW

Detailed Description

Definition at line 44 of file TGraphNode.h.


Constructor & Destructor Documentation

TGraphNode::TGraphNode (  ) 

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

Definition at line 41 of file TGraphNode.cxx.

References fGVNode, fH, fW, fX, and fY.

TGraphNode::~TGraphNode (  )  [virtual]

Definition at line 55 of file TGraphNode.cxx.


Member Function Documentation

void TGraphNode::CreateGVNode ( Agraph_t *  gv  ) 

Definition at line 63 of file TGraphNode.cxx.

References TObject::Error(), fGVNode, and TNamed::GetName().

Referenced by TGraphStruct::Layout().

Int_t TGraphNode::DistancetoPrimitive ( Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TObject.

Definition at line 76 of file TGraphNode.cxx.

References ROOT::Math::gv_detail::dist(), TEllipse::DistancetoPrimitive(), fH, fW, fX, fY, and TAttFill::SetFillColor().

void TGraphNode::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
) [virtual]

Reimplemented from TObject.

Definition at line 92 of file TGraphNode.cxx.

References TEllipse::ExecuteEvent(), fH, fW, fX, fY, TEllipse::GetR1(), TEllipse::GetR2(), TEllipse::GetX1(), and TEllipse::GetY1().

void TGraphNode::SetGVNode ( Agnode_t *  gvn  )  [inline]

Definition at line 63 of file TGraphNode.h.

References fGVNode.

virtual void TGraphNode::SetTextAngle ( Float_t   )  [inline, virtual]

Reimplemented from TAttText.

Definition at line 64 of file TGraphNode.h.

Agnode_t* TGraphNode::GetGVNode (  )  [inline]

Definition at line 65 of file TGraphNode.h.

References fGVNode.

Referenced by TGraphEdge::CreateGVEdge().

void TGraphNode::Layout (  ) 

Definition at line 106 of file TGraphNode.cxx.

References fGVNode, fH, fW, fX, and fY.

Referenced by TGraphStruct::Layout().

void TGraphNode::Paint ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

Definition at line 125 of file TGraphNode.cxx.

References fH, fW, fX, fY, TAttFill::GetFillColor(), TAttFill::GetFillStyle(), TAttLine::GetLineColor(), TAttLine::GetLineStyle(), TAttLine::GetLineWidth(), TAttText::GetTextColor(), TAttText::GetTextFont(), TAttText::GetTextSize(), TNamed::GetTitle(), TEllipse::PaintEllipse(), TAttFill::SetFillColor(), TAttFill::SetFillStyle(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttLine::SetLineWidth(), and text().

void TGraphNode::SavePrimitive ( ostream &  ,
Option_t  
) [virtual]

Reimplemented from TObject.

Definition at line 150 of file TGraphNode.cxx.

void TGraphNode::SaveAttributes ( ostream &   ) 

Definition at line 157 of file TGraphNode.cxx.

References TNamed::GetName(), TAttFill::SaveFillAttributes(), TAttLine::SaveLineAttributes(), and TAttText::SaveTextAttributes().

Referenced by TGraphStruct::SavePrimitive().


Member Data Documentation

Agnode_t* TGraphNode::fGVNode [protected]

Definition at line 48 of file TGraphNode.h.

Referenced by CreateGVNode(), GetGVNode(), Layout(), SetGVNode(), and TGraphNode().

Double_t TGraphNode::fX [protected]

Definition at line 49 of file TGraphNode.h.

Referenced by DistancetoPrimitive(), ExecuteEvent(), Layout(), Paint(), and TGraphNode().

Double_t TGraphNode::fY [protected]

Definition at line 50 of file TGraphNode.h.

Referenced by DistancetoPrimitive(), ExecuteEvent(), Layout(), Paint(), and TGraphNode().

Double_t TGraphNode::fH [protected]

Definition at line 51 of file TGraphNode.h.

Referenced by DistancetoPrimitive(), ExecuteEvent(), Layout(), Paint(), and TGraphNode().

Double_t TGraphNode::fW [protected]

Definition at line 52 of file TGraphNode.h.

Referenced by DistancetoPrimitive(), ExecuteEvent(), Layout(), Paint(), and TGraphNode().


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