00001
00002
00003 #include "VisGeant4/VisG4Core/interface/VisG4VisManager.h"
00004 #include <classlib/utils/DebugAids.h>
00005
00006
00007
00008
00009
00010
00011
00012
00013 IG_DEFINE_STATE_ELEMENT (VisG4VisManager, "Services/Geant4/Vis Manager");
00014
00015
00016
00017
00018
00019 VisG4VisManager::VisG4VisManager (IgState *state)
00020 : m_state (state)
00021 {
00022
00023 ASSERT (m_state);
00024 state->put (s_key, this);
00025
00026
00027 fpConcreteInstance = this;
00028 }
00029
00030 VisG4VisManager::~VisG4VisManager (void)
00031 { m_state->detach (s_key); fpConcreteInstance = 0; }
00032
00033 void
00034 VisG4VisManager::notify (lat::Callback onChange)
00035 { m_callbacks.push_back (onChange); }
00036
00037 void
00038 VisG4VisManager::GeometryHasChanged (void)
00039 {
00040
00041
00042 CallbackList::iterator j;
00043 for (j = m_callbacks.begin (); j != m_callbacks.end (); ++j)
00044 (*j) ();
00045 }
00046
00050
00051 void VisG4VisManager::Draw (const G4Circle &, const G4Transform3D &)
00052 { ASSERT (false); }
00053
00054 void VisG4VisManager::Draw (const G4NURBS &, const G4Transform3D &)
00055 { ASSERT (false); }
00056
00057 void VisG4VisManager::Draw (const G4Polyhedron &, const G4Transform3D &)
00058 { ASSERT (false); }
00059
00060 void VisG4VisManager::Draw (const G4Polyline &, const G4Transform3D &)
00061 { ASSERT (false); }
00062
00063 void VisG4VisManager::Draw (const G4Polymarker &, const G4Transform3D &)
00064 { ASSERT (false); }
00065
00066 void VisG4VisManager::Draw (const G4Scale &, const G4Transform3D &)
00067 { ASSERT (false); }
00068
00069 void VisG4VisManager::Draw (const G4Square &, const G4Transform3D &)
00070 { ASSERT (false); }
00071
00072 void VisG4VisManager::Draw (const G4Text &, const G4Transform3D &)
00073 { ASSERT (false); }
00074
00075 void VisG4VisManager::Draw2D (const G4Text &)
00076 { ASSERT (false); }
00077
00078 void VisG4VisManager::Draw (const G4VHit &)
00079 { ASSERT (false); }
00080
00081 void VisG4VisManager::Draw (const G4VTrajectory &, int)
00082 { ASSERT (false); }
00083
00084 void VisG4VisManager::Draw (const G4LogicalVolume &,
00085 const G4VisAttributes &,
00086 const G4Transform3D &)
00087 { ASSERT (false); }
00088
00089 void VisG4VisManager::Draw (const G4VPhysicalVolume &,
00090 const G4VisAttributes &,
00091 const G4Transform3D &)
00092 { ASSERT (false); }
00093
00094 void VisG4VisManager::Draw (const G4VSolid &,
00095 const G4VisAttributes&,
00096 const G4Transform3D &)
00097 { ASSERT (false); }
00098
00099 void VisG4VisManager::DispatchToModel (const G4VTrajectory &,
00100 G4int)
00101 { ASSERT (false); }
00102
00103 G4bool
00104 VisG4VisManager::FilterTrajectory (const G4VTrajectory &)
00105 {
00106 ASSERT (false);
00107 return 0;
00108 }
00109
00110 G4bool
00111 VisG4VisManager::FilterHit (const G4VHit &)
00112 {
00113 ASSERT (false);
00114 return 0;
00115 }