Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4TrajectoryGenericDrawer Class Reference

#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 G4bool &visible=true) const
 
virtual void Print (std::ostream &ostr) const
 
- Public Member Functions inherited from G4VTrajectoryModel
 G4VTrajectoryModel (const G4String &name, G4VisTrajContext *fpContext=0)
 
virtual ~G4VTrajectoryModel ()
 
G4String Name () const
 
const G4VisTrajContextGetContext () const
 
void SetVerbose (const G4bool &)
 
G4bool GetVerbose () const
 

Detailed Description

Definition at line 40 of file G4TrajectoryGenericDrawer.hh.

Constructor & Destructor Documentation

◆ G4TrajectoryGenericDrawer()

G4TrajectoryGenericDrawer::G4TrajectoryGenericDrawer ( const G4String & name = "Unspecified",
G4VisTrajContext * context = 0 )

Definition at line 35 of file G4TrajectoryGenericDrawer.cc.

36 :G4VTrajectoryModel(name, context)
37{}
G4VTrajectoryModel(const G4String &name, G4VisTrajContext *fpContext=0)

◆ ~G4TrajectoryGenericDrawer()

G4TrajectoryGenericDrawer::~G4TrajectoryGenericDrawer ( )
virtual

Definition at line 39 of file G4TrajectoryGenericDrawer.cc.

39{}

Member Function Documentation

◆ Draw()

void G4TrajectoryGenericDrawer::Draw ( const G4VTrajectory & trajectory,
const G4bool & visible = true ) const
virtual

Implements G4VTrajectoryModel.

Definition at line 42 of file G4TrajectoryGenericDrawer.cc.

43{
44 G4VisTrajContext myContext(GetContext());
45 myContext.SetVisible(visible);
46
47 if (GetVerbose()) {
48 G4cout<<"G4TrajectoryGenericDrawer named "<<Name();
49 G4cout<<", drawing trajectory with configuration: "<<G4endl;
50 myContext.Print(G4cout);
51 }
52
54}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
G4String Name() const
const G4VisTrajContext & GetContext() const
G4bool GetVerbose() const
void DrawLineAndPoints(const G4VTrajectory &traj, const G4VisTrajContext &)

◆ Print()

void G4TrajectoryGenericDrawer::Print ( std::ostream & ostr) const
virtual

Implements G4VTrajectoryModel.

Definition at line 57 of file G4TrajectoryGenericDrawer.cc.

58{
59 ostr<<"G4TrajectoryGenericDrawer model "<< Name()<< ", default configuration :"<<G4endl;
61}
void Print(std::ostream &ostr) const

The documentation for this class was generated from the following files: