REveBoxSet* boxset(
Int_t num=100)
{
auto eveMng = REveManager::Create();
auto pal = new REveRGBAPalette(0, 130);
auto q =
new REveBoxSet(
"BoxSet");
q->Reset(REveBoxSet::kBT_FreeBox,
kFALSE, 64);
#define RND_BOX(x) (Float_t)r.Uniform(-(x), (x))
for (
Int_t i=0; i<num; ++i) {
x -
a + RND_BOX(
d),
y -
a + RND_BOX(
d), z -
a + RND_BOX(
d),
x -
a + RND_BOX(
d),
y +
a + RND_BOX(
d), z -
a + RND_BOX(
d),
x +
a + RND_BOX(
d),
y +
a + RND_BOX(
d), z -
a + RND_BOX(
d),
x +
a + RND_BOX(
d),
y -
a + RND_BOX(
d), z -
a + RND_BOX(
d),
x -
a + RND_BOX(
d),
y -
a + RND_BOX(
d), z +
a + RND_BOX(
d),
x -
a + RND_BOX(
d),
y +
a + RND_BOX(
d), z +
a + RND_BOX(
d),
x +
a + RND_BOX(
d),
y +
a + RND_BOX(
d), z +
a + RND_BOX(
d),
x +
a + RND_BOX(
d),
y -
a + RND_BOX(
d), z +
a + RND_BOX(
d) };
q->DigitValue(
r.Uniform(0, 130));
}
#undef RND_BOX
q->SetAlwaysSecSelect(1);
}
{
auto eveMng = REveManager::Create();
auto pal = new REveRGBAPalette(0, 130);
auto frm = new REveFrameBox();
frm->SetAABoxCenterHalfSize(0, 0, 0, 12, 12, 12);
frm->SetFrameColor(
kCyan);
frm->SetBackColorRGBA(120,120,120,20);
auto q =
new REveBoxSet(
"BoxSet");
q->Reset(REveBoxSet::kBT_AABox,
kFALSE, 64);
for (
Int_t i=0; i<num; ++i) {
q->AddBox(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(0.2, 1),
r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
q->DigitValue(
r.Uniform(0, 130));
}
REveTrans& t =
q->RefMainTrans();
q->SetAlwaysSecSelect(1);
if (registerSet)
{
}
}
{
auto eveMng = REveManager::Create();
auto q =
new REveBoxSet(
"BoxSet");
q->Reset(REveBoxSet::kBT_AABox,
kTRUE, 64);
for (
Int_t i=0; i<num; ++i) {
q->AddBox(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(0.2, 1),
r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
q->DigitColor(
r.Uniform(20, 255),
r.Uniform(20, 255),
r.Uniform(20, 255),
r.Uniform(20, 255));
}
REveTrans& t =
q->RefMainTrans();
if (registerSet)
{
}
}
{
auto eveMng = REveManager::Create();
auto q =
new REveBoxSet(
"BoxSet");
q->SetMainTransparency(50);
q->Reset(REveBoxSet::kBT_AABox,
kFALSE, 64);
for (
Int_t i=0; i<num; ++i) {
q->AddBox(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(0.2, 1),
r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
}
REveTrans& t =
q->RefMainTrans();
if (registerSet) {
}
}
virtual void AddElement(REveElement *el)
Add el to the list of children.
REveScene * GetEventScene() const
void Show(const RWebDisplayArgs &args="")
Show eve manager in specified browser.
This is the base class for the ROOT Random number generators.
REX::REveManager * eveMng