#include <DCEdge.h>
Public Member Functions | |
| DCEdge () | |
| DCEdge (DCVertex< T > *Vert, DCEdge< T > *nextEdge, float m, float xm, float ym, float wm, float wxm, float wym) | |
| virtual | ~DCEdge () |
| DCVertex< T > * | GetEnd () |
| DCEdge< T > * | GetNext () |
| float | GetMetric () const |
| float | GetXMetric () const |
| float | GetYMetric () const |
| float | GetWeighMetric () const |
| float | GetXWeighMetric () const |
| float | GetYWeighMetric () const |
| virtual void | Print (Option_t *option="") const |
| void | DrawThisEdge (DCVertex< T > *vert, Option_t *option="") |
Private Attributes | |
| float | metric |
| float | xmetric |
| float | ymetric |
| float | wmetric |
| float | xwmetric |
| float | ywmetric |
| DCVertex< T > * | end |
| DCEdge< T > * | next |
|
|||||||||
|
Definition at line 18 of file DCEdge.h. References DCEdge< T >::end, DCEdge< T >::metric, and DCEdge< T >::next.
|
|
||||||||||||||||||||||||||||||||||||||||
|
Definition at line 19 of file DCEdge.h. References DCEdge< T >::end, DCEdge< T >::metric, DCEdge< T >::next, DCEdge< T >::wmetric, DCEdge< T >::xmetric, DCEdge< T >::xwmetric, DCEdge< T >::ymetric, and DCEdge< T >::ywmetric. 00021 {metric=m; xmetric=xm, ymetric=ym;
00022 wmetric=wm; xwmetric=wxm; ywmetric=wym;
00023 end=Vert; next=nextEdge;}
|
|
|||||||||
|
Definition at line 25 of file DCEdge.h. 00025 {delete next;}
|
|
||||||||||||||||
|
Definition at line 68 of file DCEdge.h. References DCVertex< T >::Draw(), DCEdge< T >::end, DCVertex< T >::GetData(), DCEdge< T >::metric, and DCEdge< T >::next. Referenced by DCVertex< T >::DrawEdges(). 00069 {
00070 // cout<<"in DCEdge::DrawThisEdge"<<endl;
00071 // cout<<"Drawing Edge from ";
00072 // vert->Print();
00073 // cout<<" to ";
00074 // end->Print();
00075 // cout<<endl;
00076 end->GetData()->Draw();
00077
00078 float x1=0.;
00079 float y1=0.;
00080 float z1=0.;
00081 vert->GetData()->GetData(x1,y1,z1);
00082
00083 float x2=0.;
00084 float y2=0.;
00085 float z2=0.;
00086 end->GetData()->GetData(x2,y2,z2);
00087 TLine *l = new TLine(x1,y1,x2,y2);
00088 l->Draw();
00089
00090 float xtext = (x1+x2)/2.;
00091 float ytext = (y1+y2)/2.;
00092 char dist[10];
00093 sprintf(dist,"d=%.1f",metric);
00094 TText *txt = new TText();
00095 txt->SetTextSize(.02);
00096 txt->DrawText(xtext,ytext,dist);
00097
00098 if(next!=0){
00099 // cout<<"going on to next edge"<<endl;
00100 next->DrawThisEdge(vert,t);
00101 }
00102
00103 }
|
|
|||||||||
|
Definition at line 27 of file DCEdge.h. Referenced by MSTCalcAna::GraphLoop(). 00027 {return end;}
|
|
|||||||||
|
Definition at line 29 of file DCEdge.h. Referenced by DCVertex< T >::ConnectTo(), DCGraph< T >::GetAllWeights(), and MSTCalcAna::GraphLoop(). 00029 {return metric;}
|
|
|||||||||
|
Definition at line 28 of file DCEdge.h. Referenced by DCGraph< T >::GetAllWeights(), and MSTCalcAna::GraphLoop(). 00028 {return next;}
|
|
|||||||||
|
Definition at line 33 of file DCEdge.h. 00033 {return wmetric;}
|
|
|||||||||
|
Definition at line 30 of file DCEdge.h. 00030 {return xmetric;}
|
|
|||||||||
|
Definition at line 34 of file DCEdge.h. 00034 {return xwmetric;}
|
|
|||||||||
|
Definition at line 31 of file DCEdge.h. 00031 {return ymetric;}
|
|
|||||||||
|
Definition at line 35 of file DCEdge.h. 00035 {return ywmetric;}
|
|
||||||||||
|
Referenced by ClassImpT(), and DCVertex< T >::Print(). |
|
|||||
|
Definition at line 48 of file DCEdge.h. Referenced by DCEdge< T >::DCEdge(), and DCEdge< T >::DrawThisEdge(). |
|
|||||
|
Definition at line 41 of file DCEdge.h. Referenced by DCEdge< T >::DCEdge(), and DCEdge< T >::DrawThisEdge(). |
|
|||||
|
Definition at line 49 of file DCEdge.h. Referenced by DCEdge< T >::DCEdge(), and DCEdge< T >::DrawThisEdge(). |
|
|||||
|
Definition at line 44 of file DCEdge.h. Referenced by DCEdge< T >::DCEdge(). |
|
|||||
|
Definition at line 42 of file DCEdge.h. Referenced by DCEdge< T >::DCEdge(). |
|
|||||
|
Definition at line 45 of file DCEdge.h. Referenced by DCEdge< T >::DCEdge(). |
|
|||||
|
Definition at line 43 of file DCEdge.h. Referenced by DCEdge< T >::DCEdge(). |
|
|||||
|
Definition at line 46 of file DCEdge.h. Referenced by DCEdge< T >::DCEdge(). |
1.3.9.1