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 void SetLineWidth(Width_t lwidth)
Set the line width.
double dist(Rotation3D const &r1, Rotation3D const &r2)
Int_t * fN
number of edge points (GV) fN[0] = number of splines fN[1...n] = number of points in each spline ...
GVizAgedge_t * fGVEdge
Graphviz edge.
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.
virtual Width_t GetLineWidth() const
Return the line width.
virtual Style_t GetLineStyle() const
Return the line style.
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 Paint(Option_t *option="")
Paint this edge with its current attributes.
Double_t * fX
X edge points (GV)
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
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 void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Double_t fArrX
Arrow X position.
TGraphEdge()
Graph Edge default constructor.
virtual Color_t GetLineColor() const
Return the line color.
TGraphNode * fNode2
Second node.
Double_t * fY
X edge points (GV)
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)
Set the line style.
Mother of all ROOT objects.
Double_t fArrY
Arrow Y position.
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 ~TGraphEdge()
Graph Edge default destructor.
virtual void SetAngle(Float_t angle=60)
TGraphNode * fNode1
First node.