VGM Version 5.3
Loading...
Searching...
No Matches
RootGM::SolidMap Class Reference

The map between VGM and Root solids. More...

#include <SolidMap.h>

Public Types

typedef std::map< VGM::ISolid *, TGeoShape * > RootSolidMap
 
typedef RootSolidMap::const_iterator RootSolidMapCIterator
 
typedef std::map< TGeoShape *, VGM::ISolid * > VgmSolidMap
 
typedef VgmSolidMap::const_iterator VgmSolidMapCIterator
 

Public Member Functions

 SolidMap ()
 
virtual ~SolidMap ()
 
void AddSolid (VGM::ISolid *, TGeoShape *)
 
void AddSolidInRootMapOnly (VGM::ISolid *, TGeoShape *)
 
void AddSolidInVGMMapOnly (VGM::ISolid *, TGeoShape *)
 
TGeoShape * GetSolid (VGM::ISolid *iSolid) const
 
VGM::ISolidGetSolid (TGeoShape *solid) const
 

Static Public Member Functions

static SolidMapInstance ()
 

Detailed Description

The map between VGM and Root solids.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 35 of file SolidMap.h.

Member Typedef Documentation

◆ RootSolidMap

typedef std::map<VGM::ISolid*, TGeoShape*> RootGM::SolidMap::RootSolidMap

Definition at line 38 of file SolidMap.h.

◆ RootSolidMapCIterator

typedef RootSolidMap::const_iterator RootGM::SolidMap::RootSolidMapCIterator

Definition at line 39 of file SolidMap.h.

◆ VgmSolidMap

typedef std::map<TGeoShape*, VGM::ISolid*> RootGM::SolidMap::VgmSolidMap

Definition at line 41 of file SolidMap.h.

◆ VgmSolidMapCIterator

typedef VgmSolidMap::const_iterator RootGM::SolidMap::VgmSolidMapCIterator

Definition at line 42 of file SolidMap.h.

Constructor & Destructor Documentation

◆ SolidMap()

RootGM::SolidMap::SolidMap ( )

Standard default constructor

Definition at line 38 of file SolidMap.cxx.

◆ ~SolidMap()

RootGM::SolidMap::~SolidMap ( )
virtual

Definition at line 52 of file SolidMap.cxx.

Member Function Documentation

◆ Instance()

RootGM::SolidMap * RootGM::SolidMap::Instance ( )
static

Singleton access function

Definition at line 28 of file SolidMap.cxx.

◆ AddSolid()

void RootGM::SolidMap::AddSolid ( VGM::ISolid * iSolid,
TGeoShape * rootSolid )

Adds the specified pair in both maps

Definition at line 59 of file SolidMap.cxx.

◆ AddSolidInRootMapOnly()

void RootGM::SolidMap::AddSolidInRootMapOnly ( VGM::ISolid * iSolid,
TGeoShape * rootSolid )

Adds the specified pair in the Root map only

Definition at line 68 of file SolidMap.cxx.

◆ AddSolidInVGMMapOnly()

void RootGM::SolidMap::AddSolidInVGMMapOnly ( VGM::ISolid * iSolid,
TGeoShape * rootSolid )

Adds the specified pair in the VGM map only

Definition at line 77 of file SolidMap.cxx.

◆ GetSolid() [1/2]

TGeoShape * RootGM::SolidMap::GetSolid ( VGM::ISolid * iSolid) const

Find the Root solid corresponding to a specified VGM solid

Definition at line 86 of file SolidMap.cxx.

◆ GetSolid() [2/2]

VGM::ISolid * RootGM::SolidMap::GetSolid ( TGeoShape * solid) const

Find the VGM solid corresponding to a specified Root solid

Definition at line 98 of file SolidMap.cxx.


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