Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
show_geo_extract.C File Reference

Detailed Description

Helper script for showing of extracted / simplified geometries.

The test macro how to create the shapes is in file write_geo_extract.C

void show_geo_extract(const char *file = "testShapeExtract.root")
{
// eveMng->AllowMultipleRemoteConnections(false, false);
TFile::Open(file);
TIter next(gDirectory->GetListOfKeys());
TKey *key;
TString seName("ROOT::Experimental::REveGeoShapeExtract");
while ((key = (TKey *)next())) {
std::cout << "calss name " << key->GetClassName() << "\n";
if (seName == key->GetClassName()) {
std::cout << "got the extract name " << key->GetClassName() << "\n";
eveMng->AddGlobalElement(gs);
}
}
eveMng->Show();
}
#define gDirectory
Definition TDirectory.h:385
static REveGeoShape * ImportShapeExtract(REveGeoShapeExtract *gse, REveElement *parent=nullptr)
Import a shape extract 'gse' under element 'parent'.
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.
Definition TFile.cxx:3787
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Definition TKey.h:28
virtual const char * GetClassName() const
Definition TKey.h:77
virtual TObject * ReadObj()
To read a TObject* from the file.
Definition TKey.cxx:792
Basic string class.
Definition TString.h:138
ROOT::Experimental::REveManager * eveMng
Author
Matevz Tadel

Definition in file show_geo_extract.C.