Logo ROOT   6.12/07
Reference Guide
TEveFrameBox.h
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_TEveFrameBox
13 #define ROOT_TEveFrameBox
14 
15 #include "TEveUtil.h"
16 #include "TObject.h"
17 
18 class TEveFrameBox : public TObject, public TEveRefBackPtr
19 {
20  friend class TEveFrameBoxGL;
21 
22 public:
24 
25 private:
26  TEveFrameBox(const TEveFrameBox&); // Not implemented
27  TEveFrameBox& operator=(const TEveFrameBox&); // Not implemented
28 
29 protected:
32  Float_t *fFramePoints; //[fFrameSize]
33 
41 
42 public:
43  TEveFrameBox();
44  virtual ~TEveFrameBox();
45 
48 
49  void SetQuadByPoints(const Float_t* pointArr, Int_t nPoints);
50 
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; }
64  void SetFrameWidth(Float_t f) { fFrameWidth = f; }
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);
80  void SetBackColorRGBA(UChar_t r, UChar_t g, UChar_t b, UChar_t a=255);
81 
82  Bool_t GetFrameFill() const { return fFrameFill; }
83  void SetFrameFill(Bool_t f) { fFrameFill = f; }
84 
85  Bool_t GetDrawBack() const { return fDrawBack; }
86  void SetDrawBack(Bool_t f) { fDrawBack = f; }
87 
88  ClassDef(TEveFrameBox, 0); // Description of a 2D or 3D frame that can be used to visually group a set of objects.
89 };
90 
91 #endif
TEveFrameBox & operator=(const TEveFrameBox &)
UChar_t fBackRGBA[4]
Definition: TEveFrameBox.h:38
float Float_t
Definition: RtypesCore.h:53
Base-class for reference-counted objects with reverse references to TEveElement objects.
Definition: TEveUtil.h:187
Color_t GetBackColor() const
Definition: TEveFrameBox.h:74
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Description of a 2D or 3D frame that can be used to visually group a set of objects.
Definition: TEveFrameBox.h:18
virtual ~TEveFrameBox()
Destructor.
Float_t * GetFramePoints() const
Definition: TEveFrameBox.h:61
void SetDrawBack(Bool_t f)
Definition: TEveFrameBox.h:86
Bool_t fDrawBack
Definition: TEveFrameBox.h:40
Float_t fFrameWidth
Definition: TEveFrameBox.h:34
void SetFrameColor(Color_t ci)
Set color of the frame.
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:320
ULong_t Pixel_t
Definition: GuiTypes.h:39
void SetBackColor(Color_t ci)
Set color of the background polygon.
void SetFrameFill(Bool_t f)
Definition: TEveFrameBox.h:83
Float_t * fFramePoints
Definition: TEveFrameBox.h:32
Color_t * PtrFrameColor()
Definition: TEveFrameBox.h:67
Bool_t GetFrameFill() const
Definition: TEveFrameBox.h:82
short Color_t
Definition: RtypesCore.h:79
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)...
Float_t GetFrameWidth() const
Definition: TEveFrameBox.h:63
A class encapsulating GL rendering of TEveFrameBox via a static member function.
ROOT::R::TRInterface & r
Definition: Object.C:4
auto * a
Definition: textangle.C:12
Color_t fBackColor
Definition: TEveFrameBox.h:36
void SetFrameColorRGBA(UChar_t r, UChar_t g, UChar_t b, UChar_t a=255)
Set color of the frame.
void SetQuadByPoints(const Float_t *pointArr, Int_t nPoints)
Setup frame with explicitly given corner coordinates.
EFrameType_e GetFrameType() const
Definition: TEveFrameBox.h:59
Color_t GetFrameColor() const
Definition: TEveFrameBox.h:66
UChar_t * GetFrameRGBA()
Definition: TEveFrameBox.h:68
void SetBackColorPixel(Pixel_t pix)
Set color of the background polygon.
Double_t y[n]
Definition: legend1.C:17
void SetFrameWidth(Float_t f)
Definition: TEveFrameBox.h:64
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)...
Color_t fFrameColor
Definition: TEveFrameBox.h:35
Color_t * PtrBackColor()
Definition: TEveFrameBox.h:75
Mother of all ROOT objects.
Definition: TObject.h:37
you should not use this method at all Int_t Int_t z
Definition: TRolke.cxx:630
Int_t GetFrameSize() const
Definition: TEveFrameBox.h:60
EFrameType_e fFrameType
Definition: TEveFrameBox.h:30
Bool_t GetDrawBack() const
Definition: TEveFrameBox.h:85
void SetFrameColorPixel(Pixel_t pix)
Set color of the frame.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Definition: TRolke.cxx:630
Bool_t fFrameFill
Definition: TEveFrameBox.h:39
UChar_t * GetBackRGBA()
Definition: TEveFrameBox.h:76
unsigned char UChar_t
Definition: RtypesCore.h:34
UChar_t fFrameRGBA[4]
Definition: TEveFrameBox.h:37
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)...
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)...
Int_t fFrameSize
Definition: TEveFrameBox.h:31
void SetBackColorRGBA(UChar_t r, UChar_t g, UChar_t b, UChar_t a=255)
Set color of the background polygon.
static constexpr double g