#include <G4TrajectoryGenericDrawer.hh>
Inheritance diagram for G4TrajectoryGenericDrawer:
Public Member Functions | |
G4TrajectoryGenericDrawer (const G4String &name="Unspecified", G4VisTrajContext *context=0) | |
virtual | ~G4TrajectoryGenericDrawer () |
virtual void | Draw (const G4VTrajectory &trajectory, const G4int &i_mode=0, const G4bool &visible=true) const |
virtual void | Draw (const G4VTrajectory &trajectory, const G4bool &visible=true) const |
virtual void | Print (std::ostream &ostr) const |
Definition at line 41 of file G4TrajectoryGenericDrawer.hh.
G4TrajectoryGenericDrawer::G4TrajectoryGenericDrawer | ( | const G4String & | name = "Unspecified" , |
|
G4VisTrajContext * | context = 0 | |||
) |
Definition at line 36 of file G4TrajectoryGenericDrawer.cc.
00037 :G4VTrajectoryModel(name, context) 00038 {}
G4TrajectoryGenericDrawer::~G4TrajectoryGenericDrawer | ( | ) | [virtual] |
void G4TrajectoryGenericDrawer::Draw | ( | const G4VTrajectory & | trajectory, | |
const G4bool & | visible = true | |||
) | const [virtual] |
Implements G4VTrajectoryModel.
Definition at line 58 of file G4TrajectoryGenericDrawer.cc.
References G4TrajectoryDrawerUtils::DrawLineAndPoints(), G4cout, G4endl, G4VTrajectoryModel::GetContext(), G4VTrajectoryModel::GetVerbose(), G4VTrajectoryModel::Name(), G4VisTrajContext::Print(), and G4VisTrajContext::SetVisible().
00059 { 00060 G4VisTrajContext myContext(GetContext()); 00061 myContext.SetVisible(visible); 00062 00063 if (GetVerbose()) { 00064 G4cout<<"G4TrajectoryGenericDrawer named "<<Name(); 00065 G4cout<<", drawing trajectory with configuration: "<<G4endl; 00066 myContext.Print(G4cout); 00067 } 00068 00069 G4TrajectoryDrawerUtils::DrawLineAndPoints(traj, myContext); 00070 }
void G4TrajectoryGenericDrawer::Draw | ( | const G4VTrajectory & | trajectory, | |
const G4int & | i_mode = 0 , |
|||
const G4bool & | visible = true | |||
) | const [virtual] |
Implements G4VTrajectoryModel.
Definition at line 43 of file G4TrajectoryGenericDrawer.cc.
References G4TrajectoryDrawerUtils::DrawLineAndPoints(), G4cout, G4endl, G4VTrajectoryModel::GetContext(), G4VTrajectoryModel::GetVerbose(), G4VTrajectoryModel::Name(), G4VisTrajContext::Print(), and G4VisTrajContext::SetVisible().
00044 { 00045 G4VisTrajContext myContext(GetContext()); 00046 myContext.SetVisible(visible); 00047 00048 if (GetVerbose()) { 00049 G4cout<<"G4TrajectoryGenericDrawer named "<<Name(); 00050 G4cout<<", drawing trajectory with configuration: "<<G4endl; 00051 myContext.Print(G4cout); 00052 } 00053 00054 G4TrajectoryDrawerUtils::DrawLineAndPoints(traj, myContext, i_mode); 00055 }
void G4TrajectoryGenericDrawer::Print | ( | std::ostream & | ostr | ) | const [virtual] |
Implements G4VTrajectoryModel.
Definition at line 73 of file G4TrajectoryGenericDrawer.cc.
References G4cout, G4endl, G4VTrajectoryModel::GetContext(), G4VTrajectoryModel::Name(), and G4VisTrajContext::Print().
00074 { 00075 ostr<<"G4TrajectoryGenericDrawer model "<< Name()<< ", default configuration :"<<G4endl; 00076 GetContext().Print(G4cout); 00077 }