33 q->Reset(REveBoxSet::kBT_FreeBox,
kFALSE, 64);
35#define RND_BOX(x) (Float_t) r.Uniform(-(x), (x))
40 for (
int i = 0; i < num; ++i) {
44 float a =
r.Uniform(0.2 * A, A);
53 q->DigitValue(
r.Uniform(0, 130));
61 q->SetAlwaysSecSelect(1);
62 q->SetTooltipCBFoo(customTooltip);
74 frm->SetAABoxCenterHalfSize(0, 0, 0, 12, 12, 12);
75 frm->SetFrameColor(
kCyan);
76 frm->SetBackColorRGBA(120, 120, 120, 20);
77 frm->SetDrawBack(
kTRUE);
82 q->Reset(REveBoxSet::kBT_InstancedScaled,
kFALSE, 64);
84 for (
Int_t i = 0; i < num; ++i) {
85 q->AddInstanceScaled(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(0.2, 1),
86 r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
87 q->DigitValue(
r.Uniform(0, 130));
96 q->SetAlwaysSecSelect(1);
97 q->SetTooltipCBFoo(customTooltip);
107 q->Reset(REveBoxSet::kBT_InstancedScaled,
kTRUE, 64);
108 for (
Int_t i = 0; i < num; ++i) {
109 q->AddInstanceScaled(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(0.2, 1),
110 r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
111 q->DigitColor(
r.Uniform(20, 255),
r.Uniform(20, 255),
r.Uniform(20, 255),
r.Uniform(20, 255));
128 q->SetMainColor(
kRed);
129 q->SetMainTransparency(50);
130 q->Reset(REveBoxSet::kBT_InstancedScaled,
kFALSE, 64);
132 for (
Int_t i = 0; i < num; ++i) {
133 q->AddInstanceScaled(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(0.2, 1),
134 r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
151 q->SetMainColor(
kRed);
152 q->SetMainTransparency(50);
153 q->Reset(REveBoxSet::kBT_Instanced,
kFALSE, 64);
155 for (
Int_t i = 0; i < num; ++i) {
156 q->AddInstance(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10));
161 q->SetAlwaysSecSelect(1);
172 q->Reset(REveBoxSet::kBT_InstancedScaledRotated,
kTRUE, 64);
174 for (
Int_t i = 0; i < num; ++i) {
175 q->AddHex(
REveVector(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10)),
r.Uniform(0.2, 1),
176 r.Uniform(0, 60),
r.Uniform(0.2, 5));
177 q->DigitColor(
r.Uniform(20, 255),
r.Uniform(20, 255),
r.Uniform(20, 255),
r.Uniform(20, 255));
181 q->SetPickable(
true);
182 q->SetAlwaysSecSelect(
true);
192 q->Reset(REveBoxSet::kBT_InstancedScaledRotated,
kTRUE, 64);
195 for (
Int_t i = 0; i < num; ++i) {
198 float x = 50 - i * 10;
201 t.RotateLF(1, 2,
r.Uniform(3.14));
204 for (
int m = 0;
m < 16;
m++)
205 farr[
m] = t.Array()[
m];
207 q->AddInstanceMat4(farr);
208 q->DigitColor(255, 0, 0, 100);
211 q->SetPickable(
true);
212 q->SetAlwaysSecSelect(
true);
232 EBoxDemo_t demo = AxisAligned;
234 auto eveMng = REveManager::Create();
237 case ScaledRotated:
b = boxset_gentrans();
break;
238 case Free:
b = boxset_free();
break;
239 case AxisAligned:
b = boxset_axisaligned();
break;
240 case FixedDimension:
b = boxset_fixed_dim();
break;
241 case Hexagon:
b = boxset_hex();
break;
242 case SingleColor:
b = boxset_single_color();
break;
243 default: printf(
"Unsupported demo type. \n");
return;
261 b1->SetShape(
new TGeoTube(30, 32, 10));
262 b1->SetMainColor(
kCyan);
263 b1->SetNSegments(80);
264 b1->SetMainTransparency(95);
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.
DigitBase_t * GetDigit(Int_t n) const
virtual void AddElement(REveElement *el)
Add el to the list of children.
REveScene * GetEventScene() const
REveScene * GetGlobalScene() const
REveViewer * GetDefaultViewer() const
Get the default viewer.
void Show(const RWebDisplayArgs &args="")
Show eve manager in specified browser.
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