Demonstates usage of 2D digit class TEveQuadSet.
{
box->SetAAQuadXY(-10, -10, 0, 20, 20);
for (
Int_t i = 0; i < num; ++i) {
q->AddQuad(
r.Uniform(-10, 9),
r.Uniform(-10, 9), 0,
r.Uniform(0.2, 1),
r.Uniform(0.2, 1));
q->QuadValue(
r.Uniform(0, 130));
q->QuadId(
new TNamed(
Form(
"QuadIdx %d", i),
"TNamed assigned to a quad as an indentifier."));
}
v =
gEve->GetDefaultGLViewer();
v->AddOverlayElement(po);
if (registerSet) {
}
Info(
"quadset",
"use alt-left-mouse to select individual digits.");
}
{
for (
Int_t i = 0; i < num; ++i) {
q->AddQuad(
r.Uniform(-100, 100),
r.Uniform(-100, 100));
q->QuadValue(
r.Uniform(0, 130));
}
}
{
{
for (
Int_t i = 0; i < 36; ++i, p += 3) {
p[2] = 0;
}
box->SetQuadByPoints(frame, 36);
}
for (
Int_t i = 0; i < maxI; ++i) {
q->AddHexagon(
x,
y, rnd.Uniform(-1, 1), rnd.Uniform(0.2, 1));
q->QuadValue(rnd.Uniform(0, 130));
}
}
}
{
{
for (
Int_t i = 0; i < num; ++i) {
q->AddHexagon(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(0.2, 1));
q->QuadValue(
r.Uniform(0, 120));
}
if (registerSet) {
}
}
{
for (
Int_t i = 0; i < num; ++i) {
q->AddHexagon(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(0.2, 1));
q->QuadValue(
r.Uniform(0, 120));
}
if (registerSet) {
}
}
}
{
{
for (
Int_t i = 0; i < num; ++i) {
q->AddHexagon(
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(-10, 10),
r.Uniform(0.2, 1));
q->QuadValue(
r.Uniform(0, 120));
q->QuadId(
new TNamed(
Form(
"Quad with idx=%d", i),
"This title is not confusing."));
}
if (registerSet) {
}
}
}
void quadset_hierarchy(
Int_t n = 4)
{
box->SetAABox(-10, -10, -10, 20, 20, 20);
for (
Int_t i = 0; i <
n; ++i) {
}
}
{
printf(
"dump_digit_set_hit - 0x%lx, id=%d, obj=0x%lx\n", (
ULong_t)ds, idx, (
ULong_t)obj);
}
{
}
{
}
#define R(a, b, c, d, e, f, g, h, i)
int Int_t
Signed integer 4 bytes (int).
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
bool Bool_t
Boolean (0=false, 1=true) (bool).
float Float_t
Float 4 bytes (float).
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Base-class for storage of digit collections; provides transformation matrix (TEveTrans),...
void SetPalette(TEveRGBAPalette *p)
Set TEveRGBAPalette pointer.
void SetCallbackFoo(Callback_foo f)
void SetTooltipCBFoo(TooltipCB_foo f)
void SetFrame(TEveFrameBox *b)
Set TEveFrameBox pointer.
virtual const char * GetElementName() const
Virtual function for retrieving name of the element.
Description of a 2D or 3D frame that can be used to visually group a set of objects.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
Supports various internal formats that result in rendering of a set of planar (lines,...
@ kQT_RectangleXZFixedDimY
Description of TEveRGBAPaletteOverlay.
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
void SetLimits(Int_t low, Int_t high)
Set low/high limits on signal value.
TEveTrans is a 4x4 transformation matrix for homogeneous coordinates stored internally in a column-ma...
void RotateLF(Int_t i1, Int_t i2, Double_t amount)
Rotate in local frame. Does optimised version of MultRight.
void SetPos(Double_t x, Double_t y, Double_t z)
Set position (base-vec 4).
A GL overlay element which displays camera furstum.
void SetShowOrthographic(Bool_t x)
void SetOrthographicMode(EMode m)
Base GL viewer object - used by both standalone and embedded (in pad) GL.
The TNamed class is the base class for all named ROOT classes.
Mother of all ROOT objects.
This is the base class for the ROOT Random number generators.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.
constexpr Double_t TwoPi()