Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HepRep Class Reference

#include <G4HepRep.hh>

+ Inheritance 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 ()
 
virtual G4VSceneHandlerCreateSceneHandler (const G4String &name)=0
 
virtual G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name)=0
 
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 37 of file G4HepRep.hh.

Constructor & Destructor Documentation

◆ G4HepRep()

G4HepRep::G4HepRep ( )

Definition at line 47 of file G4HepRep.cc.

48 : G4VGraphicsSystem ("G4HepRep",
49 "HepRepXML",
50 "HepRep Generic Driver for XML, RMI and CORBA",
52 sceneHandler(NULL),
53 viewer(NULL) {
55}
static G4HepRepMessenger * GetInstance()

◆ ~G4HepRep()

G4HepRep::~G4HepRep ( )
virtual

Definition at line 57 of file G4HepRep.cc.

57 {
58}

Member Function Documentation

◆ CreateSceneHandler()

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

Implements G4VGraphicsSystem.

Definition at line 60 of file G4HepRep.cc.

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

◆ CreateViewer()

G4VViewer * G4HepRep::CreateViewer ( G4VSceneHandler scene,
const G4String name = "" 
)
virtual

Implements G4VGraphicsSystem.

Definition at line 69 of file G4HepRep.cc.

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

◆ removeSceneHandler()

void G4HepRep::removeSceneHandler ( )

Definition at line 78 of file G4HepRep.cc.

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

Referenced by G4HepRepSceneHandler::~G4HepRepSceneHandler().

◆ removeViewer()

void G4HepRep::removeViewer ( )

Definition at line 83 of file G4HepRep.cc.

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

Referenced by G4HepRepViewer::~G4HepRepViewer().


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