Definition at line 28 of file REveGeomViewer.hxx.
Public Member Functions | |
REveGeomViewer (TGeoManager *mgr=nullptr, const std::string &volname="") | |
constructor More... | |
virtual | ~REveGeomViewer () |
destructor More... | |
bool | GetShowHierarchy () const |
Returns default hierarchy browser visibility. More... | |
void | SaveImage (const std::string &fname="geometry.png") |
Produce PNG image of drawn geometry Drawing should be completed at the moment Executed asynchronous - method returns immediately, image stored when received from the client. More... | |
void | SelectVolume (const std::string &volname) |
Select visible top volume, all other volumes will be disabled. More... | |
void | SetDrawOptions (const std::string &opt) |
Configures draw option for geometry Normally has effect before first drawing of the geometry When geometry displayed, only "axis" and "rotate" options are updated. More... | |
void | SetGeometry (TGeoManager *mgr, const std::string &volname="") |
assign new geometry to the viewer More... | |
void | SetLimits (int nnodes=5000, int nfaces=100000) |
Configures maximal number of visible nodes and faces. More... | |
void | SetShowHierarchy (bool on=true) |
Configures default hierarchy browser visibility, only has effect before showing web window. More... | |
void | SetVisLevel (int lvl=3) |
Configures maximal visible level. More... | |
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 "reload" button does If no web window exists or. More... | |
void | Update () |
Update geometry drawings in all web displays. More... | |
Protected Member Functions | |
std::vector< int > | GetStackFromJson (const std::string &json, bool node_ids=false) |
convert JSON into stack array More... | |
void | SendGeometry (unsigned connid) |
Send data for principal geometry draw. More... | |
void | WebWindowCallback (unsigned connid, const std::string &arg) |
receive data from client More... | |
Protected Attributes | |
REveGeomDescription | fDesc |
! geometry description, send to the client as first message More... | |
TGeoManager * | fGeoManager {nullptr} |
! geometry to show More... | |
std::string | fSelectedVolume |
! name of selected volume More... | |
bool | fShowHierarchy {true} |
! if hierarchy visible by default More... | |
std::shared_ptr< RWebWindow > | fWebWindow |
! web window to show geometry More... | |
Friends | |
class | REveManager |
#include <ROOT/REveGeomViewer.hxx>
ROOT::Experimental::REveGeomViewer::REveGeomViewer | ( | TGeoManager * | mgr = nullptr , |
const std::string & | volname = "" |
||
) |
constructor
Definition at line 32 of file REveGeomViewer.cxx.
|
virtual |
destructor
Definition at line 53 of file REveGeomViewer.cxx.
|
inline |
Returns default hierarchy browser visibility.
Definition at line 73 of file REveGeomViewer.hxx.
|
protected |
convert JSON into stack array
Definition at line 109 of file REveGeomViewer.cxx.
void ROOT::Experimental::REveGeomViewer::SaveImage | ( | const std::string & | fname = "geometry.png" | ) |
Produce PNG image of drawn geometry Drawing should be completed at the moment Executed asynchronous - method returns immediately, image stored when received from the client.
Definition at line 157 of file REveGeomViewer.cxx.
void ROOT::Experimental::REveGeomViewer::SelectVolume | ( | const std::string & | volname | ) |
Select visible top volume, all other volumes will be disabled.
Definition at line 75 of file REveGeomViewer.cxx.
|
protected |
Send data for principal geometry draw.
Definition at line 127 of file REveGeomViewer.cxx.
void ROOT::Experimental::REveGeomViewer::SetDrawOptions | ( | const std::string & | opt | ) |
Configures draw option for geometry Normally has effect before first drawing of the geometry When geometry displayed, only "axis" and "rotate" options are updated.
Definition at line 144 of file REveGeomViewer.cxx.
void ROOT::Experimental::REveGeomViewer::SetGeometry | ( | TGeoManager * | mgr, |
const std::string & | volname = "" |
||
) |
assign new geometry to the viewer
Definition at line 61 of file REveGeomViewer.cxx.
|
inline |
Configures maximal number of visible nodes and faces.
Definition at line 57 of file REveGeomViewer.hxx.
Configures default hierarchy browser visibility, only has effect before showing web window.
Definition at line 70 of file REveGeomViewer.hxx.
Configures maximal visible level.
Definition at line 64 of file REveGeomViewer.hxx.
void ROOT::Experimental::REveGeomViewer::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 "reload" button does If no web window exists or.
always_start_new_browser | configured, starts new window |
Definition at line 86 of file REveGeomViewer.cxx.
void ROOT::Experimental::REveGeomViewer::Update | ( | ) |
Update geometry drawings in all web displays.
Definition at line 101 of file REveGeomViewer.cxx.
|
protected |
receive data from client
Definition at line 167 of file REveGeomViewer.cxx.
|
friend |
Definition at line 30 of file REveGeomViewer.hxx.
|
protected |
! geometry description, send to the client as first message
Definition at line 36 of file REveGeomViewer.hxx.
|
protected |
! geometry to show
Definition at line 34 of file REveGeomViewer.hxx.
|
protected |
! name of selected volume
Definition at line 35 of file REveGeomViewer.hxx.
|
protected |
! if hierarchy visible by default
Definition at line 37 of file REveGeomViewer.hxx.
|
protected |
! web window to show geometry
Definition at line 39 of file REveGeomViewer.hxx.