Geant4-11
|
#include <G4TrajectoryDrawByCharge.hh>
Public Types | |
enum | Charge { Negative =-1 , Neutral =0 , Positive =1 } |
Public Member Functions | |
virtual void | Draw (const G4VTrajectory &trajectory, const G4bool &visible=true) const |
G4TrajectoryDrawByCharge (const G4String &name, const G4Colour &positive, const G4Colour &negative, const G4Colour &neutral) | |
G4TrajectoryDrawByCharge (const G4String &name="Unspecified", G4VisTrajContext *context=0) | |
const G4VisTrajContext & | GetContext () const |
G4bool | GetVerbose () const |
G4String | Name () 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) |
void | SetVerbose (const G4bool &) |
virtual | ~G4TrajectoryDrawByCharge () |
Private Member Functions | |
G4bool | ConvertToCharge (const G4String &, Charge &) |
Private Attributes | |
G4ModelColourMap< Charge > | fMap |
G4String | fName |
G4VisTrajContext * | fpContext |
G4bool | fVerbose |
Definition at line 42 of file G4TrajectoryDrawByCharge.hh.
G4TrajectoryDrawByCharge::G4TrajectoryDrawByCharge | ( | const G4String & | name = "Unspecified" , |
G4VisTrajContext * | context = 0 |
||
) |
Definition at line 34 of file G4TrajectoryDrawByCharge.cc.
References G4Colour::Blue(), fMap, G4Colour::Green(), Negative, Neutral, Positive, and G4Colour::Red().
|
virtual |
Definition at line 54 of file G4TrajectoryDrawByCharge.cc.
|
private |
Definition at line 134 of file G4TrajectoryDrawByCharge.cc.
References Negative, Neutral, and Positive.
Referenced by Set().
|
virtual |
Implements G4VTrajectoryModel.
Definition at line 57 of file G4TrajectoryDrawByCharge.cc.
References G4TrajectoryDrawerUtils::DrawLineAndPoints(), fMap, G4cout, G4endl, G4VTrajectory::GetCharge(), G4ModelColourMap< T >::GetColour(), G4VTrajectoryModel::GetContext(), G4VTrajectoryModel::GetVerbose(), G4VTrajectoryModel::Name(), Negative, Neutral, Positive, G4VisTrajContext::Print(), and G4VisTrajContext::SetLineColour().
|
inherited |
Definition at line 53 of file G4VTrajectoryModel.cc.
References G4VTrajectoryModel::fpContext.
Referenced by G4HepRepFileSceneHandler::BeginModeling(), G4TrajectoryDrawByAttribute::Draw(), Draw(), G4TrajectoryDrawByEncounteredVolume::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByParticleID::Draw(), G4TrajectoryGenericDrawer::Draw(), G4TrajectoryDrawByAttribute::Print(), Print(), G4TrajectoryDrawByEncounteredVolume::Print(), G4TrajectoryDrawByOriginVolume::Print(), G4TrajectoryDrawByParticleID::Print(), and G4TrajectoryGenericDrawer::Print().
|
inherited |
Definition at line 73 of file G4VTrajectoryModel.cc.
References G4VTrajectoryModel::fVerbose.
Referenced by G4TrajectoryDrawByAttribute::Draw(), Draw(), G4TrajectoryDrawByEncounteredVolume::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByParticleID::Draw(), and G4TrajectoryGenericDrawer::Draw().
|
inherited |
Definition at line 61 of file G4VTrajectoryModel.cc.
References G4VTrajectoryModel::fName.
Referenced by G4TrajectoryDrawByAttribute::Draw(), Draw(), G4TrajectoryDrawByEncounteredVolume::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByParticleID::Draw(), G4TrajectoryGenericDrawer::Draw(), G4TrajectoryDrawByAttribute::Print(), Print(), G4TrajectoryDrawByEncounteredVolume::Print(), G4TrajectoryDrawByOriginVolume::Print(), G4TrajectoryDrawByParticleID::Print(), and G4TrajectoryGenericDrawer::Print().
|
virtual |
Implements G4VTrajectoryModel.
Definition at line 82 of file G4TrajectoryDrawByCharge.cc.
References fMap, G4cout, G4endl, G4VTrajectoryModel::GetContext(), G4VTrajectoryModel::Name(), G4ModelColourMap< T >::Print(), and G4VisTrajContext::Print().
Definition at line 91 of file G4TrajectoryDrawByCharge.cc.
References fMap, and G4ModelColourMap< T >::Set().
Definition at line 119 of file G4TrajectoryDrawByCharge.cc.
References ConvertToCharge(), G4Exception(), JustWarning, and Set().
Definition at line 103 of file G4TrajectoryDrawByCharge.cc.
References ConvertToCharge(), G4Exception(), JustWarning, and Set().
|
inherited |
Definition at line 67 of file G4VTrajectoryModel.cc.
References G4VTrajectoryModel::fVerbose.
|
private |
Definition at line 76 of file G4TrajectoryDrawByCharge.hh.
Referenced by Draw(), G4TrajectoryDrawByCharge(), Print(), and Set().
|
privateinherited |
Definition at line 75 of file G4VTrajectoryModel.hh.
Referenced by G4VTrajectoryModel::Name().
|
privateinherited |
Definition at line 77 of file G4VTrajectoryModel.hh.
Referenced by G4VTrajectoryModel::G4VTrajectoryModel(), G4VTrajectoryModel::GetContext(), and G4VTrajectoryModel::~G4VTrajectoryModel().
|
privateinherited |
Definition at line 76 of file G4VTrajectoryModel.hh.
Referenced by G4VTrajectoryModel::GetVerbose(), and G4VTrajectoryModel::SetVerbose().