35 q->Reset(REveBoxSet::kBT_FreeBox,
kFALSE, 64);
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);
87 q->Reset(REveBoxSet::kBT_InstancedScaled,
kFALSE, 64);
89 for (
Int_t i=0; i<num; ++i) {
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);
112 q->Reset(REveBoxSet::kBT_InstancedScaled,
kTRUE, 64);
113 for (
Int_t i=0; i<num; ++i) {
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);
136 q->Reset(REveBoxSet::kBT_InstancedScaled,
kFALSE, 64);
138 for (
Int_t i=0; i<num; ++i) {
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);
159 q->Reset(REveBoxSet::kBT_Instanced,
kFALSE, 64);
161 for (
Int_t i=0; i<num; ++i) {
162 q->AddInstance(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10));
167 q->SetAlwaysSecSelect(1);
178 q->Reset(REveBoxSet::kBT_InstancedScaledRotated,
kTRUE, 64);
180 for (
Int_t i=0; i<num; ++i) {
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);
200 q->Reset(REveBoxSet::kBT_InstancedScaledRotated,
kTRUE, 64);
203 for (
Int_t i=0; i< num; ++i)
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;
236 auto eveMng = REveManager::Create();
241 b = boxset_gentrans();
247 b = boxset_axisaligned();
250 b = boxset_fixed_dim();
256 b = boxset_single_color();
259 printf(
"Unsupported demo type. \n");
279 b1->SetShape(
new TGeoTube(30, 32, 10));
280 b1->SetMainColor(
kCyan);
281 b1->SetNSegments(80);
282 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