14 if (level <= 0)
return;
16 for (
Int_t i = 0; i < Ns; ++i) {
27 add_blobs(
x, 0.8 * rad, 0.8 * height, 0.8 *
size, level - 1);
31void hierarchical_scene()
43 add_blobs(s, 6, 4, 0.5, 4);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
R__EXTERN TEveManager * gEve
R__EXTERN TRandom * gRandom
static void SetPalette(Int_t ncolors, Int_t *colors, Float_t alpha=1.)
Static function.
static Int_t GetColorPalette(Int_t i)
Static function returning the color number i in current palette.
static Int_t GetNumberOfColors()
Static function returning number of colors in the color palette.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
virtual void AddElement(TEveElement *el)
Add el to the list of children.
Wrapper for TGeoShape with absolute positioning and color attributes allowing display of extracted TG...
TEveViewer * GetDefaultViewer() const
Returns the default viewer - the first one in the fViewers list.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
TEveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
void SetHierarchical(Bool_t h)
virtual void AddScene(TEveScene *scene)
Add 'scene' to the list of scenes.
TGeoSphere are not just balls having internal and external radii, but sectors of a sphere having defi...
Random number generator class based on M.
virtual UInt_t Integer(UInt_t imax)
Returns a random integer uniformly distributed on the interval [ 0, imax-1 ].
constexpr Double_t TwoPi()