Geant4  10.02.p03
G4VTrajectoryModel Class Referenceabstract

#include <G4VTrajectoryModel.hh>

Inheritance diagram for G4VTrajectoryModel:
Collaboration 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
 

Private Member Functions

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

Private Attributes

G4String fName
 
G4bool fVerbose
 
G4VisTrajContextfpContext
 

Detailed Description

Definition at line 44 of file G4VTrajectoryModel.hh.

Constructor & Destructor Documentation

◆ G4VTrajectoryModel() [1/2]

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

Definition at line 37 of file G4VTrajectoryModel.cc.

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

◆ ~G4VTrajectoryModel()

G4VTrajectoryModel::~G4VTrajectoryModel ( )
virtual

Definition at line 48 of file G4VTrajectoryModel.cc.

49 {
50  delete fpContext;
51 }
G4VisTrajContext * 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

Implemented in G4TrajectoryDrawByCharge, G4TrajectoryDrawByAttribute, G4TrajectoryDrawByParticleID, G4TrajectoryDrawByOriginVolume, and G4TrajectoryGenericDrawer.

Here is the caller graph for this function:

◆ GetContext()

const G4VisTrajContext & G4VTrajectoryModel::GetContext ( ) const

Definition at line 54 of file G4VTrajectoryModel.cc.

55 {
56  // Expect context to exist
57  assert (0 != fpContext);
58  return *fpContext;
59 }
G4VisTrajContext * fpContext
Here is the caller graph for this function:

◆ GetVerbose()

G4bool G4VTrajectoryModel::GetVerbose ( ) const

Definition at line 74 of file G4VTrajectoryModel.cc.

75 {
76  return fVerbose;
77 }
Here is the caller graph for this function:

◆ Name()

G4String G4VTrajectoryModel::Name ( ) const

Definition at line 62 of file G4VTrajectoryModel.cc.

63 {
64  return fName;
65 }
Here is the caller graph for this function:

◆ 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 68 of file G4VTrajectoryModel.cc.

69 {
70  fVerbose = verbose;
71 }

Member Data Documentation

◆ fName

G4String G4VTrajectoryModel::fName
private

Definition at line 76 of file G4VTrajectoryModel.hh.

◆ fpContext

G4VisTrajContext* G4VTrajectoryModel::fpContext
private

Definition at line 78 of file G4VTrajectoryModel.hh.

◆ fVerbose

G4bool G4VTrajectoryModel::fVerbose
private

Definition at line 77 of file G4VTrajectoryModel.hh.


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