74 G4cout<<
"G4TrajectoryDrawByCharge drawer named "<<
Name();
75 G4cout<<
", drawing trajectory with charge, "<<charge<<
G4endl;
86 ostr<<
"G4TrajectoryDrawByCharge model "<<
Name() <<
" colour scheme: "<<std::endl;
88 ostr<<
"Default configuration:"<<
G4endl;
95 fMap.
Set(charge, colour);
101 fMap[charge] = colour;
109 if (!ConvertToCharge(charge, myCharge)) {
111 ed <<
"Invalid charge "<<charge;
113 (
"G4TrajectoryDrawByCharge::Set(const G4int& charge, const G4String& colour)",
"modeling0121",
JustWarning, ed);
117 return Set(myCharge, colour);
125 if (!ConvertToCharge(charge, myCharge)) {
127 ed <<
"Invalid charge "<<charge;
129 (
"G4TrajectoryDrawByCharge::Set(const G4int& charge, const G4Colour& colour)",
"modeling0122",
JustWarning, ed);
132 return Set(myCharge, colour);
136 G4TrajectoryDrawByCharge::ConvertToCharge(
const G4String&
string, Charge& myCharge)
141 std::istringstream is(
string.c_str());
std::ostringstream G4ExceptionDescription
void SetLineColour(const G4Colour &colour)
G4TrajectoryDrawByCharge(const G4String &name="Unspecified", G4VisTrajContext *context=0)
G4double G4NeutronHPJENDLHEData::G4double result
void Set(const T &, const G4Colour &)
virtual void Draw(const G4VTrajectory &trajectory, const G4bool &visible=true) const
const G4VisTrajContext & GetContext() const
G4GLOB_DLL std::ostream G4cout
bool GetColour(const T &, G4Colour &) const
void DrawLineAndPoints(const G4VTrajectory &traj, const G4VisTrajContext &)
void Print(std::ostream &ostr) const
virtual void Print(std::ostream &ostr) const
virtual ~G4TrajectoryDrawByCharge()
void SetVisible(const G4bool &visible)
virtual G4double GetCharge() const =0
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void Set(const Charge &charge, const G4Colour &colour)
G4bool GetVerbose() const
void Print(std::ostream &ostr) const