Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

BFLNode Class Reference

#include <BFLNode.h>

List of all members.

Public Member Functions

 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 *option="") const
virtual Bool_t IsSortable () const
virtual Bool_t IsEqual (const TObject *node) const
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 26 of file BFLNode.cxx.

00026                                     :
00027   fNodeID(-1),
00028   fx(x),
00029   fy(y)
00030 {
00031 }

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

Definition at line 19 of file BFLNode.cxx.

00019                                                :
00020   fNodeID(nid),
00021   fx(x),
00022   fy(y) 
00023 {
00024 }

BFLNode::~BFLNode  ) 
 

Definition at line 33 of file BFLNode.cxx.

00034 {
00035 //      cout << " node deleted "<< endl;
00036 }


Member Function Documentation

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

Definition at line 56 of file BFLNode.cxx.

References fx, and fy.

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

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

Definition at line 25 of file BFLNode.h.

References fNodeID.

Referenced by BFLInterpolation::NNInterpolation(), and BFLWingedEdge::SaveNodalSet().

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(), BFLWingedEdge::SaveNodalSet(), and BFLVorOperator::VtxPosition().

00026 { return fx; }

TVector2 * BFLNode::GetXY void   )  const
 

Definition at line 38 of file BFLNode.cxx.

References fx, and fy.

00039 { 
00040         return(new TVector2(fx,fy));
00041 }

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(), BFLWingedEdge::SaveNodalSet(), and BFLVorOperator::VtxPosition().

00027 { return fy; }

virtual Bool_t BFLNode::IsEqual const TObject *  node  )  const [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 *  option = ""  )  const
 

Definition at line 49 of file BFLNode.cxx.

References fNodeID, fx, and fy.

00050 {
00051   cout << endl;
00052   cout << "node " << fNodeID   
00053        << " is at (" << fx << "," << fy << ") " << endl;
00054 }

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 43 of file BFLNode.cxx.

References SetX(), and SetY().

00044 {
00045         SetX( PositionVector.X() );
00046         SetY( PositionVector.Y() );
00047 }

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 Mon Feb 9 22:56:17 2009 for loon by doxygen 1.3.5