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;
92 catch (
const std::bad_cast&)
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)",
137 fMap[pvname] = colour;
144 <<
"G4TrajectoryDrawByEncounteredVolume model "<<
Name()
145 <<
", colour scheme: "
151 ostr <<
"Default configuration:" << std::endl;
G4TrajectoryDrawByEncounteredVolume(const G4String &name="Unspecified", G4VisTrajContext *context=0)
void DrawLineAndPoints(const G4VTrajectory &traj, const G4VisTrajContext &)
const G4VisTrajContext & GetContext() const
G4ModelColourMap< G4String > fMap
void Print(std::ostream &ostr) const
std::ostringstream G4ExceptionDescription
int GetPointEntries() const
void Set(const G4String &pvname, const G4String &colour)
const std::map< T, G4Colour > & GetBasicMap() const
void SetVisible(const G4bool &visible)
virtual std::vector< G4AttValue > * CreateAttValues() const
virtual ~G4TrajectoryDrawByEncounteredVolume()
virtual void Draw(const G4VTrajectory &trajectory, const G4bool &visible=true) const
virtual void Print(std::ostream &ostr) const
G4VTrajectoryPoint * GetPoint(G4int i) const
bool GetColour(const T &, G4Colour &) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void SetDefault(const G4String &)
void Set(const T &, const G4Colour &)
G4GLOB_DLL std::ostream G4cout
G4bool GetVerbose() const
void Print(std::ostream &ostr) const
void SetLineColour(const G4Colour &colour)
static G4bool GetColour(const G4String &key, G4Colour &result)