29 for (
Int_t i=0; i<num; ++i) {
30 q->
AddBox(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
31 r.Uniform(0.2, 1),
r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
61 for (
Int_t i=0; i<num; ++i) {
62 q->
AddBox(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
63 r.Uniform(0.2, 1),
r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
65 r.Uniform(20, 255),
r.Uniform(20, 255));
93 for (
Int_t i=0; i<num; ++i) {
94 q->
AddBox(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
95 r.Uniform(0.2, 1),
r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
123 #define RND_BOX(x) (Float_t)r.Uniform(-(x), (x)) 126 for (
Int_t i=0; i<num; ++i) {
133 x - a + RND_BOX(d), y - a + RND_BOX(d), z - a + RND_BOX(d),
134 x - a + RND_BOX(d), y + a + RND_BOX(d), z - a + RND_BOX(d),
135 x + a + RND_BOX(d), y + a + RND_BOX(d), z - a + RND_BOX(d),
136 x + a + RND_BOX(d), y - a + RND_BOX(d), z - a + RND_BOX(d),
137 x - a + RND_BOX(d), y - a + RND_BOX(d), z + a + RND_BOX(d),
138 x - a + RND_BOX(d), y + a + RND_BOX(d), z + a + RND_BOX(d),
139 x + a + RND_BOX(d), y + a + RND_BOX(d), z + a + RND_BOX(d),
140 x + a + RND_BOX(d), y - a + RND_BOX(d), z + a + RND_BOX(d) };
TEveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
Collection of 3D primitives (fixed-size boxes, boxes of different sizes, or arbitrary sexto-epipeds...
Description of a 2D or 3D frame that can be used to visually group a set of objects.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
void SetDrawBack(Bool_t f)
void SetFrameColor(Color_t ci)
Set color of the frame.
This is the base class for the ROOT Random number generators.
void DigitColor(Color_t ci)
Set color for the last digit added.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void UseSingleColor()
Instruct digit-set to use single color for its digits.
void SetFrame(TEveFrameBox *b)
Set TEveFrameBox pointer.
R__EXTERN TEveManager * gEve
virtual void SetMainTransparency(Char_t t)
Set main-transparency.
void SetPos(Double_t x, Double_t y, Double_t z)
Set position (base-vec 4).
void Reset(EBoxType_e boxType, Bool_t valIsCol, Int_t chunkSize)
Reset the data containers to zero size.
void SetPalette(TEveRGBAPalette *p)
Set TEveRGBAPalette pointer.
void RefitPlex()
Instruct underlying memory allocator to regroup itself into a contiguous memory chunk.
you should not use this method at all Int_t Int_t z
virtual TEveTrans & RefMainTrans()
Return reference to main transformation.
virtual void SetMainColor(Color_t color)
Override from TEveElement, forward to Frame.
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)...
void DigitValue(Int_t value)
Set signal value for the last digit added.
void AddBox(const Float_t *verts)
Create a new box from a set of 8 vertices.
void SetBackColorRGBA(UChar_t r, UChar_t g, UChar_t b, UChar_t a=255)
Set color of the background polygon.