GeoModel - GeoModelCore
GeoVolumeAction.cxx
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "GeoModelKernel/GeoVolumeAction.h"
6 
7 GeoVolumeAction::GeoVolumeAction (Type type)
8  : m_type(type)
9  , m_terminate(false)
10 {
11 }
12 
13 GeoVolumeAction::~GeoVolumeAction()
14 {
15 }
16 
17 void GeoVolumeAction::handleVPhysVol (const GeoVPhysVol *)
18 {
19 }
20 
21 void GeoVolumeAction::terminate ()
22 {
23  m_terminate = true;
24 }
25 
26 bool GeoVolumeAction::shouldTerminate () const
27 {
28  return m_terminate;
29 }
30 
31 const GeoTraversalState* GeoVolumeAction::getState () const
32 {
33  return &m_traversalState;
34 }
35 
36 GeoTraversalState* GeoVolumeAction::getState ()
37 {
38  return &m_traversalState;
39 }
40 
41 GeoVolumeAction::Type GeoVolumeAction::getType () const
42 {
43  return m_type;
44 }
This incorporates a traversal state, including the following information: