Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::REveGeomViewer Class Reference

Definition at line 28 of file REveGeomViewer.hxx.

Public Member Functions

 REveGeomViewer (TGeoManager *mgr=nullptr, const std::string &volname="")
 constructor
 
virtual ~REveGeomViewer ()
 destructor
 
bool GetShowHierarchy () const
 Returns default hierarchy browser visibility.
 
const std::string & GetTitle () const
 
std::string GetWindowAddr () const
 Return URL address of web window used for geometry viewer.
 
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.
 
void SelectVolume (const std::string &volname)
 Select visible top volume, all other volumes will be disabled.
 
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.
 
void SetGeometry (TGeoManager *mgr, const std::string &volname="")
 assign new geometry to the viewer
 
void SetLimits (int nnodes=5000, int nfaces=100000)
 Configures maximal number of visible nodes and faces.
 
void SetShowHierarchy (bool on=true)
 Configures default hierarchy browser visibility, only has effect before showing web window.
 
void SetTitle (const std::string &title)
 
void SetVisLevel (int lvl=3)
 Configures maximal visible level.
 
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.
 
void Update ()
 Update geometry drawings in all web displays.
 

Protected Member Functions

std::vector< intGetStackFromJson (const std::string &json, bool node_ids=false)
 convert JSON into stack array
 
void SendGeometry (unsigned connid)
 Send data for principal geometry draw.
 
void WebWindowCallback (unsigned connid, const std::string &arg)
 receive data from client
 

Protected Attributes

REveGeomDescription fDesc
 ! geometry description, send to the client as first message
 
TGeoManagerfGeoManager {nullptr}
 ! geometry to show
 
std::string fSelectedVolume
 ! name of selected volume
 
bool fShowHierarchy {true}
 ! if hierarchy visible by default
 
std::string fTitle
 ! title of geometry viewer
 
std::shared_ptr< RWebWindowfWebWindow
 ! web window to show geometry
 

Friends

class REveManager
 

#include <ROOT/REveGeomViewer.hxx>

Constructor & Destructor Documentation

◆ REveGeomViewer()

ROOT::Experimental::REveGeomViewer::REveGeomViewer ( TGeoManager mgr = nullptr,
const std::string &  volname = "" 
)

constructor

Definition at line 33 of file REveGeomViewer.cxx.

◆ ~REveGeomViewer()

ROOT::Experimental::REveGeomViewer::~REveGeomViewer ( )
virtual

destructor

Definition at line 54 of file REveGeomViewer.cxx.

Member Function Documentation

◆ GetShowHierarchy()

bool ROOT::Experimental::REveGeomViewer::GetShowHierarchy ( ) const
inline

Returns default hierarchy browser visibility.

Definition at line 79 of file REveGeomViewer.hxx.

◆ GetStackFromJson()

std::vector< int > ROOT::Experimental::REveGeomViewer::GetStackFromJson ( const std::string &  json,
bool  node_ids = false 
)
protected

convert JSON into stack array

Definition at line 122 of file REveGeomViewer.cxx.

◆ GetTitle()

const std::string & ROOT::Experimental::REveGeomViewer::GetTitle ( ) const
inline

Definition at line 54 of file REveGeomViewer.hxx.

◆ GetWindowAddr()

std::string ROOT::Experimental::REveGeomViewer::GetWindowAddr ( ) const

Return URL address of web window used for geometry viewer.

Definition at line 105 of file REveGeomViewer.cxx.

◆ SaveImage()

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 170 of file REveGeomViewer.cxx.

◆ SelectVolume()

void ROOT::Experimental::REveGeomViewer::SelectVolume ( const std::string &  volname)

Select visible top volume, all other volumes will be disabled.

Definition at line 76 of file REveGeomViewer.cxx.

◆ SendGeometry()

void ROOT::Experimental::REveGeomViewer::SendGeometry ( unsigned  connid)
protected

Send data for principal geometry draw.

Definition at line 140 of file REveGeomViewer.cxx.

◆ SetDrawOptions()

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 157 of file REveGeomViewer.cxx.

◆ SetGeometry()

void ROOT::Experimental::REveGeomViewer::SetGeometry ( TGeoManager mgr,
const std::string &  volname = "" 
)

assign new geometry to the viewer

Definition at line 62 of file REveGeomViewer.cxx.

◆ SetLimits()

void ROOT::Experimental::REveGeomViewer::SetLimits ( int  nnodes = 5000,
int  nfaces = 100000 
)
inline

Configures maximal number of visible nodes and faces.

Definition at line 63 of file REveGeomViewer.hxx.

◆ SetShowHierarchy()

void ROOT::Experimental::REveGeomViewer::SetShowHierarchy ( bool  on = true)
inline

Configures default hierarchy browser visibility, only has effect before showing web window.

Definition at line 76 of file REveGeomViewer.hxx.

◆ SetTitle()

void ROOT::Experimental::REveGeomViewer::SetTitle ( const std::string &  title)
inline

Definition at line 53 of file REveGeomViewer.hxx.

◆ SetVisLevel()

void ROOT::Experimental::REveGeomViewer::SetVisLevel ( int  lvl = 3)
inline

Configures maximal visible level.

Definition at line 70 of file REveGeomViewer.hxx.

◆ Show()

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.

Parameters
always_start_new_browserconfigured, starts new window

Definition at line 87 of file REveGeomViewer.cxx.

◆ Update()

void ROOT::Experimental::REveGeomViewer::Update ( )

Update geometry drawings in all web displays.

Definition at line 114 of file REveGeomViewer.cxx.

◆ WebWindowCallback()

void ROOT::Experimental::REveGeomViewer::WebWindowCallback ( unsigned  connid,
const std::string &  arg 
)
protected

receive data from client

Definition at line 180 of file REveGeomViewer.cxx.

Friends And Related Symbol Documentation

◆ REveManager

friend class REveManager
friend

Definition at line 30 of file REveGeomViewer.hxx.

Member Data Documentation

◆ fDesc

REveGeomDescription ROOT::Experimental::REveGeomViewer::fDesc
protected

! geometry description, send to the client as first message

Definition at line 36 of file REveGeomViewer.hxx.

◆ fGeoManager

TGeoManager* ROOT::Experimental::REveGeomViewer::fGeoManager {nullptr}
protected

! geometry to show

Definition at line 34 of file REveGeomViewer.hxx.

◆ fSelectedVolume

std::string ROOT::Experimental::REveGeomViewer::fSelectedVolume
protected

! name of selected volume

Definition at line 35 of file REveGeomViewer.hxx.

◆ fShowHierarchy

bool ROOT::Experimental::REveGeomViewer::fShowHierarchy {true}
protected

! if hierarchy visible by default

Definition at line 37 of file REveGeomViewer.hxx.

◆ fTitle

std::string ROOT::Experimental::REveGeomViewer::fTitle
protected

! title of geometry viewer

Definition at line 38 of file REveGeomViewer.hxx.

◆ fWebWindow

std::shared_ptr<RWebWindow> ROOT::Experimental::REveGeomViewer::fWebWindow
protected

! web window to show geometry

Definition at line 40 of file REveGeomViewer.hxx.

Libraries for ROOT::Experimental::REveGeomViewer:

The documentation for this class was generated from the following files: