Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
#define a(i)
Definition RSha256.hxx:99
unsigned char UChar_t
Definition RtypesCore.h:38
short Color_t
Definition RtypesCore.h:83
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.
Color_t * PtrBackColor()
TEveFrameBox & operator=(const TEveFrameBox &)
Float_t fFrameWidth
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
void SetDrawBack(Bool_t f)
Int_t GetFrameSize() const
UChar_t * GetBackRGBA()
Bool_t fDrawBack
Color_t fFrameColor
Bool_t fFrameFill
Color_t fBackColor
Float_t * fFramePoints
Bool_t GetDrawBack() const
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
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
UChar_t * GetFrameRGBA()
EFrameType_e fFrameType
void SetFrameFill(Bool_t f)
Bool_t GetFrameFill() const
void SetFrameWidth(Float_t f)
Color_t * PtrFrameColor()
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 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
UChar_t fBackRGBA[4]
Float_t * GetFramePoints() const
TEveFrameBox(const TEveFrameBox &)
virtual void OnZeroRefCount()
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]
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