67 if (
fX) {
delete []
fX;
fX = 0; }
68 if (
fY) {
delete []
fY;
fY = 0; }
69 if (
fN) {
delete []
fN;
fN = 0; }
81 fGVEdge = (GVizAgedge_t*)agedge((Agraph_t *)gv, n1, n2,
NULL, 1);
83 fGVEdge = (GVizAgedge_t*)agedge((Agraph_t *)gv, n1, n2);
86 Error(
"CreateGVEdge",
"Invalid graphviz graph");
100 for (i=1; i<=
fN[0]; i++) {
120 for (i=1; i<=
fN[0]; i++) {
137 if (
fX) {
delete []
fX;
fX = 0; }
138 if (
fY) {
delete []
fY;
fY = 0; }
139 if (
fN) {
delete []
fN;
fN = 0; }
147 for (i=0; i<np; i++) {
148 bz = ED_spl((Agedge_t*)
fGVEdge)->list[i];
159 for (i=0; i<np; i++) {
160 bz = ED_spl((Agedge_t*)
fGVEdge)->list[i];
163 for (j=0; j<
fN[i+1]; j++) {
164 fX[k] = bz.list[j].x;
165 fY[k] = bz.list[j].y;
190 for (i=1; i<=
fN[0]; i++) {
221 void TGraphEdge::Streamer(
TBuffer &)
virtual Style_t GetLineStyle() const
virtual void SetLineWidth(Width_t lwidth)
double dist(Rotation3D const &r1, Rotation3D const &r2)
void PaintGraph(Int_t npoints, const Double_t *x, const Double_t *y, Option_t *chopt)
Draw the (x,y) as a graph.
Buffer base class used for serializing objects.
An edge object connecting two nodes which can be added in a TGraphStruct.
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
Save line attributes as C++ statement(s) on output stream out.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
void Layout()
Layout this edge in the GraphViz space.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Paint(Option_t *option="")
Paint this edge with its current attributes.
virtual void SetLineColor(Color_t lcolor)
virtual void SetFillColor(Color_t fcolor)
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to an edge.
virtual void PaintArrow(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Float_t arrowsize=0.05, Option_t *option=">")
Draw this arrow.
virtual Color_t GetLineColor() const
A graph node object which can be added in a TGraphStruct.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Returns closest distance in pixels from point (px, py) to a polyline.
GVizAgnode_t * GetGVNode()
virtual void SetLineStyle(Style_t lstyle)
Mother of all ROOT objects.
void CreateGVEdge(GVizAgraph_t *gv)
Create the GraphViz edge into the GraphViz data structure gv.
A Graph is a graphics object made of two arrays X and Y with npoints each.
Defined by an array on N points in a 2-D space.
void SaveAttributes(std::ostream &, const char *)
Save attributes as a C++ statement(s) on output stream out called by TGraphStruct::SavePrimitive.
virtual void SavePrimitive(std::ostream &, Option_t *)
Save primitive as a C++ statement(s) on output stream out.
Draw all kinds of Arrows.
virtual Width_t GetLineWidth() const
virtual ~TGraphEdge()
Graph Edge default destructor.
virtual void SetAngle(Float_t angle=60)