22void show_extract(
const char* file=
"csg.root")
33 const TString extract_class(
"ROOT::Experimental::REveGeoShapeExtract");
37 while (
auto key = (
TKey *)next())
39 if (extract_class == key->GetClassName())
43 eveMng->AddGlobalElement(eve_shape);
49 Error(
"show_extract.C",
"No keys of class '%s'.", extract_class.Data());
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
static REveGeoShape * ImportShapeExtract(REveGeoShapeExtract *gse, REveElement *parent=nullptr)
Import a shape extract 'gse' under element 'parent'.
TGeoShape * GetShape() const
static REveManager * Create()
If global REveManager* REX::gEve is not set initialize it.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
void Draw(Option_t *option="") override
Draw this shape.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
ROOT::Experimental::REveManager * eveMng