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

#include <G4XXXStored.hh>

Inheritance diagram for G4XXXStored:
Collaboration 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 ()
 
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 39 of file G4XXXStored.hh.

Constructor & Destructor Documentation

G4XXXStored::G4XXXStored ( )

Definition at line 38 of file G4XXXStored.cc.

38  :
39  G4VGraphicsSystem("G4XXXStored",
40  "XXXStored",
41  "Graphics driver with a store/database",
42  G4VGraphicsSystem::threeD //?? Your functionality
43  )
44 {}
G4VGraphicsSystem(const G4String &name, Functionality f)
G4XXXStored::~G4XXXStored ( )
virtual

Definition at line 46 of file G4XXXStored.cc.

46 {}

Member Function Documentation

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

Implements G4VGraphicsSystem.

Definition at line 48 of file G4XXXStored.cc.

48  {
49  G4VSceneHandler* pScene = new G4XXXStoredSceneHandler(*this, name);
50  return pScene;
51 }
G4VViewer * G4XXXStored::CreateViewer ( G4VSceneHandler scene,
const G4String name = "" 
)
virtual

Implements G4VGraphicsSystem.

Definition at line 53 of file G4XXXStored.cc.

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

Here is the call graph for this function:


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