Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4TrajectoryGenericDrawer Class Reference

#include <G4TrajectoryGenericDrawer.hh>

Inheritance diagram for G4TrajectoryGenericDrawer:
Collaboration diagram for G4TrajectoryGenericDrawer:

Public Member Functions

 G4TrajectoryGenericDrawer (const G4String &name="Unspecified", G4VisTrajContext *context=0)
 
virtual ~G4TrajectoryGenericDrawer ()
 
virtual void Draw (const G4VTrajectory &trajectory, const G4bool &visible=true) const
 
virtual void Print (std::ostream &ostr) const
 
- Public Member Functions inherited from G4VTrajectoryModel
 G4VTrajectoryModel (const G4String &name, G4VisTrajContext *fpContext=0)
 
virtual ~G4VTrajectoryModel ()
 
G4String Name () const
 
const G4VisTrajContextGetContext () const
 
void SetVerbose (const G4bool &)
 
G4bool GetVerbose () const
 

Detailed Description

Definition at line 41 of file G4TrajectoryGenericDrawer.hh.

Constructor & Destructor Documentation

G4TrajectoryGenericDrawer::G4TrajectoryGenericDrawer ( const G4String name = "Unspecified",
G4VisTrajContext context = 0 
)

Definition at line 36 of file G4TrajectoryGenericDrawer.cc.

37  :G4VTrajectoryModel(name, context)
38 {}
G4VTrajectoryModel(const G4String &name, G4VisTrajContext *fpContext=0)
G4TrajectoryGenericDrawer::~G4TrajectoryGenericDrawer ( )
virtual

Definition at line 40 of file G4TrajectoryGenericDrawer.cc.

40 {}

Member Function Documentation

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

Implements G4VTrajectoryModel.

Definition at line 43 of file G4TrajectoryGenericDrawer.cc.

44 {
45  G4VisTrajContext myContext(GetContext());
46  myContext.SetVisible(visible);
47 
48  if (GetVerbose()) {
49  G4cout<<"G4TrajectoryGenericDrawer named "<<Name();
50  G4cout<<", drawing trajectory with configuration: "<<G4endl;
51  myContext.Print(G4cout);
52  }
53 
55 }
G4String Name() const
const G4VisTrajContext & GetContext() const
G4GLOB_DLL std::ostream G4cout
void DrawLineAndPoints(const G4VTrajectory &traj, const G4VisTrajContext &)
#define G4endl
Definition: G4ios.hh:61
G4bool GetVerbose() const

Here is the call graph for this function:

void G4TrajectoryGenericDrawer::Print ( std::ostream &  ostr) const
virtual

Implements G4VTrajectoryModel.

Definition at line 58 of file G4TrajectoryGenericDrawer.cc.

59 {
60  ostr<<"G4TrajectoryGenericDrawer model "<< Name()<< ", default configuration :"<<G4endl;
62 }
G4String Name() const
const G4VisTrajContext & GetContext() const
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void Print(std::ostream &ostr) const

Here is the call graph for this function:


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