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

#include <G4XXXStored.hh>

+ Inheritance diagram for G4XXXStored:

Public Member Functions

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

Definition at line 38 of file G4XXXStored.hh.

Constructor & Destructor Documentation

◆ G4XXXStored()

G4XXXStored::G4XXXStored ( )

Definition at line 37 of file G4XXXStored.cc.

37 :
38 G4VGraphicsSystem("G4XXXStored",
39 "XXXStored",
40 "Graphics driver with a store/database",
41 G4VGraphicsSystem::threeD //?? Your functionality
42 )
43{}

◆ ~G4XXXStored()

G4XXXStored::~G4XXXStored ( )
virtual

Definition at line 45 of file G4XXXStored.cc.

45{}

Member Function Documentation

◆ CreateSceneHandler()

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

Implements G4VGraphicsSystem.

Definition at line 47 of file G4XXXStored.cc.

47 {
48 G4VSceneHandler* pScene = new G4XXXStoredSceneHandler(*this, name);
49 return pScene;
50}

◆ CreateViewer()

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

Implements G4VGraphicsSystem.

Definition at line 52 of file G4XXXStored.cc.

53 {
54 G4VViewer* pView =
56 if (pView) {
57 if (pView->GetViewId() < 0) {
58 G4cerr <<
59 "G4XXXStored::CreateViewer: ERROR flagged by negative"
60 " view id in G4XXXStoredViewer creation."
61 "\n Destroying view and returning null pointer."
62 << G4endl;
63 delete pView;
64 pView = 0;
65 }
66 }
67 else {
68 G4cerr <<
69 "G4XXXStored::CreateViewer: ERROR: null pointer on new G4XXXStoredViewer."
70 << G4endl;
71 }
72 return pView;
73}
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition: G4ios.hh:57
G4int GetViewId() const

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