16#include <ROOT/REveManager.hxx>
17#include <ROOT/REveGeoShapeExtract.hxx>
18#include <ROOT/REveGeoShape.hxx>
22void show_extract(
const char*
file=
"csg.root")
27 auto eveMng = REX::REveManager::Create();
33 const TString extract_class(
"ROOT::Experimental::REveGeoShapeExtract");
35 REX::REveGeoShape *eve_shape =
nullptr;
37 while (
auto key = (
TKey *)next())
39 if (extract_class == key->GetClassName())
41 auto gse = (REX::REveGeoShapeExtract*) key->ReadObj();
42 eve_shape = REX::REveGeoShape::ImportShapeExtract(gse, 0);
43 eveMng->AddGlobalElement(eve_shape);
49 Error(
"show_extract.C",
"No keys of class '%s'.", extract_class.Data());
53 eve_shape->GetShape()->Draw(
"ogl");
void Error(const char *location, const char *msgfmt,...)
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseGeneralPurpose, Int_t netopt=0)
Create / open a file.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
REX::REveManager * eveMng