Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
18class TPoint;
20
21protected:
22
25
26public:
27 virtual ~TAttBBox2D();
28 virtual Rectangle_t GetBBox() = 0; //Get TopLeft Corner with width and height
29 virtual TPoint GetBBoxCenter();
30 virtual void SetBBoxCenter(const TPoint &p);
31 virtual void SetBBoxCenterX(const Int_t x) = 0;
32 virtual void SetBBoxCenterY(const Int_t y) = 0;
33 virtual void SetBBoxX1(const Int_t x) = 0; //set lhs of BB to value
34 virtual void SetBBoxX2(const Int_t x) = 0; //set rhs of BB to value
35 virtual void SetBBoxY1(const Int_t y) = 0; //set top of BB to value
36 virtual void SetBBoxY2(const Int_t y) = 0; //set bottom of BB to value
37
38 ClassDef(TAttBBox2D,0); //2D bounding box attributes
39};
40
41#endif
constexpr Bool_t kFALSE
Definition RtypesCore.h:108
#define ClassDef(name, id)
Definition Rtypes.h:344
winID h TVirtualViewer3D TVirtualGLPainter p
Abstract base class for elements drawn in the editor.
Definition TAttBBox2D.h:19
Double_t GetYCoord(const Int_t y, Bool_t is_ndc=kFALSE)
virtual void SetBBoxCenterY(const Int_t y)=0
virtual void SetBBoxCenterX(const Int_t x)=0
virtual void SetBBoxX1(const Int_t x)=0
virtual void SetBBoxY1(const Int_t y)=0
virtual void SetBBoxCenter(const TPoint &p)
virtual void SetBBoxX2(const Int_t x)=0
virtual ~TAttBBox2D()
virtual void SetBBoxY2(const Int_t y)=0
virtual Rectangle_t GetBBox()=0
virtual TPoint GetBBoxCenter()
Double_t GetXCoord(const Int_t x, Bool_t is_ndc=kFALSE)
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
Rectangle structure (maps to the X11 XRectangle structure)
Definition GuiTypes.h:362