19std::shared_ptr<ROOT::RWebWindow> window;
23void ProcessData(
unsigned connid,
const std::string &arg)
27 window->Send(connid, base64.
Data());
28 }
else if (arg ==
"halt") {
30 window->TerminateROOT();
44 gGeoManager->GetVolume(
"HVP2")->SetTransparency(20);
45 gGeoManager->GetVolume(
"HVEQ")->SetTransparency(20);
50 gGeoManager->GetVolume(
"COCF")->SetTransparency(99);
62 std::string
json = data.ProduceJson();
71 std::string fdir = __FILE__;
72 auto pos = fdir.find(
"geom_threejs.cxx");
76 fdir =
gROOT->GetTutorialsDir() + std::string(
"/visualisation/webgui/geom/");
77 window->SetDefaultPage(
"file:" + fdir +
"geom_threejs.html");
80 window->SetDataCallBack(ProcessData);
82 window->SetGeometry(800, 600);
externTGeoManager * gGeoManager
static std::shared_ptr< RWebWindow > Create()
Create new RWebWindow Using default RWebWindowsManager.
static TString Encode(const char *data)
Transform data into a null terminated base64 string.
static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
static TGeoManager * Import(const char *filename, const char *name="", Option_t *option="")
static function Import a geometry from a gdml or ROOT file
const char * Data() const