#include <G4TrajectoryDrawByCharge.hh>
|
| G4TrajectoryDrawByCharge (const G4String &name="Unspecified", G4VisTrajContext *context=0) |
|
| G4TrajectoryDrawByCharge (const G4String &name, const G4Colour &positive, const G4Colour &negative, const G4Colour &neutral) |
|
virtual | ~G4TrajectoryDrawByCharge () |
|
virtual void | Draw (const G4VTrajectory &trajectory, const G4bool &visible=true) const |
|
virtual void | Print (std::ostream &ostr) const |
|
void | Set (const Charge &charge, const G4Colour &colour) |
|
void | Set (const Charge &charge, const G4String &colour) |
|
void | Set (const G4String &charge, const G4Colour &colour) |
|
void | Set (const G4String &charge, const G4String &colour) |
|
| G4VTrajectoryModel (const G4String &name, G4VisTrajContext *fpContext=0) |
|
virtual | ~G4VTrajectoryModel () |
|
G4String | Name () const |
|
const G4VisTrajContext & | GetContext () const |
|
void | SetVerbose (const G4bool &) |
|
G4bool | GetVerbose () const |
|
Definition at line 43 of file G4TrajectoryDrawByCharge.hh.
◆ Charge
◆ G4TrajectoryDrawByCharge() [1/2]
G4TrajectoryDrawByCharge::G4TrajectoryDrawByCharge |
( |
const G4String & |
name = "Unspecified" , |
|
|
G4VisTrajContext * |
context = 0 |
|
) |
| |
Definition at line 35 of file G4TrajectoryDrawByCharge.cc.
G4VTrajectoryModel(const G4String &name, G4VisTrajContext *fpContext=0)
G4ModelColourMap< Charge > fMap
◆ G4TrajectoryDrawByCharge() [2/2]
Definition at line 44 of file G4TrajectoryDrawByCharge.cc.
G4VTrajectoryModel(const G4String &name, G4VisTrajContext *fpContext=0)
G4ModelColourMap< Charge > fMap
◆ ~G4TrajectoryDrawByCharge()
G4TrajectoryDrawByCharge::~G4TrajectoryDrawByCharge |
( |
| ) |
|
|
virtual |
◆ ConvertToCharge()
◆ Draw()
void G4TrajectoryDrawByCharge::Draw |
( |
const G4VTrajectory & |
trajectory, |
|
|
const G4bool & |
visible = true |
|
) |
| const |
|
virtual |
Implements G4VTrajectoryModel.
Definition at line 58 of file G4TrajectoryDrawByCharge.cc.
62 const G4double charge = traj.GetCharge();
70 myContext.SetLineColour(colour);
71 myContext.SetVisible(visible);
74 G4cout<<
"G4TrajectoryDrawByCharge drawer named "<<
Name();
75 G4cout<<
", drawing trajectory with charge, "<<charge<<
G4endl;
G4ModelColourMap< Charge > fMap
const G4VisTrajContext & GetContext() const
G4GLOB_DLL std::ostream G4cout
void DrawLineAndPoints(const G4VTrajectory &traj, const G4VisTrajContext &)
bool GetColour(const T &, G4Colour &) const
G4bool GetVerbose() const
◆ Print()
void G4TrajectoryDrawByCharge::Print |
( |
std::ostream & |
ostr | ) |
const |
|
virtual |
Implements G4VTrajectoryModel.
Definition at line 84 of file G4TrajectoryDrawByCharge.cc.
86 ostr<<
"G4TrajectoryDrawByCharge model "<<
Name() <<
" colour scheme: "<<std::endl;
88 ostr<<
"Default configuration:"<<
G4endl;
void Print(std::ostream &ostr) const
void Print(std::ostream &ostr) const
G4ModelColourMap< Charge > fMap
const G4VisTrajContext & GetContext() const
G4GLOB_DLL std::ostream G4cout
◆ Set() [1/4]
void G4TrajectoryDrawByCharge::Set |
( |
const Charge & |
charge, |
|
|
const G4Colour & |
colour |
|
) |
| |
◆ Set() [2/4]
void G4TrajectoryDrawByCharge::Set |
( |
const Charge & |
charge, |
|
|
const G4String & |
colour |
|
) |
| |
◆ Set() [3/4]
void G4TrajectoryDrawByCharge::Set |
( |
const G4String & |
charge, |
|
|
const G4Colour & |
colour |
|
) |
| |
Definition at line 121 of file G4TrajectoryDrawByCharge.cc.
127 ed <<
"Invalid charge "<<charge;
129 (
"G4TrajectoryDrawByCharge::Set(const G4int& charge, const G4Colour& colour)",
"modeling0122",
JustWarning, ed);
132 return Set(myCharge, colour);
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4bool ConvertToCharge(const G4String &, Charge &)
void Set(const Charge &charge, const G4Colour &colour)
◆ Set() [4/4]
void G4TrajectoryDrawByCharge::Set |
( |
const G4String & |
charge, |
|
|
const G4String & |
colour |
|
) |
| |
Definition at line 105 of file G4TrajectoryDrawByCharge.cc.
111 ed <<
"Invalid charge "<<charge;
113 (
"G4TrajectoryDrawByCharge::Set(const G4int& charge, const G4String& colour)",
"modeling0121",
JustWarning, ed);
117 return Set(myCharge, colour);
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4bool ConvertToCharge(const G4String &, Charge &)
void Set(const Charge &charge, const G4Colour &colour)
◆ fMap
The documentation for this class was generated from the following files: