47 assert (0 != aTrajectoryPoint);
55 (aTrajectoryPoint->
GetPosition(),
nullptr,
false,
true);
59 assert (0 != logicalVolume);
73 G4cout<<
"G4TrajectoryDrawByOriginVolume drawer named "<<
Name();
74 G4cout<<
", drawing trajectory originating in logical volume, "<<logicalName;
75 G4cout<<
", physical volume "<<physicalName<<
", with configuration:"<<
G4endl;
90 ed <<
"G4Colour with key "<<colour<<
" does not exist ";
92 (
"G4TrajectoryDrawByOriginParticleID::SetDefault(const G4String& colour)",
"modeling0123",
JustWarning, ed);
108 fMap.
Set(particle, colour);
114 fMap[particle] = colour;
121 <<
"G4TrajectoryDrawByOriginVolume model "<<
Name()
122 <<
", colour scheme: "
123 <<
", Default " << fDefault
128 ostr <<
"Default configuration:" << std::endl;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4GLOB_DLL std::ostream G4cout
static G4bool GetColour(const G4String &key, G4Colour &result)
const G4String & GetName() const
bool GetColour(const T &, G4Colour &) const
void Print(std::ostream &ostr) const
void Set(const T &, const G4Colour &)
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=nullptr, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
virtual ~G4TrajectoryDrawByOriginVolume()
virtual void Draw(const G4VTrajectory &trajectory, const G4bool &visible=true) const
G4TrajectoryDrawByOriginVolume(const G4String &name="Unspecified", G4VisTrajContext *context=0)
void Set(const G4String &particle, const G4String &colour)
void SetDefault(const G4String &)
virtual void Print(std::ostream &ostr) const
static G4TransportationManager * GetTransportationManager()
G4Navigator * GetNavigatorForTracking() const
G4LogicalVolume * GetLogicalVolume() const
const G4String & GetName() const
const G4VisTrajContext & GetContext() const
G4bool GetVerbose() const
virtual const G4ThreeVector GetPosition() const =0
virtual G4VTrajectoryPoint * GetPoint(G4int i) const =0
void SetLineColour(const G4Colour &colour)
void Print(std::ostream &ostr) const
void DrawLineAndPoints(const G4VTrajectory &traj, const G4VisTrajContext &)