37#define RND_BOX(x) (Float_t)r.Uniform(-(x), (x))
42 for (
int i = 0;
i < num; ++
i) {
46 float a =
r.Uniform(0.2*A, A);
58 q->DigitValue(
r.Uniform(0, 130));
66 q->SetAlwaysSecSelect(1);
67 q->SetTooltipCBFoo(customTooltip);
79 frm->SetAABoxCenterHalfSize(0, 0, 0, 12, 12, 12);
80 frm->SetFrameColor(
kCyan);
81 frm->SetBackColorRGBA(120,120,120,20);
82 frm->SetDrawBack(
kTRUE);
90 q->AddInstanceScaled(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
91 r.Uniform(0.2, 1),
r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
92 q->DigitValue(
r.Uniform(0, 130));
101 q->SetAlwaysSecSelect(1);
102 q->SetTooltipCBFoo(customTooltip);
114 q->AddInstanceScaled(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
115 r.Uniform(0.2, 1),
r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
116 q->DigitColor(
r.Uniform(20, 255),
r.Uniform(20, 255),
117 r.Uniform(20, 255),
r.Uniform(20, 255));
134 q->SetMainColor(
kRed);
135 q->SetMainTransparency(50);
139 q->AddInstanceScaled(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
140 r.Uniform(0.2, 1),
r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
157 q->SetMainColor(
kRed);
158 q->SetMainTransparency(50);
162 q->AddInstance(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10));
167 q->SetAlwaysSecSelect(1);
181 q->AddHex(
REveVector(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10)),
182 r.Uniform(0.2, 1),
r.Uniform(0, 60),
r.Uniform(0.2, 5));
183 q->DigitColor(
r.Uniform(20, 255),
r.Uniform(20, 255),
184 r.Uniform(20, 255),
r.Uniform(20, 255));
188 q->SetPickable(
true);
189 q->SetAlwaysSecSelect(
true);
210 t.RotateLF(1, 2,
r.Uniform(3.14));
213 for (
int m=0;
m<16;
m++)
214 farr[
m] = t.Array()[
m];
216 q->AddInstanceMat4(farr);
217 q->DigitColor(255, 0, 0, 100);
220 q->SetPickable(
true);
221 q->SetAlwaysSecSelect(
true);
231 enum EBoxDemo_t {ScaledRotated, Free, AxisAligned, Hexagon, FixedDimension, SingleColor};
234 EBoxDemo_t
demo = AxisAligned;
241 b = boxset_gentrans();
247 b = boxset_axisaligned();
250 b = boxset_fixed_dim();
256 b = boxset_single_color();
259 printf(
"Unsupported demo type. \n");
264 eveMng->GetEventScene()->AddElement(
b);
268 eveMng->GetEventScene()->AddElement(
b->GetPalette());
279 b1->SetShape(
new TGeoTube(30, 32, 10));
280 b1->SetMainColor(
kCyan);
281 b1->SetNSegments(80);
282 b1->SetMainTransparency(95);
#define R(a, b, c, d, e, f, g, h, i)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
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.
Wrapper for TGeoShape with absolute positioning and color attributes allowing display of extracted TG...
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
REveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
Eve representation of a GL view.
@ kBT_InstancedScaledRotated
DigitBase_t * GetDigit(Int_t n) const
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
This is the base class for the ROOT Random number generators.
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
ROOT::Experimental::REveManager * eveMng
R__EXTERN REveManager * gEve
REveVectorT< Float_t > REveVector