Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 44 of file G4VTrajectoryModel.hh.

Constructor & Destructor Documentation

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 }
const XML_Char * context
Definition: expat.h:434
G4VTrajectoryModel::~G4VTrajectoryModel ( )
virtual

Definition at line 48 of file G4VTrajectoryModel.cc.

49 {
50  delete fpContext;
51 }

Member Function Documentation

virtual void G4VTrajectoryModel::Draw ( const G4VTrajectory trajectory,
const G4bool visible = true 
) const
pure virtual
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 }

Here is the caller graph for this function:

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:

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:

void G4VTrajectoryModel::SetVerbose ( const G4bool verbose)

Definition at line 68 of file G4VTrajectoryModel.cc.

69 {
70  fVerbose = verbose;
71 }

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