Geant4-11
Public Member Functions | Private Member Functions | Private Attributes
G4VTrajectoryModel Class Referenceabstract

#include <G4VTrajectoryModel.hh>

Inheritance diagram for G4VTrajectoryModel:
G4TrajectoryDrawByAttribute G4TrajectoryDrawByCharge G4TrajectoryDrawByEncounteredVolume G4TrajectoryDrawByOriginVolume G4TrajectoryDrawByParticleID G4TrajectoryGenericDrawer

Public Member Functions

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

Private Member Functions

 G4VTrajectoryModel (const G4VTrajectoryModel &)
 
G4VTrajectoryModeloperator= (const G4VTrajectoryModel &)
 

Private Attributes

G4String fName
 
G4VisTrajContextfpContext
 
G4bool fVerbose
 

Detailed Description

Definition at line 43 of file G4VTrajectoryModel.hh.

Constructor & Destructor Documentation

◆ G4VTrajectoryModel() [1/2]

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

Definition at line 36 of file G4VTrajectoryModel.cc.

38 :fName(name)
39 ,fVerbose(false)
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}
G4VisTrajContext * fpContext
const char * name(G4int ptype)
context
Definition: g4zmq.py:11

References fpContext.

◆ ~G4VTrajectoryModel()

G4VTrajectoryModel::~G4VTrajectoryModel ( )
virtual

Definition at line 47 of file G4VTrajectoryModel.cc.

48{
49 delete fpContext;
50}

References fpContext.

◆ G4VTrajectoryModel() [2/2]

G4VTrajectoryModel::G4VTrajectoryModel ( const G4VTrajectoryModel )
private

Member Function Documentation

◆ Draw()

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

◆ GetContext()

const G4VisTrajContext & G4VTrajectoryModel::GetContext ( ) const

◆ GetVerbose()

G4bool G4VTrajectoryModel::GetVerbose ( ) const

◆ Name()

G4String G4VTrajectoryModel::Name ( ) const

◆ operator=()

G4VTrajectoryModel & G4VTrajectoryModel::operator= ( const G4VTrajectoryModel )
private

◆ 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}

References fVerbose.

Field Documentation

◆ fName

G4String G4VTrajectoryModel::fName
private

Definition at line 75 of file G4VTrajectoryModel.hh.

Referenced by Name().

◆ fpContext

G4VisTrajContext* G4VTrajectoryModel::fpContext
private

Definition at line 77 of file G4VTrajectoryModel.hh.

Referenced by G4VTrajectoryModel(), GetContext(), and ~G4VTrajectoryModel().

◆ fVerbose

G4bool G4VTrajectoryModel::fVerbose
private

Definition at line 76 of file G4VTrajectoryModel.hh.

Referenced by GetVerbose(), and SetVerbose().


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