12#ifndef ROOT7_REveGeomViewer
13#define ROOT7_REveGeomViewer
23namespace Experimental {
44 std::vector<int>
GetStackFromJson(
const std::string &json,
bool node_ids =
false);
63 void SetLimits(
int nnodes = 5000,
int nfaces = 100000)
87 void SaveImage(
const std::string &fname =
"geometry.png");
Central application manager for Eve.
void SetVisLevel(int lvl=3)
Set maximal visible level.
void SetMaxVisFaces(int cnt)
Set maximal number of faces which should be selected for drawing.
void SetMaxVisNodes(int cnt)
Set maximal number of nodes which should be selected for drawing.
std::string fSelectedVolume
! name of selected volume
void SetTitle(const std::string &title)
void SaveImage(const std::string &fname="geometry.png")
Produce PNG image of drawn geometry Drawing should be completed at the moment Executed asynchronous -...
void SelectVolume(const std::string &volname)
Select visible top volume, all other volumes will be disabled.
void Update()
Update geometry drawings in all web displays.
bool fShowHierarchy
! if hierarchy visible by default
void SendGeometry(unsigned connid)
Send data for principal geometry draw.
std::string GetWindowAddr() const
Return URL address of web window used for geometry viewer.
std::shared_ptr< RWebWindow > fWebWindow
! web window to show geometry
REveGeomDescription fDesc
! geometry description, send to the client as first message
bool GetShowHierarchy() const
Returns default hierarchy browser visibility.
TGeoManager * fGeoManager
! geometry to show
void SetVisLevel(int lvl=3)
Configures maximal visible level.
void WebWindowCallback(unsigned connid, const std::string &arg)
receive data from client
void SetLimits(int nnodes=5000, int nfaces=100000)
Configures maximal number of visible nodes and faces.
std::string fTitle
! title of geometry viewer
std::vector< int > GetStackFromJson(const std::string &json, bool node_ids=false)
convert JSON into stack array
virtual ~REveGeomViewer()
destructor
void SetDrawOptions(const std::string &opt)
Configures draw option for geometry Normally has effect before first drawing of the geometry When geo...
void SetGeometry(TGeoManager *mgr, const std::string &volname="")
assign new geometry to the viewer
void Show(const RWebDisplayArgs &args="", bool always_start_new_browser=false)
Show or update geometry in web window If web browser already started - just refresh drawing like "rel...
const std::string & GetTitle() const
void SetShowHierarchy(bool on=true)
Configures default hierarchy browser visibility, only has effect before showing web window.
Holds different arguments for starting browser with RWebDisplayHandle::Display() method.
The manager class for any TGeo geometry.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...