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

#include <G4HepRepFile.hh>

Inheritance diagram for G4HepRepFile:
Collaboration diagram for G4HepRepFile:

Public Member Functions

 G4HepRepFile ()
 
virtual ~G4HepRepFile ()
 
G4VSceneHandlerCreateSceneHandler (const G4String &name="")
 
G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name="")
 
G4HepRepFileXMLWriterGetHepRepXMLWriter ()
 
- Public Member Functions inherited from G4VGraphicsSystem
 G4VGraphicsSystem (const G4String &name, Functionality f)
 
 G4VGraphicsSystem (const G4String &name, const G4String &nickname, Functionality f)
 
 G4VGraphicsSystem (const G4String &name, const G4String &nickname, const G4String &description, Functionality f)
 
virtual ~G4VGraphicsSystem ()
 
const G4StringGetName () const
 
const G4StringGetNickname () const
 
const std::vector< G4String > & GetNicknames () const
 
const G4StringGetDescription () const
 
Functionality GetFunctionality () const
 
virtual G4bool IsUISessionCompatible () const
 
void AddNickname (const G4String &nickname)
 

Additional Inherited Members

- Public Types inherited from G4VGraphicsSystem
enum  Functionality {
  noFunctionality, nonEuclidian, twoD, twoDStore,
  threeD, threeDInteractive, virtualReality, fileWriter
}
 
- Protected Attributes inherited from G4VGraphicsSystem
G4String fName
 
std::vector< G4StringfNicknames
 
G4String fDescription
 
Functionality fFunctionality
 

Detailed Description

Definition at line 41 of file G4HepRepFile.hh.

Constructor & Destructor Documentation

G4HepRepFile::G4HepRepFile ( )

Definition at line 43 of file G4HepRepFile.cc.

43  :
44  G4VGraphicsSystem("G4HepRepFile",
45  "HepRepFile",
46  "A HepRep (format 1) ascii file driver",
50 }
static G4HepRepFileXMLWriter * hepRepXMLWriter
Definition: G4HepRepFile.cc:41
static G4HepRepMessenger * GetInstance()
G4VGraphicsSystem(const G4String &name, Functionality f)

Here is the call graph for this function:

G4HepRepFile::~G4HepRepFile ( )
virtual

Definition at line 52 of file G4HepRepFile.cc.

53 {
54  delete hepRepXMLWriter;
55 }
static G4HepRepFileXMLWriter * hepRepXMLWriter
Definition: G4HepRepFile.cc:41

Member Function Documentation

G4VSceneHandler * G4HepRepFile::CreateSceneHandler ( const G4String name = "")
virtual

Implements G4VGraphicsSystem.

Definition at line 57 of file G4HepRepFile.cc.

57  {
58  G4VSceneHandler* pScene = new G4HepRepFileSceneHandler(*this, name);
59  return pScene;
60 }
G4VViewer * G4HepRepFile::CreateViewer ( G4VSceneHandler scene,
const G4String name = "" 
)
virtual

Implements G4VGraphicsSystem.

Definition at line 62 of file G4HepRepFile.cc.

63  {
64  G4VViewer* pView =
65  new G4HepRepFileViewer((G4HepRepFileSceneHandler&) scene, name);
66  if (pView) {
67  if (pView->GetViewId() < 0) {
68  G4cout <<
69  "G4HepRepFile::CreateViewer: ERROR flagged by negative"
70  " view id in G4HepRepFileViewer creation."
71  "\n Destroying view and returning null pointer."
72  << G4endl;
73  delete pView;
74  pView = 0;
75  }
76  }
77  else {
78  G4cout <<
79  "G4HepRepFile::CreateViewer: ERROR: null pointer on new G4HepRepFileViewer."
80  << G4endl;
81  }
82  return pView;
83 }
G4int GetViewId() const
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

G4HepRepFileXMLWriter * G4HepRepFile::GetHepRepXMLWriter ( )

Definition at line 85 of file G4HepRepFile.cc.

85  {
86  return hepRepXMLWriter;
87 }
static G4HepRepFileXMLWriter * hepRepXMLWriter
Definition: G4HepRepFile.cc:41

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