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++) {
221void TGraphEdge::Streamer(
TBuffer &)
Draw all kinds of Arrows.
virtual Color_t GetLineColor() const
Return the line color.
virtual Width_t GetLineWidth() const
Return the line width.
virtual Style_t GetLineStyle() const
Return the line style.
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.
Buffer base class used for serializing objects.
An edge object connecting two nodes which can be added in a TGraphStruct.
void CreateGVEdge(GVizAgraph_t *gv)
Create the GraphViz edge into the GraphViz data structure gv.
virtual ~TGraphEdge()
Graph Edge default destructor.
TGraphNode * fNode1
First node.
GVizAgedge_t * fGVEdge
Graphviz edge.
TGraphNode * fNode2
Second node.
virtual void SavePrimitive(std::ostream &, Option_t *)
Save primitive as a C++ statement(s) on output stream out.
void Layout()
Layout this edge in the GraphViz space.
Int_t * fN
number of edge points (GV) fN[0] = number of splines fN[1...n] = number of points in each spline
Double_t fArrY
Arrow Y position.
Double_t * fY
X edge points (GV)
TGraphEdge()
Graph Edge default constructor.
Double_t fArrX
Arrow X position.
void SaveAttributes(std::ostream &, const char *)
Save attributes as a C++ statement(s) on output stream out called by TGraphStruct::SavePrimitive.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to an edge.
Double_t * fX
X edge points (GV)
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual void Paint(Option_t *option="")
Paint this edge with its current attributes.
A graph node object which can be added in a TGraphStruct.
GVizAgnode_t * GetGVNode()
A Graph is a graphics object made of two arrays X and Y with npoints each.
Mother of all ROOT objects.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Defined by an array on N points in a 2-D space.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Returns closest distance in pixels from point (px, py) to a polyline.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
double dist(Rotation3D const &r1, Rotation3D const &r2)