Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::RGeomBrowserIter Class Reference

Iterator of hierarchical geometry structures.

Definition at line 60 of file RGeomData.cxx.

Public Member Functions

 RGeomBrowserIter (RGeomDescription &desc)
 
std::vector< intCurrentIds () const
 Returns array of ids to currently selected node.
 
bool Enter ()
 
const std::string & GetColor () const
 
const std::string & GetMaterial () const
 
const std::string & GetName () const
 
int GetNodeId () const
 
int GetVisible () const
 
bool HasChilds () const
 
bool IsValid () const
 
bool Leave ()
 
bool Navigate (const std::string &path)
 Navigate to specified path - path specified as string and should start with "/".
 
bool Navigate (const std::vector< std::string > &path)
 Navigate to specified path

 
bool Navigate (TGeoVolume *vol)
 Navigate to specified volume - find first occurrence.
 
bool Next ()
 
bool NextNode ()
 
int NumChilds () const
 
bool Reset ()
 

Private Attributes

unsigned fChild {0}
 
RGeomDescriptionfDesc
 
int fNodeId {0}
 
int fParentId {-1}
 
std::vector< intfStackChilds
 
std::vector< intfStackParents
 

Constructor & Destructor Documentation

◆ RGeomBrowserIter()

ROOT::RGeomBrowserIter::RGeomBrowserIter ( RGeomDescription desc)
inline

Definition at line 71 of file RGeomData.cxx.

Member Function Documentation

◆ CurrentIds()

std::vector< int > ROOT::RGeomBrowserIter::CurrentIds ( ) const
inline

Returns array of ids to currently selected node.

Definition at line 248 of file RGeomData.cxx.

◆ Enter()

bool ROOT::RGeomBrowserIter::Enter ( )
inline

Definition at line 89 of file RGeomData.cxx.

◆ GetColor()

const std::string & ROOT::RGeomBrowserIter::GetColor ( ) const
inline

Definition at line 75 of file RGeomData.cxx.

◆ GetMaterial()

const std::string & ROOT::RGeomBrowserIter::GetMaterial ( ) const
inline

Definition at line 77 of file RGeomData.cxx.

◆ GetName()

const std::string & ROOT::RGeomBrowserIter::GetName ( ) const
inline

Definition at line 73 of file RGeomData.cxx.

◆ GetNodeId()

int ROOT::RGeomBrowserIter::GetNodeId ( ) const
inline

Definition at line 83 of file RGeomData.cxx.

◆ GetVisible()

int ROOT::RGeomBrowserIter::GetVisible ( ) const
inline

Definition at line 79 of file RGeomData.cxx.

◆ HasChilds()

bool ROOT::RGeomBrowserIter::HasChilds ( ) const
inline

Definition at line 85 of file RGeomData.cxx.

◆ IsValid()

bool ROOT::RGeomBrowserIter::IsValid ( ) const
inline

Definition at line 81 of file RGeomData.cxx.

◆ Leave()

bool ROOT::RGeomBrowserIter::Leave ( )
inline

Definition at line 111 of file RGeomData.cxx.

◆ Navigate() [1/3]

bool ROOT::RGeomBrowserIter::Navigate ( const std::string &  path)
inline

Navigate to specified path - path specified as string and should start with "/".

Definition at line 177 of file RGeomData.cxx.

◆ Navigate() [2/3]

bool ROOT::RGeomBrowserIter::Navigate ( const std::vector< std::string > &  path)
inline

Navigate to specified path

Definition at line 212 of file RGeomData.cxx.

◆ Navigate() [3/3]

bool ROOT::RGeomBrowserIter::Navigate ( TGeoVolume vol)
inline

Navigate to specified volume - find first occurrence.

Definition at line 235 of file RGeomData.cxx.

◆ Next()

bool ROOT::RGeomBrowserIter::Next ( )
inline

Definition at line 131 of file RGeomData.cxx.

◆ NextNode()

bool ROOT::RGeomBrowserIter::NextNode ( )
inline

Definition at line 160 of file RGeomData.cxx.

◆ NumChilds()

int ROOT::RGeomBrowserIter::NumChilds ( ) const
inline

Definition at line 87 of file RGeomData.cxx.

◆ Reset()

bool ROOT::RGeomBrowserIter::Reset ( )
inline

Definition at line 149 of file RGeomData.cxx.

Member Data Documentation

◆ fChild

unsigned ROOT::RGeomBrowserIter::fChild {0}
private

Definition at line 64 of file RGeomData.cxx.

◆ fDesc

RGeomDescription& ROOT::RGeomBrowserIter::fDesc
private

Definition at line 62 of file RGeomData.cxx.

◆ fNodeId

int ROOT::RGeomBrowserIter::fNodeId {0}
private

Definition at line 65 of file RGeomData.cxx.

◆ fParentId

int ROOT::RGeomBrowserIter::fParentId {-1}
private

Definition at line 63 of file RGeomData.cxx.

◆ fStackChilds

std::vector<int> ROOT::RGeomBrowserIter::fStackChilds
private

Definition at line 68 of file RGeomData.cxx.

◆ fStackParents

std::vector<int> ROOT::RGeomBrowserIter::fStackParents
private

Definition at line 67 of file RGeomData.cxx.

  • geom/webviewer/src/RGeomData.cxx