Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4HepRep Class Reference

#include <G4HepRep.hh>

Inheritance diagram for G4HepRep:
Collaboration diagram for G4HepRep:

Public Member Functions

 G4HepRep ()
 
virtual ~G4HepRep ()
 
G4VSceneHandlerCreateSceneHandler (const G4String &name="")
 
G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name="")
 
void removeSceneHandler ()
 
void removeViewer ()
 
- 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

Author
Mark Donszelmann

Definition at line 38 of file G4HepRep.hh.

Constructor & Destructor Documentation

G4HepRep::G4HepRep ( )

Definition at line 48 of file G4HepRep.cc.

49  : G4VGraphicsSystem ("G4HepRep",
50  "HepRepXML",
51  "HepRep Generic Driver for XML, RMI and CORBA",
53  sceneHandler(NULL),
54  viewer(NULL) {
56 }
static G4HepRepMessenger * GetInstance()
G4VGraphicsSystem(const G4String &name, Functionality f)

Here is the call graph for this function:

G4HepRep::~G4HepRep ( )
virtual

Definition at line 58 of file G4HepRep.cc.

58  {
59 }

Member Function Documentation

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

Implements G4VGraphicsSystem.

Definition at line 61 of file G4HepRep.cc.

61  {
62  if (sceneHandler != NULL) {
63  cout << "G4HepRep::CreateSceneHandler: Cannot create more than one G4HepRepSceneHandler" << endl;
64  return NULL;
65  }
66  sceneHandler = new G4HepRepSceneHandler (*this, name);
67  return sceneHandler;
68 }
G4VViewer * G4HepRep::CreateViewer ( G4VSceneHandler scene,
const G4String name = "" 
)
virtual

Implements G4VGraphicsSystem.

Definition at line 70 of file G4HepRep.cc.

70  {
71  if (viewer != NULL) {
72  cout << "G4HepRep::CreateViewer: Cannot create more than one G4HepRepViewer" << endl;
73  return NULL;
74  }
75  viewer = new G4HepRepViewer ((G4HepRepSceneHandler&)scene, name);
76  return viewer;
77 }
void G4HepRep::removeSceneHandler ( )

Definition at line 79 of file G4HepRep.cc.

79  {
80  // actual deletion is done in VisManager
81  sceneHandler = NULL;
82 }

Here is the caller graph for this function:

void G4HepRep::removeViewer ( )

Definition at line 84 of file G4HepRep.cc.

84  {
85  // actual deletion is done in VisManager
86  viewer = NULL;
87 }

Here is the caller graph for this function:


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