VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
RootGM
include
RootGM
materials
MaterialMap.h
Go to the documentation of this file.
1
// $Id$
2
3
// -----------------------------------------------------------------------
4
// The RootGM package of the Virtual Geometry Model
5
// Copyright (C) 2007, Ivana Hrivnacova
6
// All rights reserved.
7
//
8
// For the licensing terms see vgm/LICENSE.
9
// Contact: ivana@ipno.in2p3.fr
10
// -----------------------------------------------------------------------
11
13
//
19
20
#ifndef ROOT_GM_MATERIAL_MAP_H
21
#define ROOT_GM_MATERIAL_MAP_H
22
23
#include <map>
24
25
class
TGeoMaterial;
26
27
namespace
VGM
{
28
class
IMaterial
;
29
}
30
31
namespace
RootGM
{
32
33
class
MaterialMap
;
34
35
class
MaterialMap
36
{
37
public
:
38
typedef
std::map<VGM::IMaterial*, TGeoMaterial*>
RootMaterialMap
;
39
typedef
RootMaterialMap::const_iterator
RootMaterialMapCIterator
;
40
41
typedef
std::map<TGeoMaterial*, VGM::IMaterial*>
VgmMaterialMap
;
42
typedef
VgmMaterialMap::const_iterator
VgmMaterialMapCIterator
;
43
44
public
:
45
MaterialMap
();
46
virtual
~MaterialMap
();
47
48
// static access methods
49
static
MaterialMap
*
Instance
();
50
51
// methods
52
void
AddMaterial
(
VGM::IMaterial
*, TGeoMaterial*);
53
void
Print
()
const
;
54
55
// get methods
56
TGeoMaterial*
GetMaterial
(
VGM::IMaterial
* iMaterial)
const
;
57
VGM::IMaterial
*
GetMaterial
(TGeoMaterial* rootMaterial)
const
;
58
59
private
:
60
MaterialMap
(
const
MaterialMap
&);
61
62
// static data members
63
static
MaterialMap
* fgInstance;
64
65
// data members
66
RootMaterialMap
fRootMaterials;
67
VgmMaterialMap
fVgmMaterials;
68
};
69
70
}
// namespace RootGM
71
72
#endif
// ROOT_GM_MATERIAL_MAP_H
RootGM::MaterialMap
The map between VGM and Root material.
Definition
MaterialMap.h:36
RootGM::MaterialMap::~MaterialMap
virtual ~MaterialMap()
Definition
MaterialMap.cxx:52
RootGM::MaterialMap::MaterialMap
MaterialMap()
Definition
MaterialMap.cxx:38
RootGM::MaterialMap::VgmMaterialMapCIterator
VgmMaterialMap::const_iterator VgmMaterialMapCIterator
Definition
MaterialMap.h:42
RootGM::MaterialMap::RootMaterialMap
std::map< VGM::IMaterial *, TGeoMaterial * > RootMaterialMap
Definition
MaterialMap.h:38
RootGM::MaterialMap::GetMaterial
TGeoMaterial * GetMaterial(VGM::IMaterial *iMaterial) const
Definition
MaterialMap.cxx:93
RootGM::MaterialMap::Print
void Print() const
Definition
MaterialMap.cxx:73
RootGM::MaterialMap::VgmMaterialMap
std::map< TGeoMaterial *, VGM::IMaterial * > VgmMaterialMap
Definition
MaterialMap.h:41
RootGM::MaterialMap::RootMaterialMapCIterator
RootMaterialMap::const_iterator RootMaterialMapCIterator
Definition
MaterialMap.h:39
RootGM::MaterialMap::AddMaterial
void AddMaterial(VGM::IMaterial *, TGeoMaterial *)
Definition
MaterialMap.cxx:63
RootGM::MaterialMap::Instance
static MaterialMap * Instance()
Definition
MaterialMap.cxx:28
VGM::IMaterial
The VGM interface to materials.
Definition
IMaterial.h:44
RootGM
VGM implementation for Root.
Definition
axis.h:28
VGM
VGM interfaces.
Definition
VMedium.h:28
Generated on
for VGM by
1.17.0