Logo ROOT  
Reference Guide
TAttBBox2D.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Anna-Pia Lohfink 27.3.2014
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2014, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TAttBBox2D
13 #define ROOT_TAttBBox2D
14 
15 #include "GuiTypes.h"
16 #include "Rtypes.h"
17 
18 class TPoint;
19 class TAttBBox2D {
20 
21 public:
22  virtual ~TAttBBox2D();
23  virtual Rectangle_t GetBBox() = 0; //Get TopLeft Corner with width and height
24  virtual TPoint GetBBoxCenter() = 0;
25  virtual void SetBBoxCenter(const TPoint &p) = 0;
26  virtual void SetBBoxCenterX(const Int_t x) = 0;
27  virtual void SetBBoxCenterY(const Int_t y) = 0;
28  virtual void SetBBoxX1(const Int_t x) = 0; //set lhs of BB to value
29  virtual void SetBBoxX2(const Int_t x) = 0; //set rhs of BB to value
30  virtual void SetBBoxY1(const Int_t y) = 0; //set top of BB to value
31  virtual void SetBBoxY2(const Int_t y) = 0; //set bottom of BB to value
32 
33  ClassDef(TAttBBox2D,0); //2D bounding box attributes
34 };
35 
36 #endif
TAttBBox2D::SetBBoxX1
virtual void SetBBoxX1(const Int_t x)=0
Rectangle_t
Definition: GuiTypes.h:360
x
Double_t x[n]
Definition: legend1.C:17
TAttBBox2D::GetBBox
virtual Rectangle_t GetBBox()=0
TAttBBox2D::SetBBoxCenterX
virtual void SetBBoxCenterX(const Int_t x)=0
TAttBBox2D
Abstract base class for elements drawn in the editor.
Definition: TAttBBox2D.h:19
TAttBBox2D::~TAttBBox2D
virtual ~TAttBBox2D()
Definition: TAttBBox2D.cxx:30
GuiTypes.h
TAttBBox2D::SetBBoxY1
virtual void SetBBoxY1(const Int_t y)=0
TAttBBox2D::GetBBoxCenter
virtual TPoint GetBBoxCenter()=0
TAttBBox2D::SetBBoxCenter
virtual void SetBBoxCenter(const TPoint &p)=0
y
Double_t y[n]
Definition: legend1.C:17
TPoint
Definition: TPoint.h:31
TAttBBox2D::SetBBoxY2
virtual void SetBBoxY2(const Int_t y)=0
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TAttBBox2D::SetBBoxCenterY
virtual void SetBBoxCenterY(const Int_t y)=0
Rtypes.h
int
TAttBBox2D::SetBBoxX2
virtual void SetBBoxX2(const Int_t x)=0