78 default:
throw(eH +
"unexpected atom type.");
117 throw(eH +
"expect free box-type.");
120 memcpy(
b->fVertices, verts,
sizeof(
b->fVertices));
134 throw(eH +
"expect axis-aligned box-type.");
150 throw(eH +
"expect axis-aligned fixed-dimension box-type.");
165 throw(eH +
"expect cone box-type.");
180 static const TEveException eH(
"TEveBoxSet::AddEllipticCone ");
183 throw(eH +
"expect elliptic-cone box-type.");
200 static const TEveException eH(
"TEveBoxSet::AddEllipticCone ");
203 throw(eH +
"expect hex box-type.");
225 for (
int i=0; i<
n; ++i, bbps+=3)
230 if(
fPlex.Size() == 0)
246 for (
Int_t i = 0; i < 8; ++i)
274 Float_t mag2=0, mag2Max=0, rMax=0;
278 mag2 =
b.fDir.Mag2();
279 if (mag2>mag2Max) mag2Max=mag2;
280 if (
b.fR>rMax) rMax=
b.fR;
290 Float_t mag2=0, mag2Max=0, rMax=0;
294 mag2 =
b.fDir.Mag2();
295 if (mag2>mag2Max) mag2Max=mag2;
296 if (
b.fR > rMax) rMax =
b.fR;
297 if (
b.fR2 > rMax) rMax =
b.fR2;
323 throw(eH +
"unsupported box-type.");
338 for(
Int_t i=0; i<nboxes; ++i)
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Signed integer 4 bytes (int).
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char).
bool Bool_t
Boolean (0=false, 1=true) (bool).
float Float_t
Float 4 bytes (float).
TEveVectorT< Float_t > TEveVector
void BBoxCheckPoint(Float_t x, Float_t y, Float_t z)
void BBoxZero(Float_t epsilon=0, Float_t x=0, Float_t y=0, Float_t z=0)
Create cube of volume (2*epsilon)^3 at (x,y,z).
void BBoxInit(Float_t infinity=1e6)
Allocate and prepare for incremental filling.
Float_t * fBBox
! Dynamic Float_t[6] X(min,max), Y(min,max), Z(min,max)
void AddBox(const Float_t *verts)
Create a new box from a set of 8 vertices.
void AddHex(const TEveVector &pos, Float_t r, Float_t angle, Float_t depth)
Create a hexagonal prism with center of one hexagon at pos, radius of hexagon vertices r,...
void Test(Int_t nboxes)
Fill the structure with a random set of boxes.
void ComputeBBox() override
Fill bounding-box information of the base-class TAttBBox (virtual method).
TEveBoxSet(const TEveBoxSet &)
void AddEllipticCone(const TEveVector &pos, const TEveVector &dir, Float_t r, Float_t r2, Float_t angle=0)
Create a cone with apex at pos, axis dir and radius r.
void AddCone(const TEveVector &pos, const TEveVector &dir, Float_t r)
Create a cone with apex at pos, axis dir and radius r.
static Int_t SizeofAtom(EBoxType_e bt)
Return size of data-structure describing a box of type bt.
void Reset()
Reset the data containers to zero size.
TEveDigitSet(const TEveDigitSet &)
void DigitValue(Int_t value)
Set signal value for the last digit added.
void ReleaseIds()
Protected method.
DigitBase_t * NewDigit()
Protected method called whenever a new digit is added.
Exception class thrown by TEve classes and macros.
static void CheckAndFixBoxOrientationFv(Float_t box[8][3])
Make sure box orientation is consistent with standard arrangement.
static void ColorFromIdx(Color_t ci, UChar_t col[4], Bool_t alpha=kTRUE)
Fill col with RGBA values corresponding to index ci.
This is the base class for the ROOT Random number generators.
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
virtual UInt_t Integer(UInt_t imax)
Returns a random integer uniformly distributed on the interval [ 0, imax-1 ].
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Double_t Sqrt(Double_t x)
Returns the square root of x.
Bool_t next()
Go to next atom.