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);
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);
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);
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);
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);
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);
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;
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;
246 eveMng->GetEventScene()->AddElement(
b);
250 eveMng->GetEventScene()->AddElement(
b->GetPalette());
261 b1->SetShape(
new TGeoTube(30, 32, 10));
262 b1->SetMainColor(
kCyan);
263 b1->SetNSegments(80);
264 b1->SetMainTransparency(95);
#define R(a, b, c, d, e, f, g, h, i)
int Int_t
Signed integer 4 bytes (int).
short Color_t
Color number (short).
float Float_t
Float 4 bytes (float).
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
Namespace for ROOT features in testing.
REveVectorT< Float_t > REveVector