57 soughtPVName = item.first;
62 std::vector<G4AttValue>::const_iterator iAtt;
63 for (iAtt = attValues->begin(); iAtt != attValues->end(); ++iAtt) {
64 if (iAtt->GetName() ==
"PostVPath" &&
67 if (iAtt != attValues->end()) {
80 <<
"G4TrajectoryDrawByEncounteredVolume drawer named " <<
Name()
81 <<
", drawing trajectory touching physical volume " << soughtPVName
82 <<
", with configuration:" <<
G4endl;
90 catch (
const std::bad_cast&)
93 ed <<
"Requires G4RichTrajectory - \"/vis/scene/add/trajectories rich\"";
95 (
"G4TrajectoryDrawByEncounteredVolume::Draw(const G4VTrajectory& traj,...",
110 ed <<
"G4Colour with key "<<colour<<
" does not exist ";
112 (
"G4TrajectoryDrawByEncounteredParticleID::SetDefault(const G4String& colour)",
129 fMap.
Set(pvname, colour);
135 fMap[pvname] = colour;
142 <<
"G4TrajectoryDrawByEncounteredVolume model "<<
Name()
143 <<
", colour scheme: "
144 <<
", Default " << fDefault
149 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)
bool GetColour(const T &, G4Colour &) const
void Print(std::ostream &ostr) const
const std::map< T, G4Colour > & GetBasicMap() const
void Set(const T &, const G4Colour &)
G4VTrajectoryPoint * GetPoint(G4int i) const
G4int GetPointEntries() const
virtual void Print(std::ostream &ostr) const
G4TrajectoryDrawByEncounteredVolume(const G4String &name="Unspecified", G4VisTrajContext *context=0)
void SetDefault(const G4String &)
virtual void Draw(const G4VTrajectory &trajectory, const G4bool &visible=true) const
void Set(const G4String &pvname, const G4String &colour)
virtual ~G4TrajectoryDrawByEncounteredVolume()
const G4VisTrajContext & GetContext() const
G4bool GetVerbose() const
virtual std::vector< G4AttValue > * CreateAttValues() const
void SetLineColour(const G4Colour &colour)
void Print(std::ostream &ostr) const
G4bool contains(const G4String &str, std::string_view ss)
Check if a string contains a given substring.
void DrawLineAndPoints(const G4VTrajectory &traj, const G4VisTrajContext &)