G4VTrajectoryModel Class Reference

#include <G4VTrajectoryModel.hh>

Inheritance diagram for G4VTrajectoryModel:

G4TrajectoryDrawByAttribute G4TrajectoryDrawByCharge G4TrajectoryDrawByOriginVolume G4TrajectoryDrawByParticleID G4TrajectoryGenericDrawer

Public Member Functions

 G4VTrajectoryModel (const G4String &name, G4VisTrajContext *fpContext=0)
virtual ~G4VTrajectoryModel ()
virtual void Draw (const G4VTrajectory &trajectory, const G4int &i_mode=0, const G4bool &visible=true) const =0
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 44 of file G4VTrajectoryModel.hh.


Constructor & Destructor Documentation

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

Definition at line 37 of file G4VTrajectoryModel.cc.

00039   :fName(name)
00040   ,fVerbose(false)
00041   ,fpContext(context) 
00042 {
00043   // Create context object if none is provided. Model will
00044   // then use default G4VisTrajContext configuration
00045   if (0 == fpContext) fpContext = new G4VisTrajContext();
00046 }

G4VTrajectoryModel::~G4VTrajectoryModel (  )  [virtual]

Definition at line 48 of file G4VTrajectoryModel.cc.

00049 {
00050   delete fpContext;
00051 }


Member Function Documentation

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

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

virtual void G4VTrajectoryModel::Draw ( const G4VTrajectory trajectory,
const G4int i_mode = 0,
const G4bool visible = true 
) const [pure virtual]

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

Referenced by G4VisManager::DispatchToModel().

const G4VisTrajContext & G4VTrajectoryModel::GetContext (  )  const

Definition at line 54 of file G4VTrajectoryModel.cc.

Referenced by G4HepRepFileSceneHandler::BeginModeling(), G4TrajectoryGenericDrawer::Draw(), G4TrajectoryDrawByParticleID::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByCharge::Draw(), G4TrajectoryDrawByAttribute::Draw(), G4TrajectoryGenericDrawer::Print(), G4TrajectoryDrawByParticleID::Print(), G4TrajectoryDrawByOriginVolume::Print(), G4TrajectoryDrawByCharge::Print(), and G4TrajectoryDrawByAttribute::Print().

00055 {
00056   // Expect context to exist
00057   assert (0 != fpContext);
00058   return *fpContext;
00059 }

G4bool G4VTrajectoryModel::GetVerbose (  )  const

Definition at line 74 of file G4VTrajectoryModel.cc.

Referenced by G4TrajectoryGenericDrawer::Draw(), G4TrajectoryDrawByParticleID::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByCharge::Draw(), and G4TrajectoryDrawByAttribute::Draw().

00075 {
00076   return fVerbose;
00077 }

G4String G4VTrajectoryModel::Name (  )  const

Definition at line 62 of file G4VTrajectoryModel.cc.

Referenced by G4TrajectoryGenericDrawer::Draw(), G4TrajectoryDrawByParticleID::Draw(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByCharge::Draw(), G4TrajectoryDrawByAttribute::Draw(), G4TrajectoryGenericDrawer::Print(), G4TrajectoryDrawByParticleID::Print(), G4TrajectoryDrawByOriginVolume::Print(), G4TrajectoryDrawByCharge::Print(), and G4TrajectoryDrawByAttribute::Print().

00063 {
00064   return fName;
00065 }

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

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

void G4VTrajectoryModel::SetVerbose ( const G4bool  ) 

Definition at line 68 of file G4VTrajectoryModel.cc.

00069 {
00070   fVerbose = verbose;
00071 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:56 2013 for Geant4 by  doxygen 1.4.7