58 soughtPVName = item.
first;
63 std::vector<G4AttValue>::const_iterator iAtt;
64 for (iAtt = attValues->begin(); iAtt != attValues->end(); ++iAtt) {
65 if (iAtt->GetName() ==
"PostVPath" &&
66 iAtt->GetValue().contains(soughtPVName))
break;
68 if (iAtt != attValues->end()) {
82 <<
"G4TrajectoryDrawByEncounteredVolume drawer named " <<
Name()
83 <<
", drawing trajectory touching physical volume " << soughtPVName
84 <<
", with configuration:" <<
G4endl;
95 ed <<
"Requires G4RichTrajectory - \"/vis/scene/add/trajectories rich\"";
97 (
"G4TrajectoryDrawByEncounteredVolume::Draw(const G4VTrajectory& traj,...",
112 ed <<
"G4Colour with key "<<colour<<
" does not exist ";
114 (
"G4TrajectoryDrawByEncounteredParticleID::SetDefault(const G4String& colour)",
131 fMap.
Set(pvname, colour);
137 fMap[pvname] = colour;
144 <<
"G4TrajectoryDrawByEncounteredVolume model "<<
Name()
145 <<
", colour scheme: "
146 <<
", Default " << fDefault
151 ostr <<
"Default configuration:" << std::endl;
const std::map< T, G4Colour > & GetBasicMap() const
std::ostringstream G4ExceptionDescription
void SetLineColour(const G4Colour &colour)
virtual void Print(std::ostream &ostr) const
void SetDefault(const G4String &)
void Set(const G4String &pvname, const G4String &colour)
static G4bool GetColour(const G4String &key, G4Colour &result)
void Set(const T &, const G4Colour &)
int GetPointEntries() const
virtual std::vector< G4AttValue > * CreateAttValues() const
const G4VisTrajContext & GetContext() const
virtual ~G4TrajectoryDrawByEncounteredVolume()
G4GLOB_DLL std::ostream G4cout
bool GetColour(const T &, G4Colour &) const
void DrawLineAndPoints(const G4VTrajectory &traj, const G4VisTrajContext &)
void Print(std::ostream &ostr) const
void SetVisible(const G4bool &visible)
virtual void Draw(const G4VTrajectory &trajectory, const G4bool &visible=true) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4TrajectoryDrawByEncounteredVolume(const G4String &name="Unspecified", G4VisTrajContext *context=0)
G4bool GetVerbose() const
void Print(std::ostream &ostr) const
G4VTrajectoryPoint * GetPoint(G4int i) const