12#ifndef ROOT7_RGeomViewer
13#define ROOT7_RGeomViewer
24namespace Experimental {
63 void SetLimits(
int nnodes = 5000,
int nfaces = 100000)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
void SetMaxVisNodes(int cnt)
Set maximal number of nodes which should be selected for drawing.
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 SetTopVisible(bool on=true)
Set draw options as string for JSROOT TGeoPainter.
void SetTitle(const std::string &title)
void SetTopVisible(bool on=true)
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...
void SetGeometry(TGeoManager *mgr, const std::string &volname="")
assign new geometry to the viewer
std::vector< int > GetStackFromJson(const std::string &json, bool node_ids=false)
convert JSON into stack array
virtual ~RGeomViewer()
destructor
std::shared_ptr< RWebWindow > fWebWindow
! web window to show geometry
std::string GetWindowAddr() const
Return URL address of web window used for geometry viewer.
void SetVisLevel(int lvl=3)
Configures maximal visible level.
std::string fSelectedVolume
! name of selected volume
bool fShowHierarchy
! if hierarchy visible by default
void Update()
Update geometry drawings in all web displays.
void SetLimits(int nnodes=5000, int nfaces=100000)
Configures maximal number of visible nodes and faces.
bool GetShowHierarchy() const
Returns default hierarchy browser visibility.
void SetDrawOptions(const std::string &opt)
Configures draw option for geometry Normally has effect before first drawing of the geometry When geo...
void SetShowHierarchy(bool on=true)
Configures default hierarchy browser visibility, only has effect before showing web window.
TGeoManager * fGeoManager
! geometry to show
const std::string & GetTitle() const
RGeomDescription fDesc
! geometry description, send to the client as first message
void SendGeometry(unsigned connid)
Send data for principal geometry draw.
void WebWindowCallback(unsigned connid, const std::string &arg)
receive data from client
std::string fTitle
! title of geometry viewer
void SetOnlyVolume(TGeoVolume *vol)
Draw only specified volume, special case when volume stored without valid geomanager.
void SelectVolume(const std::string &volname)
Select visible top volume, all other volumes will be disabled.
void SaveImage(const std::string &fname="geometry.png", int width=0, int height=0)
Produce PNG image of the geometry If web-browser is shown and drawing completed, image is requested f...
Holds different arguments for starting browser with RWebDisplayHandle::Display() method.
The manager class for any TGeo geometry.
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.