22void show_extract(
const char *file =
"csg.root")
33 const TString extract_class(
"ROOT::Experimental::REveGeoShapeExtract");
37 while (
auto key = (
TKey *)next()) {
38 if (extract_class == key->GetClassName()) {
41 eveMng->AddGlobalElement(eve_shape);
46 Error(
"show_extract.C",
"No keys of class '%s'.", extract_class.Data());
Error("WriteTObject","The current directory (%s) is not associated with a file. The object (%s) has not been written.", GetName(), objname)
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
Namespace for ROOT features in testing.