Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4HepRep Class Reference

#include <G4HepRep.hh>

Inheritance diagram for G4HepRep:
G4VGraphicsSystem

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 G4StringGetDescription () const
 
Functionality GetFunctionality () const
 
virtual G4bool IsUISessionCompatible () const
 
void SetName (const G4String &)
 
void SetNickname (const G4String &)
 
void SetDescription (const G4String &)
 
void SetFunctionality (Functionality)
 

Additional Inherited Members

- Public Types inherited from G4VGraphicsSystem
enum  Functionality {
  noFunctionality, nonEuclidian, twoD, twoDStore,
  threeD, threeDInteractive, virtualReality
}
 
- Protected Attributes inherited from G4VGraphicsSystem
G4String fName
 
G4String fNickname
 
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.

References G4HepRepMessenger::GetInstance().

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)
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.

Referenced by G4HepRepSceneHandler::~G4HepRepSceneHandler().

79  {
80  // actual deletion is done in VisManager
81  sceneHandler = NULL;
82 }
void G4HepRep::removeViewer ( )

Definition at line 84 of file G4HepRep.cc.

Referenced by G4HepRepViewer::~G4HepRepViewer().

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

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