78 default:
throw(eH +
"unexpected atom type.");
117 throw(eH +
"expect free box-type.");
134 throw(eH +
"expect axis-aligned box-type.");
138 box->
fW = w; box->
fH =
h; box->
fD = d;
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.");
206 for (
int i=0; i<
n; ++i, bbps+=3)
227 for (
Int_t i = 0; i < 8; ++i)
254 Float_t mag2=0, mag2Max=0, rMax=0;
259 if (mag2>mag2Max) mag2Max=mag2;
260 if (b.
fR>rMax) rMax=b.
fR;
269 Float_t mag2=0, mag2Max=0, rMax=0;
274 if (mag2>mag2Max) mag2Max=mag2;
275 if (b.
fR > rMax) rMax = b.
fR;
276 if (b.
fR2 > rMax) rMax = b.
fR2;
285 throw(eH +
"unsupported box-type.");
298 const Float_t origin = 10, size = 2;
300 for(
Int_t i=0; i<nboxes; ++i)
void Test(Int_t nboxes)
Fill the structure with a random set of boxes.
DigitBase_t * NewDigit()
Function providing highlight tooltips when always-sec-select is active.
Collection of 3D primitives (fixed-size boxes, boxes of different sizes, or arbitrary sexto-epipeds...
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 box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Float_t * GetFramePoints() const
static void CheckAndFixBoxOrientationFv(Float_t box[8][3])
Make sure box orientation is consistent with standard arrangement.
void BBoxCheckPoint(Float_t x, Float_t y, Float_t z)
This is the base class for the ROOT Random number generators.
virtual UInt_t Integer(UInt_t imax)
Returns a random integer on [ 0, imax-1 ].
void Reset(Int_t atom_size, Int_t chunk_size)
Empty the container and reset it with given atom and chunk sizes.
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 AddCone(const TEveVector &pos, const TEveVector &dir, Float_t r)
Create a cone with apex at pos, axis dir and radius r.
virtual void ComputeBBox()
Fill bounding-box information of the base-class TAttBBox (virtual method).
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
TEveBoxSet(const TEveBoxSet &)
Bool_t next()
Go to next atom.
static void ColorFromIdx(Color_t ci, UChar_t col[4], Bool_t alpha=kTRUE)
Fill col with RGBA values corresponding to index ci.
Int_t GetFrameSize() const
static Int_t SizeofAtom(EBoxType_e bt)
Return size of data-structure describing a box of type bt.
Short_t Max(Short_t a, Short_t b)
void Reset()
Reset the data containers to zero size.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Exception class thrown by TEve classes and macros.
Double_t Sqrt(Double_t x)
void ReleaseIds()
Protected method.
void DigitValue(Int_t value)
Set signal value for the last digit added.
void BBoxInit(Float_t infinity=1e6)
Dynamic Float_t[6] X(min,max), Y(min,max), Z(min,max)
Base-class for storage of digit collections; provides transformation matrix (TEveTrans), signal to color mapping (TEveRGBAPalette) and visual grouping (TEveFrameBox).
unsigned int r2[N_CITIES]
void AddBox(const Float_t *verts)
Create a new box from a set of 8 vertices.