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

Detailed Description

Definition at line 14 of file BFLNode.h.


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, fy, GetX(), and GetY().

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]
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]
virtual Bool_t BFLNode::IsEqual ( const TObject *  node  )  const [inline, virtual]

Definition at line 31 of file BFLNode.h.

References fx, fy, GetX(), and GetY().

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 22 Nov 2017 for loon by  doxygen 1.6.1