GeoModel - GeoModelCore
GeoSerialTransformer.cxx
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "GeoModelKernel/GeoSerialTransformer.h"
6 #include "GeoModelKernel/GeoNodeAction.h"
7 
8 GeoSerialTransformer::GeoSerialTransformer (const GeoVPhysVol *volume, const GeoXF::Function *func, unsigned int copies)
9  : m_nCopies (copies)
10  , m_function (func->clone ())
11  , m_physVol (volume)
12 {
13  m_physVol->ref ();
14 }
15 
16 GeoSerialTransformer::~GeoSerialTransformer()
17 {
18  m_physVol->unref ();
19  delete m_function;
20 }
21 
22 void GeoSerialTransformer::exec (GeoNodeAction *action) const
23 {
24  action->handleSerialTransformer (this);
25 }
26 
27 const GeoXF::Function * GeoSerialTransformer::getFunction () const
28 {
29  return m_function;
30 }
31 
This type of action sees the geometry graph in full detail, including each transformation and propert...
Definition: GeoNodeAction.h:30