BFLPolyg Class Reference

#include <BFLPolyg.h>

List of all members.

Public Member Functions

 BFLPolyg (Int_t polyg)
 BFLPolyg (Int_t polyg, Int_t EdgeAround)
virtual ~BFLPolyg ()
virtual Int_t GetPolygID () const
virtual Int_t GetEdgeAroundPolyg () const
virtual void SetPolygID (Int_t polygid)
virtual void SetEdgeAroundPolyg (Int_t ed)
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 fPolygID
Int_t fEdgeAroundPolyg

Detailed Description

Definition at line 4 of file BFLPolyg.h.


Constructor & Destructor Documentation

BFLPolyg::BFLPolyg ( Int_t  polyg  )  [inline]

Definition at line 7 of file BFLPolyg.h.

00007 : fPolygID(polyg) { /*cout << "POLYG CREATED" <<endl;*/ }

BFLPolyg::BFLPolyg ( Int_t  polyg,
Int_t  EdgeAround 
) [inline]

Definition at line 8 of file BFLPolyg.h.

00008                                          :
00009           fPolygID(polyg), fEdgeAroundPolyg(EdgeAround) { /*cout << endl;*/ }        
  virtual ~BFLPolyg() { /*cout << "POLYG DELETED" << endl;*/ }

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

Definition at line 10 of file BFLPolyg.h.

00010 { /*cout << "POLYG DELETED" << endl;*/ }


Member Function Documentation

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

Definition at line 29 of file BFLPolyg.h.

References fPolygID, and GetPolygID().

00029                                           {
00030     if ( fPolygID == ((BFLPolyg *)obj)->GetPolygID() )
00031       return 0;
00032     else if (fPolygID < ((BFLPolyg *)obj)->GetPolygID() )
00033       return -1;
00034     else
00035       return 1; 
00036   }

virtual Int_t BFLPolyg::GetEdgeAroundPolyg (  )  const [inline, virtual]

Definition at line 13 of file BFLPolyg.h.

References fEdgeAroundPolyg.

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

00013 {return fEdgeAroundPolyg;}

virtual Int_t BFLPolyg::GetPolygID (  )  const [inline, virtual]

Definition at line 12 of file BFLPolyg.h.

References fPolygID.

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

00012 {return fPolygID;}

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

Definition at line 25 of file BFLPolyg.h.

References fPolygID.

00025                                            { 
00026     return fPolygID == ((BFLPolyg *)obj)->GetPolygID(); 
00027   }

Bool_t BFLPolyg::IsSortable (  )  const [inline]

Definition at line 28 of file BFLPolyg.h.

00028 { return kTRUE; }

void BFLPolyg::Print ( Option_t *  = ""  )  const [inline]

Definition at line 18 of file BFLPolyg.h.

References fEdgeAroundPolyg, and fPolygID.

00018                                                  { 
00019     cout << endl;  
00020     cout << "\n@@@ Polygon ID = " << fPolygID;
00021     cout << "\nEdge Around Polygon..........." << fEdgeAroundPolyg;
00022     cout << std::flush;
00023   }

virtual void BFLPolyg::SetEdgeAroundPolyg ( Int_t  ed  )  [inline, virtual]

Definition at line 16 of file BFLPolyg.h.

References fEdgeAroundPolyg.

00016 {fEdgeAroundPolyg = ed;}

virtual void BFLPolyg::SetPolygID ( Int_t  polygid  )  [inline, virtual]

Definition at line 15 of file BFLPolyg.h.

References fPolygID.

00015 {fPolygID = polygid;}


Member Data Documentation

Int_t BFLPolyg::fEdgeAroundPolyg [private]

Definition at line 40 of file BFLPolyg.h.

Referenced by GetEdgeAroundPolyg(), Print(), and SetEdgeAroundPolyg().

Int_t BFLPolyg::fPolygID [private]

Definition at line 39 of file BFLPolyg.h.

Referenced by Compare(), GetPolygID(), IsEqual(), Print(), and SetPolygID().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1