VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
RootGM
include
RootGM
materials
ElementMap.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 - 2010 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_ELEMENT_MAP_H
21
#define ROOT_GM_ELEMENT_MAP_H
22
23
#include <map>
24
25
class
TGeoElement;
26
27
namespace
VGM
{
28
class
IElement
;
29
}
30
31
namespace
RootGM
{
32
33
class
ElementMap
;
34
35
class
ElementMap
36
{
37
public
:
38
typedef
std::map<VGM::IElement*, TGeoElement*>
TGeoElementMap
;
39
typedef
TGeoElementMap::const_iterator
TGeoElementMapCIterator
;
40
41
typedef
std::map<TGeoElement*, VGM::IElement*>
VgmElementMap
;
42
typedef
VgmElementMap::const_iterator
VgmElementMapCIterator
;
43
44
public
:
45
ElementMap
();
46
virtual
~ElementMap
();
47
48
// static access methods
49
static
ElementMap
*
Instance
();
50
51
// methods
52
void
AddElement
(
VGM::IElement
*, TGeoElement*);
53
void
Print
()
const
;
54
55
// get methods
56
TGeoElement*
GetElement
(
VGM::IElement
* iElement)
const
;
57
VGM::IElement
*
GetElement
(TGeoElement* tgeoElement)
const
;
58
59
protected
:
60
ElementMap
(
const
ElementMap
&);
61
62
private
:
63
// static data members
64
static
ElementMap
* fgInstance;
65
66
// data members
67
TGeoElementMap
fTGeoElements;
68
VgmElementMap
fVgmElements;
69
};
70
71
}
// namespace RootGM
72
73
#endif
// GEANT4_GM_ELEMENT_MAP_H
RootGM::ElementMap
The map between VGM and Root elements.
Definition
ElementMap.h:36
RootGM::ElementMap::VgmElementMapCIterator
VgmElementMap::const_iterator VgmElementMapCIterator
Definition
ElementMap.h:42
RootGM::ElementMap::~ElementMap
virtual ~ElementMap()
Definition
ElementMap.cxx:52
RootGM::ElementMap::VgmElementMap
std::map< TGeoElement *, VGM::IElement * > VgmElementMap
Definition
ElementMap.h:41
RootGM::ElementMap::AddElement
void AddElement(VGM::IElement *, TGeoElement *)
Definition
ElementMap.cxx:63
RootGM::ElementMap::TGeoElementMap
std::map< VGM::IElement *, TGeoElement * > TGeoElementMap
Definition
ElementMap.h:38
RootGM::ElementMap::GetElement
TGeoElement * GetElement(VGM::IElement *iElement) const
Definition
ElementMap.cxx:92
RootGM::ElementMap::Instance
static ElementMap * Instance()
Definition
ElementMap.cxx:28
RootGM::ElementMap::TGeoElementMapCIterator
TGeoElementMap::const_iterator TGeoElementMapCIterator
Definition
ElementMap.h:39
RootGM::ElementMap::Print
void Print() const
Definition
ElementMap.cxx:73
RootGM::ElementMap::ElementMap
ElementMap()
Definition
ElementMap.cxx:38
VGM::IElement
The VGM interface to elements.
Definition
IElement.h:34
RootGM
VGM implementation for Root.
Definition
axis.h:28
VGM
VGM interfaces.
Definition
VMedium.h:28
Generated on
for VGM by
1.17.0