Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:30

0001 // @(#)root/base:$Id$
0002 // Author: Anna-Pia Lohfink 27.3.2014
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2014, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TAttBBox2D
0013 #define ROOT_TAttBBox2D
0014 
0015 #include "GuiTypes.h"
0016 #include "Rtypes.h"
0017 
0018 class TPoint;
0019 class TAttBBox2D {
0020 
0021 public:
0022    virtual ~TAttBBox2D();
0023    virtual Rectangle_t     GetBBox()  = 0; //Get TopLeft Corner with width and height
0024    virtual TPoint          GetBBoxCenter() = 0;
0025    virtual void            SetBBoxCenter(const TPoint &p) = 0;
0026    virtual void            SetBBoxCenterX(const Int_t x) = 0;
0027    virtual void            SetBBoxCenterY(const Int_t y) = 0;
0028    virtual void            SetBBoxX1(const Int_t x) = 0; //set lhs of BB to value
0029    virtual void            SetBBoxX2(const Int_t x) = 0; //set rhs of BB to value
0030    virtual void            SetBBoxY1(const Int_t y) = 0; //set top of BB to value
0031    virtual void            SetBBoxY2(const Int_t y) = 0; //set bottom of BB to value
0032 
0033    ClassDef(TAttBBox2D,0);  //2D bounding box attributes
0034 };
0035 
0036 #endif