Geant4.10
|
#include <G4TrajectoryDrawByCharge.hh>
Public Types | |
enum | Charge { Negative =-1, Neutral =0, Positive =1 } |
Public Member Functions | |
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.
G4TrajectoryDrawByCharge::G4TrajectoryDrawByCharge | ( | const G4String & | name = "Unspecified" , |
G4VisTrajContext * | context = 0 |
||
) |
Definition at line 35 of file G4TrajectoryDrawByCharge.cc.
References G4Colour::Blue(), G4Colour::Green(), Negative, Neutral, Positive, and G4Colour::Red().
G4TrajectoryDrawByCharge::G4TrajectoryDrawByCharge | ( | const G4String & | name, |
const G4Colour & | positive, | ||
const G4Colour & | negative, | ||
const G4Colour & | neutral | ||
) |
Definition at line 44 of file G4TrajectoryDrawByCharge.cc.
References Negative, Neutral, and Positive.
|
virtual |
Definition at line 55 of file G4TrajectoryDrawByCharge.cc.
|
virtual |
Implements G4VTrajectoryModel.
Definition at line 58 of file G4TrajectoryDrawByCharge.cc.
References G4TrajectoryDrawerUtils::DrawLineAndPoints(), G4cout, G4endl, G4VTrajectory::GetCharge(), G4ModelColourMap< T >::GetColour(), G4VTrajectoryModel::GetContext(), G4VTrajectoryModel::GetVerbose(), G4VTrajectoryModel::Name(), Negative, Neutral, Positive, G4VisTrajContext::Print(), G4VisTrajContext::SetLineColour(), and G4VisTrajContext::SetVisible().
|
virtual |
Implements G4VTrajectoryModel.
Definition at line 84 of file G4TrajectoryDrawByCharge.cc.
References G4cout, G4endl, G4VTrajectoryModel::GetContext(), G4VTrajectoryModel::Name(), G4VisTrajContext::Print(), and G4ModelColourMap< T >::Print().
Definition at line 99 of file G4TrajectoryDrawByCharge.cc.
Referenced by Set().
Definition at line 121 of file G4TrajectoryDrawByCharge.cc.
References G4Exception(), JustWarning, and Set().
Definition at line 105 of file G4TrajectoryDrawByCharge.cc.
References G4Exception(), JustWarning, and Set().