Logo ROOT  
Reference Guide
REveFrameBox.hxx
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, 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_REveFrameBox
13 #define ROOT_REveFrameBox
14 
15 #include "ROOT/REveUtil.hxx"
16 
17 namespace ROOT {
18 namespace Experimental {
19 
21 {
22 public:
24 
25 private:
26  REveFrameBox(const REveFrameBox&); // Not implemented
27  REveFrameBox& operator=(const REveFrameBox&); // Not implemented
28 
29 protected:
32  Float_t *fFramePoints; //[fFrameSize]
33 
41 
42 public:
43  REveFrameBox();
44  virtual ~REveFrameBox();
45 
46  void SetAAQuadXY(Float_t x, Float_t y, Float_t z, Float_t dx, Float_t dy);
47  void SetAAQuadXZ(Float_t x, Float_t y, Float_t z, Float_t dx, Float_t dz);
48 
49  void SetQuadByPoints(const Float_t* pointArr, Int_t nPoints);
50 
51  void SetAABox(Float_t x, Float_t y, Float_t z,
52  Float_t dx, Float_t dy, Float_t dz);
53 
55  Float_t dx, Float_t dy, Float_t dz);
56 
57  // ----------------------------------------------------------------
58 
59  EFrameType_e GetFrameType() const { return fFrameType; }
60  Int_t GetFrameSize() const { return fFrameSize; }
61  Float_t* GetFramePoints() const { return fFramePoints; }
62 
63  Float_t GetFrameWidth() const { return fFrameWidth; }
65 
66  Color_t GetFrameColor() const { return fFrameColor; }
69 
70  void SetFrameColor(Color_t ci);
71  void SetFrameColorPixel(Pixel_t pix);
73 
74  Color_t GetBackColor() const { return fBackColor; }
76  UChar_t* GetBackRGBA() { return fBackRGBA; }
77 
78  void SetBackColor(Color_t ci);
79  void SetBackColorPixel(Pixel_t pix);
81 
82  Bool_t GetFrameFill() const { return fFrameFill; }
84 
85  Bool_t GetDrawBack() const { return fDrawBack; }
87 
88 };
89 
90 } // namespace Experimental
91 } // namespace ROOT
92 #endif
ROOT::Experimental::REveFrameBox::SetFrameColorPixel
void SetFrameColorPixel(Pixel_t pix)
Set color of the frame.
Definition: REveFrameBox.cxx:163
ROOT::Experimental::REveFrameBox::SetBackColor
void SetBackColor(Color_t ci)
Set color of the background polygon.
Definition: REveFrameBox.cxx:183
ROOT::Experimental::REveFrameBox::GetFrameColor
Color_t GetFrameColor() const
Definition: REveFrameBox.hxx:66
ROOT::Experimental::REveFrameBox::GetFrameRGBA
UChar_t * GetFrameRGBA()
Definition: REveFrameBox.hxx:68
ROOT::Experimental::REveFrameBox::fDrawBack
Bool_t fDrawBack
Definition: REveFrameBox.hxx:40
f
#define f(i)
Definition: RSha256.hxx:104
ROOT::Experimental::REveFrameBox::fFrameFill
Bool_t fFrameFill
Definition: REveFrameBox.hxx:39
ROOT::Experimental::REveFrameBox::fFrameRGBA
UChar_t fFrameRGBA[4]
Definition: REveFrameBox.hxx:37
ROOT::Experimental::REveFrameBox::SetAABox
void SetAABox(Float_t x, Float_t y, Float_t z, Float_t dx, Float_t dy, Float_t dz)
Setup for axis-aligned box with one corner at x, y, z and given sizes in x (dx), y (dy) and z (dz).
Definition: REveFrameBox.cxx:105
ROOT::Experimental::REveFrameBox::SetAABoxCenterHalfSize
void SetAABoxCenterHalfSize(Float_t x, Float_t y, Float_t z, Float_t dx, Float_t dy, Float_t dz)
Setup for axis-aligned box with center at x, y, z and given half-sizes in x (dx), y (dy) and z (dz).
Definition: REveFrameBox.cxx:130
ROOT::Experimental::REveFrameBox::PtrBackColor
Color_t * PtrBackColor()
Definition: REveFrameBox.hxx:75
Pixel_t
ULong_t Pixel_t
Definition: GuiTypes.h:39
ROOT::Experimental::REveFrameBox::fFrameSize
Int_t fFrameSize
Definition: REveFrameBox.hxx:31
r
ROOT::R::TRInterface & r
Definition: Object.C:4
ROOT::Experimental::REveFrameBox::operator=
REveFrameBox & operator=(const REveFrameBox &)
Float_t
float Float_t
Definition: RtypesCore.h:57
ROOT::Experimental::REveFrameBox::kFT_Box
@ kFT_Box
Definition: REveFrameBox.hxx:23
ROOT::Experimental::REveFrameBox::kFT_Quad
@ kFT_Quad
Definition: REveFrameBox.hxx:23
ROOT::Experimental::REveFrameBox::PtrFrameColor
Color_t * PtrFrameColor()
Definition: REveFrameBox.hxx:67
ROOT::Experimental::REveFrameBox::fFrameWidth
Float_t fFrameWidth
Definition: REveFrameBox.hxx:34
x
Double_t x[n]
Definition: legend1.C:17
ROOT::Experimental::REveFrameBox
Definition: REveFrameBox.hxx:21
ROOT::Experimental::REveFrameBox::EFrameType_e
EFrameType_e
Definition: REveFrameBox.hxx:23
Color_t
short Color_t
Definition: RtypesCore.h:83
b
#define b(i)
Definition: RSha256.hxx:100
bool
ROOT::Experimental::REveFrameBox::fBackColor
Color_t fBackColor
Definition: REveFrameBox.hxx:36
ROOT::Experimental::REveFrameBox::GetFramePoints
Float_t * GetFramePoints() const
Definition: REveFrameBox.hxx:61
ROOT::Experimental::REveFrameBox::GetBackRGBA
UChar_t * GetBackRGBA()
Definition: REveFrameBox.hxx:76
ROOT::Experimental::REveFrameBox::SetBackColorRGBA
void SetBackColorRGBA(UChar_t r, UChar_t g, UChar_t b, UChar_t a=255)
Set color of the background polygon.
Definition: REveFrameBox.cxx:200
ROOT::Experimental::REveFrameBox::kFT_None
@ kFT_None
Definition: REveFrameBox.hxx:23
ROOT::Experimental::REveFrameBox::REveFrameBox
REveFrameBox()
Definition: REveFrameBox.cxx:25
a
auto * a
Definition: textangle.C:12
ROOT::Experimental::REveFrameBox::SetDrawBack
void SetDrawBack(Bool_t f)
Definition: REveFrameBox.hxx:86
ROOT::Experimental::REveFrameBox::SetFrameFill
void SetFrameFill(Bool_t f)
Definition: REveFrameBox.hxx:83
ROOT::Experimental::REveFrameBox::SetQuadByPoints
void SetQuadByPoints(const Float_t *pointArr, Int_t nPoints)
Setup frame with explicitly given corner coordinates.
Definition: REveFrameBox.cxx:92
ROOT::Experimental::REveFrameBox::GetDrawBack
Bool_t GetDrawBack() const
Definition: REveFrameBox.hxx:85
ROOT::Experimental::REveRefBackPtr
REveRefBackPtr reference-count with back pointers.
Definition: REveUtil.hxx:130
ROOT::Experimental::REveFrameBox::SetFrameWidth
void SetFrameWidth(Float_t f)
Definition: REveFrameBox.hxx:64
ROOT::Experimental::REveFrameBox::fBackRGBA
UChar_t fBackRGBA[4]
Definition: REveFrameBox.hxx:38
y
Double_t y[n]
Definition: legend1.C:17
ROOT::Experimental::REveFrameBox::fFrameType
EFrameType_e fFrameType
Definition: REveFrameBox.hxx:30
ROOT::Experimental::REveFrameBox::SetFrameColor
void SetFrameColor(Color_t ci)
Set color of the frame.
Definition: REveFrameBox.cxx:154
ROOT::Experimental::REveFrameBox::GetFrameSize
Int_t GetFrameSize() const
Definition: REveFrameBox.hxx:60
ROOT::Experimental::REveFrameBox::SetFrameColorRGBA
void SetFrameColorRGBA(UChar_t r, UChar_t g, UChar_t b, UChar_t a=255)
Set color of the frame.
Definition: REveFrameBox.cxx:171
REveUtil.hxx
UChar_t
unsigned char UChar_t
Definition: RtypesCore.h:38
ROOT::Experimental::REveFrameBox::GetFrameType
EFrameType_e GetFrameType() const
Definition: REveFrameBox.hxx:59
ROOT::Experimental::REveFrameBox::GetFrameWidth
Float_t GetFrameWidth() const
Definition: REveFrameBox.hxx:63
ROOT::Experimental::REveFrameBox::SetBackColorPixel
void SetBackColorPixel(Pixel_t pix)
Set color of the background polygon.
Definition: REveFrameBox.cxx:192
ROOT::Experimental::REveFrameBox::fFramePoints
Float_t * fFramePoints
Definition: REveFrameBox.hxx:32
ROOT::Experimental::REveFrameBox::REveFrameBox
REveFrameBox(const REveFrameBox &)
ROOT::Experimental::REveFrameBox::GetBackColor
Color_t GetBackColor() const
Definition: REveFrameBox.hxx:74
ROOT::Experimental::REveFrameBox::GetFrameFill
Bool_t GetFrameFill() const
Definition: REveFrameBox.hxx:82
ROOT::Experimental::REveFrameBox::fFrameColor
Color_t fFrameColor
Definition: REveFrameBox.hxx:35
ROOT::Experimental::REveFrameBox::SetAAQuadXZ
void SetAAQuadXZ(Float_t x, Float_t y, Float_t z, Float_t dx, Float_t dz)
Setup for axis-aligned rectangle with one corner at x, y, z and given sizes in x (dx) and z (dz).
Definition: REveFrameBox.cxx:72
ROOT
VSD Structures.
Definition: StringConv.hxx:21
int
ROOT::Experimental::REveFrameBox::SetAAQuadXY
void SetAAQuadXY(Float_t x, Float_t y, Float_t z, Float_t dx, Float_t dy)
Setup for axis-aligned rectangle with one corner at x, y, z and given sizes in x (dx) and y (dy).
Definition: REveFrameBox.cxx:54
ROOT::Experimental::REveFrameBox::~REveFrameBox
virtual ~REveFrameBox()
Destructor.
Definition: REveFrameBox.cxx:45
g
#define g(i)
Definition: RSha256.hxx:105