ATLAS Offline Software
Loading...
Searching...
No Matches
VolumeTreeModel::Imp Class Reference
Collaboration diagram for VolumeTreeModel::Imp:

Classes

class  SectionInfo
class  SubSystem

Public Types

enum  SECTION {
  UNKNOWN , INDET , CALO , MUON ,
  MISC
}

Static Public Member Functions

static void defineSubSystem (VP1GeoFlags::SubSystemFlag, QString, SECTION)
static VolumeHandlehandlePointer (const QModelIndex &idx)
static bool isSectionInfoPointer (VolumeHandle *handle)
static bool isSubSystemPointer (VolumeHandle *handle)
static bool isRegularVolumeHandle (VolumeHandle *handle)
static SectionInfosectionInfoPointer (VolumeHandle *handle)
static SubSystemsubSystemPointer (VolumeHandle *handle)

Public Attributes

std::map< VP1GeoFlags::SubSystemFlag, SubSystem * > flag2subsystems
std::map< VolumeHandle *, SubSystem * > volhandle2subsystem
QList< SectionInfo * > allSections
QList< SectionInfo * > activeSections

Static Public Attributes

static std::map< SECTION, QString > section2string
static std::map< VP1GeoFlags::SubSystemFlag, SECTIONsubsysflag2section
static std::map< VP1GeoFlags::SubSystemFlag, QString > subsysflag2string

Detailed Description

Definition at line 32 of file VolumeTreeModel.cxx.

Member Enumeration Documentation

◆ SECTION

Member Function Documentation

◆ defineSubSystem()

void VolumeTreeModel::Imp::defineSubSystem ( VP1GeoFlags::SubSystemFlag subsysflag,
QString subsysname,
SECTION section )
static

Definition at line 96 of file VolumeTreeModel.cxx.

97{
98 Imp::subsysflag2section[subsysflag] = section;
99 Imp::subsysflag2string[subsysflag] = std::move(subsysname);
100}
void section(const std::string &sec)
static std::map< VP1GeoFlags::SubSystemFlag, QString > subsysflag2string
static std::map< VP1GeoFlags::SubSystemFlag, SECTION > subsysflag2section

◆ handlePointer()

VolumeHandle * VolumeTreeModel::Imp::handlePointer ( const QModelIndex & idx)
inlinestatic

Definition at line 79 of file VolumeTreeModel.cxx.

79{ return static_cast<VolumeHandle*>(idx.internalPointer()); }

◆ isRegularVolumeHandle()

bool VolumeTreeModel::Imp::isRegularVolumeHandle ( VolumeHandle * handle)
inlinestatic

Definition at line 82 of file VolumeTreeModel.cxx.

82{ return handle->childNumber()>=0; }
int childNumber() const

◆ isSectionInfoPointer()

bool VolumeTreeModel::Imp::isSectionInfoPointer ( VolumeHandle * handle)
inlinestatic

Definition at line 80 of file VolumeTreeModel.cxx.

80{ return handle->childNumber()==-2; }

◆ isSubSystemPointer()

bool VolumeTreeModel::Imp::isSubSystemPointer ( VolumeHandle * handle)
inlinestatic

Definition at line 81 of file VolumeTreeModel.cxx.

81{ return handle->childNumber()==-1; }

◆ sectionInfoPointer()

SectionInfo * VolumeTreeModel::Imp::sectionInfoPointer ( VolumeHandle * handle)
inlinestatic

Definition at line 83 of file VolumeTreeModel.cxx.

83{ return handle->childNumber()==-2 ? static_cast<SectionInfo*>(handle) : 0; }

◆ subSystemPointer()

SubSystem * VolumeTreeModel::Imp::subSystemPointer ( VolumeHandle * handle)
inlinestatic

Definition at line 84 of file VolumeTreeModel.cxx.

84{ return handle->childNumber()==-1 ? static_cast<SubSystem*>(handle) : 0; }

Member Data Documentation

◆ activeSections

QList<SectionInfo*> VolumeTreeModel::Imp::activeSections

Definition at line 76 of file VolumeTreeModel.cxx.

◆ allSections

QList<SectionInfo*> VolumeTreeModel::Imp::allSections

Definition at line 75 of file VolumeTreeModel.cxx.

◆ flag2subsystems

std::map<VP1GeoFlags::SubSystemFlag,SubSystem*> VolumeTreeModel::Imp::flag2subsystems

Definition at line 60 of file VolumeTreeModel.cxx.

◆ section2string

std::map< VolumeTreeModel::Imp::SECTION, QString > VolumeTreeModel::Imp::section2string
static

Definition at line 36 of file VolumeTreeModel.cxx.

◆ subsysflag2section

std::map< VP1GeoFlags::SubSystemFlag, VolumeTreeModel::Imp::SECTION > VolumeTreeModel::Imp::subsysflag2section
static

Definition at line 37 of file VolumeTreeModel.cxx.

◆ subsysflag2string

std::map< VP1GeoFlags::SubSystemFlag, QString > VolumeTreeModel::Imp::subsysflag2string
static

Definition at line 38 of file VolumeTreeModel.cxx.

◆ volhandle2subsystem

std::map<VolumeHandle*,SubSystem*> VolumeTreeModel::Imp::volhandle2subsystem

Definition at line 62 of file VolumeTreeModel.cxx.


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