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

#include <G4VTrajectoryModel.hh>

+ Inheritance diagram for G4VTrajectoryModel:

Public Member Functions

 G4VTrajectoryModel (const G4String &name, G4VisTrajContext *fpContext=0)
 
virtual ~G4VTrajectoryModel ()
 
virtual void Draw (const G4VTrajectory &trajectory, const G4bool &visible=true) const =0
 
virtual void Print (std::ostream &ostr) const =0
 
G4String Name () const
 
const G4VisTrajContextGetContext () const
 
void SetVerbose (const G4bool &)
 
G4bool GetVerbose () const
 

Detailed Description

Definition at line 43 of file G4VTrajectoryModel.hh.

Constructor & Destructor Documentation

◆ G4VTrajectoryModel()

G4VTrajectoryModel::G4VTrajectoryModel ( const G4String & name,
G4VisTrajContext * fpContext = 0 )

Definition at line 36 of file G4VTrajectoryModel.cc.

38 :fName(name)
39 ,fVerbose(false)
40 ,fpContext(context)
41{
42 // Create context object if none is provided. Model will
43 // then use default G4VisTrajContext configuration
44 if (0 == fpContext) fpContext = new G4VisTrajContext();
45}

◆ ~G4VTrajectoryModel()

G4VTrajectoryModel::~G4VTrajectoryModel ( )
virtual

Definition at line 47 of file G4VTrajectoryModel.cc.

48{
49 delete fpContext;
50}

Member Function Documentation

◆ Draw()

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

◆ GetContext()

◆ GetVerbose()

◆ Name()

◆ Print()

virtual void G4VTrajectoryModel::Print ( std::ostream & ostr) const
pure virtual

◆ SetVerbose()

void G4VTrajectoryModel::SetVerbose ( const G4bool & verbose)

Definition at line 67 of file G4VTrajectoryModel.cc.

68{
69 fVerbose = verbose;
70}

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