Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

BFLNode Class Reference

#include <BFLNode.h>

List of all members.

Public Methods

 BFLNode ()
 BFLNode (Float_t fx, Float_t fy)
 BFLNode (Int_t nid, Float_t fx, Float_t fy)
 ~BFLNode ()
virtual void SetNodeID (Int_t nid)
virtual void SetX (Float_t x)
virtual void SetY (Float_t y)
virtual void SetXY (TVector2 &Rxy)
virtual Int_t GetNodeID (void) const
virtual Float_t GetX (void) const
virtual Float_t GetY (void) const
TVector2 * GetXY (void) const
void Print (Option_t *)
virtual Bool_t IsSortable () const
virtual Bool_t IsEqual (TObject *node)
virtual Int_t Compare (const TObject *node) const

Private Attributes

Int_t fNodeID
Float_t fx
Float_t fy


Constructor & Destructor Documentation

BFLNode::BFLNode   [inline]
 

Definition at line 17 of file BFLNode.h.

00017 { }

BFLNode::BFLNode Float_t    fx,
Float_t    fy
 

Definition at line 23 of file BFLNode.cxx.

00023                                     :
00024   fNodeID(-1),
00025   fx(x),
00026   fy(y)
00027 {
00028 }

BFLNode::BFLNode Int_t    nid,
Float_t    fx,
Float_t    fy
 

BFLNode::~BFLNode  
 

Definition at line 30 of file BFLNode.cxx.

00031 {
00032 //      cout << " node deleted "<< endl;
00033 }


Member Function Documentation

Int_t BFLNode::Compare const TObject *    node const [virtual]
 

Definition at line 53 of file BFLNode.cxx.

References fx, and fy.

00054 {
00055   if( fx < ((BFLNode *)node)->GetX() ) {
00056     return -1;
00057   } else if( fx > ((BFLNode *)node)->GetX() ) {
00058     return 1;
00059   } else {
00060     if( fy < ((BFLNode *)node)->GetY() ) {
00061         return -1;
00062     } else if( fy > ((BFLNode *)node)->GetY() ) {
00063         return 1;
00064     } else {
00065         return 0;
00066     }
00067   }
00068 }

virtual Int_t BFLNode::GetNodeID void    const [inline, virtual]
 

Definition at line 25 of file BFLNode.h.

References fNodeID.

Referenced by BFLInterpolation::NNInterpolation().

00025 { return fNodeID; }

virtual Float_t BFLNode::GetX void    const [inline, virtual]
 

Definition at line 26 of file BFLNode.h.

References fx.

Referenced by BFLInterpolation::CellArea(), BFLVorOperator::Clockwise(), BFLVorOperator::DistanceFrom(), BFLVorOperator::FindNewVtx(), BFLVorOperator::IsInTheCircle(), BFLVoronoiMaker::Make(), BFLInterpolation::NNInterpolation(), BFLInterpolation::PlanarInterpolation(), and BFLVorOperator::VtxPosition().

00026 { return fx; }

TVector2 * BFLNode::GetXY void    const
 

Definition at line 35 of file BFLNode.cxx.

References fx, and fy.

00036 { 
00037         return(new TVector2(fx,fy));
00038 }

virtual Float_t BFLNode::GetY void    const [inline, virtual]
 

Definition at line 27 of file BFLNode.h.

References fy.

Referenced by BFLInterpolation::CellArea(), BFLVorOperator::Clockwise(), BFLVorOperator::DistanceFrom(), BFLVorOperator::FindNewVtx(), BFLVorOperator::IsInTheCircle(), BFLVoronoiMaker::Make(), BFLInterpolation::NNInterpolation(), BFLInterpolation::PlanarInterpolation(), and BFLVorOperator::VtxPosition().

00027 { return fy; }

virtual Bool_t BFLNode::IsEqual TObject *    node [inline, virtual]
 

Definition at line 31 of file BFLNode.h.

References fx, and fy.

00031                                          { 
00032         return( fx == ((BFLNode *)node)->GetX() &&
00033                 fy == ((BFLNode *)node)->GetY() );
00034   }

virtual Bool_t BFLNode::IsSortable   const [inline, virtual]
 

Definition at line 30 of file BFLNode.h.

00030 { return kTRUE; }

void BFLNode::Print Option_t *   
 

Definition at line 46 of file BFLNode.cxx.

References fNodeID, fx, and fy.

00047 {
00048   cout << endl;
00049   cout << "node " << fNodeID   
00050        << " is at (" << fx << "," << fy << ") " << endl;
00051 }

virtual void BFLNode::SetNodeID Int_t    nid [inline, virtual]
 

Definition at line 21 of file BFLNode.h.

References fNodeID.

00021 { fNodeID = nid; }

virtual void BFLNode::SetX Float_t    x [inline, virtual]
 

Definition at line 22 of file BFLNode.h.

References fx.

Referenced by SetXY().

00022 { fx = x; }

void BFLNode::SetXY TVector2 &    Rxy [virtual]
 

Definition at line 40 of file BFLNode.cxx.

References SetX(), and SetY().

00041 {
00042         SetX( PositionVector.X() );
00043         SetY( PositionVector.Y() );
00044 }

virtual void BFLNode::SetY Float_t    y [inline, virtual]
 

Definition at line 23 of file BFLNode.h.

References fy.

Referenced by SetXY().

00023 { fy = y; }


Member Data Documentation

Int_t BFLNode::fNodeID [private]
 

Definition at line 38 of file BFLNode.h.

Referenced by GetNodeID(), Print(), and SetNodeID().

Float_t BFLNode::fx [private]
 

Definition at line 39 of file BFLNode.h.

Referenced by Compare(), GetX(), GetXY(), IsEqual(), Print(), and SetX().

Float_t BFLNode::fy [private]
 

Definition at line 40 of file BFLNode.h.

Referenced by Compare(), GetXY(), GetY(), IsEqual(), Print(), and SetY().


The documentation for this class was generated from the following files:
Generated on Wed Sep 4 19:21:34 2002 for loon by doxygen1.2.16