Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RGeomHierarchy.hxx
Go to the documentation of this file.
1// Author: Sergey Linev, 3.03.2023
2
3/*************************************************************************
4 * Copyright (C) 1995-2023, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT7_RGeomHierarchy
12#define ROOT7_RGeomHierarchy
13
15#include <ROOT/RGeomData.hxx>
16
17#include <memory>
18
19class TGeoManager;
20class TGeoVolume;
21
22namespace ROOT {
23
24class RWebWindow;
25
27
28protected:
29
30 RGeomDescription &fDesc; ///<! geometry description, shared with external
31 std::shared_ptr<RWebWindow> fWebWindow; ///<! web window to show geometry
32
33 void WebWindowCallback(unsigned connid, const std::string &arg);
34
35 void ProcessSignal(const std::string &kind);
36
37public:
38
39 RGeomHierarchy(RGeomDescription &desc, bool use_server_threads = false);
40 virtual ~RGeomHierarchy();
41
42 void Show(const RWebDisplayArgs &args = "");
43
44 void Update();
45
46 void BrowseTo(const std::string &itemname);
47
49
50 void ClearOnClose(const std::shared_ptr<void> &handle);
51};
52
53} // namespace ROOT
54
55#endif
void Show(const RWebDisplayArgs &args="")
Show hierarchy in web window.
void Update()
Update client - reload hierarchy.
std::shared_ptr< RWebWindow > fWebWindow
! web window to show geometry
virtual ~RGeomHierarchy()
destructor
RGeomDescription & Description()
void ClearOnClose(const std::shared_ptr< void > &handle)
Set handle which will be cleared when connection is closed Must be called after window is shown.
void BrowseTo(const std::string &itemname)
Let browse to specified location.
void ProcessSignal(const std::string &kind)
Process signals from geometry description object.
void WebWindowCallback(unsigned connid, const std::string &arg)
Process data from client.
RGeomDescription & fDesc
! geometry description, shared with external
Holds different arguments for starting browser with RWebDisplayHandle::Display() method.
The manager class for any TGeo geometry.
Definition TGeoManager.h:44
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
Definition TGeoVolume.h:43
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...