BFLVtx Class Reference

#include <BFLVtx.h>

List of all members.

Public Member Functions

 BFLVtx (Int_t vtx)
 BFLVtx (Int_t vtx, Int_t EdgeAround, Bool_t weight, Double_t VtxX, Float_t VtxY)
virtual ~BFLVtx ()
virtual Int_t GetVtxID () const
virtual Int_t GetEdgeAroundVtx () const
virtual Bool_t GetWeight () const
virtual Float_t GetX () const
virtual Float_t GetY () const
virtual void SetVtxID (Int_t vtxid)
virtual void SetEdgeAroundVtx (Int_t edge)
virtual void SetWeight (Bool_t wght)
virtual void SetX (Float_t x)
virtual void SetY (Float_t y)
void Print (Option_t *) const
Bool_t IsEqual (const TObject *obj) const
Bool_t IsSortable () const
Int_t Compare (const TObject *obj) const

Private Attributes

Int_t fVtxID
Int_t fEdgeAroundVtx
Bool_t fWeight
Float_t fX
Float_t fY

Detailed Description

Definition at line 8 of file BFLVtx.h.


Constructor & Destructor Documentation

BFLVtx::BFLVtx ( Int_t  vtx  )  [inline]

Definition at line 11 of file BFLVtx.h.

00011 :fVtxID(vtx) { /*cout << "VTX CREATED" << endl;*/ }

BFLVtx::BFLVtx ( Int_t  vtx,
Int_t  EdgeAround,
Bool_t  weight,
Double_t  VtxX,
Float_t  VtxY 
) [inline]

Definition at line 12 of file BFLVtx.h.

00013                                   :
00014         fVtxID(vtx), fEdgeAroundVtx(EdgeAround), fWeight(weight),
00015         fX(VtxX), fY(VtxY) { /*cout << endl;*/ }
  virtual ~BFLVtx() {  /*cout << "VTX DELETED" << endl;*/ }

virtual BFLVtx::~BFLVtx (  )  [inline, virtual]

Definition at line 16 of file BFLVtx.h.

00016 {  /*cout << "VTX DELETED" << endl;*/ }


Member Function Documentation

Int_t BFLVtx::Compare ( const TObject *  obj  )  const [inline]

Definition at line 44 of file BFLVtx.h.

References fVtxID, and GetVtxID().

00044                                           {
00045     if ( fVtxID == ((BFLVtx *)obj)->GetVtxID() )
00046        return 0;
00047     else if (fVtxID < ((BFLVtx *)obj)->GetVtxID() )
00048        return -1;
00049     else
00050        return 1; 
00051     }

virtual Int_t BFLVtx::GetEdgeAroundVtx (  )  const [inline, virtual]

Definition at line 19 of file BFLVtx.h.

References fEdgeAroundVtx.

Referenced by BFLWingedEdge::PrintVertices(), and BFLWingedEdge::Save().

00019 {return fEdgeAroundVtx;}

virtual Int_t BFLVtx::GetVtxID (  )  const [inline, virtual]

Definition at line 18 of file BFLVtx.h.

References fVtxID.

Referenced by Compare(), BFLVoronoiMaker::MergeDataStructures(), BFLWingedEdge::PrintVertices(), and BFLWingedEdge::Save().

00018 {return fVtxID;}

virtual Bool_t BFLVtx::GetWeight (  )  const [inline, virtual]

Definition at line 20 of file BFLVtx.h.

References fWeight.

Referenced by BFLWingedEdge::PrintVertices(), and BFLWingedEdge::Save().

00020 {return fWeight;}

virtual Float_t BFLVtx::GetX ( void   )  const [inline, virtual]

Definition at line 21 of file BFLVtx.h.

References fX.

Referenced by BFLWingedEdge::Plot(), BFLWingedEdge::PrintVertices(), and BFLWingedEdge::Save().

00021 {return fX;}

virtual Float_t BFLVtx::GetY ( void   )  const [inline, virtual]

Definition at line 22 of file BFLVtx.h.

References fY.

Referenced by BFLWingedEdge::Plot(), BFLWingedEdge::PrintVertices(), and BFLWingedEdge::Save().

00022 {return fY;}

Bool_t BFLVtx::IsEqual ( const TObject *  obj  )  const [inline]

Definition at line 40 of file BFLVtx.h.

References fVtxID.

00040                                            { 
00041     return fVtxID == ((BFLVtx *)obj)->GetVtxID(); 
00042   }

Bool_t BFLVtx::IsSortable (  )  const [inline]

Definition at line 43 of file BFLVtx.h.

00043 { return kTRUE; }

void BFLVtx::Print ( Option_t *   )  const [inline]

Definition at line 30 of file BFLVtx.h.

References fEdgeAroundVtx, fVtxID, fWeight, fX, and fY.

00030                                 { 
00031     cout << endl;  
00032     cout << "\n@@@ Vertex ID = " << fVtxID;
00033     cout << "\nEdge Around Vertex............" << fEdgeAroundVtx;
00034     cout << "\nWeight........................" << fWeight;
00035     cout << "\nX............................." << fX;
00036     cout << "\nY............................." << fY;
00037     cout << std::flush;
00038   }

virtual void BFLVtx::SetEdgeAroundVtx ( Int_t  edge  )  [inline, virtual]

Definition at line 25 of file BFLVtx.h.

References fEdgeAroundVtx.

00025 {fEdgeAroundVtx = edge;}

virtual void BFLVtx::SetVtxID ( Int_t  vtxid  )  [inline, virtual]

Definition at line 24 of file BFLVtx.h.

References fVtxID.

00024 {fVtxID = vtxid;}

virtual void BFLVtx::SetWeight ( Bool_t  wght  )  [inline, virtual]

Definition at line 26 of file BFLVtx.h.

References fWeight.

00026 {fWeight = wght;}

virtual void BFLVtx::SetX ( Float_t  x  )  [inline, virtual]

Definition at line 27 of file BFLVtx.h.

References fX.

00027 {fX = x;}

virtual void BFLVtx::SetY ( Float_t  y  )  [inline, virtual]

Definition at line 28 of file BFLVtx.h.

References fY.

00028 {fY = y;}


Member Data Documentation

Int_t BFLVtx::fEdgeAroundVtx [private]

Definition at line 55 of file BFLVtx.h.

Referenced by GetEdgeAroundVtx(), Print(), and SetEdgeAroundVtx().

Int_t BFLVtx::fVtxID [private]

Definition at line 54 of file BFLVtx.h.

Referenced by Compare(), GetVtxID(), IsEqual(), Print(), and SetVtxID().

Bool_t BFLVtx::fWeight [private]

Definition at line 56 of file BFLVtx.h.

Referenced by GetWeight(), Print(), and SetWeight().

Float_t BFLVtx::fX [private]

Definition at line 57 of file BFLVtx.h.

Referenced by GetX(), Print(), and SetX().

Float_t BFLVtx::fY [private]

Definition at line 58 of file BFLVtx.h.

Referenced by GetY(), Print(), and SetY().


The documentation for this class was generated from the following file:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1