Demonstrates usage of TEveBoxSet class.
{
auto eveMng = REveManager::Create();
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) {
q->DigitValue(
r.Uniform(0, 130));
}
#undef RND_BOX
q->SetAlwaysSecSelect(1);
}
{
auto eveMng = REveManager::Create();
frm->SetAABoxCenterHalfSize(0, 0, 0, 12, 12, 12);
frm->SetFrameColor(
kCyan);
frm->SetBackColorRGBA(120,120,120,20);
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));
}
q->SetAlwaysSecSelect(1);
if (registerSet)
{
}
}
{
auto eveMng = REveManager::Create();
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));
}
if (registerSet)
{
}
}
{
auto eveMng = REveManager::Create();
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));
}
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.
void SetPos(Double_t x, Double_t y, Double_t z)
Set position (base-vec 4).
This is the base class for the ROOT Random number generators.
ROOT::Experimental::REveManager * eveMng
- Author
- Matevz Tadel
Definition in file boxset.C.