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