16#include <ROOT/REveManager.hxx>
17#include <ROOT/REveGeoShapeExtract.hxx>
18#include <ROOT/REveGeoShape.hxx>
22REX::REveGeoShape *eve_shape = 0;
24void show_extract(
const char*
file=
"csg.root")
29 REX::REveManager::Create();
36 const TString extract_class(
"ROOT::Experimental::REveGeoShapeExtract");
38 while ((key = (
TKey*) next()))
42 auto gse = (REX::REveGeoShapeExtract*) key->
ReadObj();
43 eve_shape = REX::REveGeoShape::ImportShapeExtract(gse, 0);
50 Error(
"show_extract.C",
"No keys of class '%s'.", extract_class.Data());
54 eve_shape->GetShape()->Draw(
"ogl");
void Error(const char *location, const char *msgfmt,...)
R__EXTERN TEveManager * gEve
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
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.
virtual const char * GetClassName() const
virtual TObject * ReadObj()
To read a TObject* from the file.