Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Browsable::TGeoVolumeIter Class Reference

Iterating over nodes in the volume.

Definition at line 98 of file TGeoBrowseProvider.cxx.

Public Member Functions

 TGeoVolumeIter (TGeoVolume *vol)
 
 ~TGeoVolumeIter () override=default
 
bool CanItemHaveChilds () const override
 Returns true if current item can have childs.
 
std::unique_ptr< RItemCreateItem () override
 Returns full item information.
 
std::shared_ptr< RElementGetElement () override
 Returns full information for current element.
 
std::string GetItemName () const override
 Returns current entry name

 
bool Next () override
 Shift to next entry.
 
- Public Member Functions inherited from ROOT::Browsable::RLevelIter
virtual ~RLevelIter ()=default
 
virtual bool Find (const std::string &name, int indx=-1)
 Find item with specified name Default implementation, should work for all If index specified, not only name but also index should match.
 

Private Attributes

TGeoNodefCurrent {nullptr}
 ! current node
 
TGeoIterator fIter
 ! iterator
 
Inheritance diagram for ROOT::Browsable::TGeoVolumeIter:
[legend]

Constructor & Destructor Documentation

◆ TGeoVolumeIter()

ROOT::Browsable::TGeoVolumeIter::TGeoVolumeIter ( TGeoVolume vol)
inlineexplicit

Definition at line 103 of file TGeoBrowseProvider.cxx.

◆ ~TGeoVolumeIter()

ROOT::Browsable::TGeoVolumeIter::~TGeoVolumeIter ( )
overridedefault

Member Function Documentation

◆ CanItemHaveChilds()

bool ROOT::Browsable::TGeoVolumeIter::CanItemHaveChilds ( ) const
inlineoverridevirtual

Returns true if current item can have childs.

Reimplemented from ROOT::Browsable::RLevelIter.

Definition at line 118 of file TGeoBrowseProvider.cxx.

◆ CreateItem()

std::unique_ptr< RItem > ROOT::Browsable::TGeoVolumeIter::CreateItem ( )
inlineoverridevirtual

Returns full item information.

Reimplemented from ROOT::Browsable::RLevelIter.

Definition at line 130 of file TGeoBrowseProvider.cxx.

◆ GetElement()

std::shared_ptr< RElement > ROOT::Browsable::TGeoVolumeIter::GetElement ( )
inlineoverridevirtual

Returns full information for current element.

Implements ROOT::Browsable::RLevelIter.

Definition at line 124 of file TGeoBrowseProvider.cxx.

◆ GetItemName()

std::string ROOT::Browsable::TGeoVolumeIter::GetItemName ( ) const
inlineoverridevirtual

Returns current entry name

Implements ROOT::Browsable::RLevelIter.

Definition at line 116 of file TGeoBrowseProvider.cxx.

◆ Next()

bool ROOT::Browsable::TGeoVolumeIter::Next ( )
inlineoverridevirtual

Shift to next entry.

Implements ROOT::Browsable::RLevelIter.

Definition at line 110 of file TGeoBrowseProvider.cxx.

Member Data Documentation

◆ fCurrent

TGeoNode* ROOT::Browsable::TGeoVolumeIter::fCurrent {nullptr}
private

! current node

Definition at line 100 of file TGeoBrowseProvider.cxx.

◆ fIter

TGeoIterator ROOT::Browsable::TGeoVolumeIter::fIter
private

! iterator

Definition at line 99 of file TGeoBrowseProvider.cxx.

  • gui/browsable/src/TGeoBrowseProvider.cxx