#include <G4XXXSG.hh>
Inheritance diagram for G4XXXSG:
Public Member Functions | |
G4XXXSG () | |
virtual | ~G4XXXSG () |
G4VSceneHandler * | CreateSceneHandler (const G4String &name="") |
G4VViewer * | CreateViewer (G4VSceneHandler &, const G4String &name="") |
Definition at line 39 of file G4XXXSG.hh.
G4XXXSG::G4XXXSG | ( | ) |
Definition at line 38 of file G4XXXSG.cc.
00038 : 00039 G4VGraphicsSystem("G4XXXSG", 00040 "XXXSG", 00041 "Graphics driver with scene graph", 00042 G4VGraphicsSystem::threeD) {} //?? Your functionality.
G4XXXSG::~G4XXXSG | ( | ) | [virtual] |
G4VSceneHandler * G4XXXSG::CreateSceneHandler | ( | const G4String & | name = "" |
) | [virtual] |
Implements G4VGraphicsSystem.
Definition at line 46 of file G4XXXSG.cc.
00046 { 00047 G4VSceneHandler* pScene = new G4XXXSGSceneHandler(*this, name); 00048 return pScene; 00049 }
G4VViewer * G4XXXSG::CreateViewer | ( | G4VSceneHandler & | , | |
const G4String & | name = "" | |||
) | [virtual] |
Implements G4VGraphicsSystem.
Definition at line 51 of file G4XXXSG.cc.
References G4cout, G4endl, and G4VViewer::GetViewId().
00052 { 00053 G4VViewer* pView = 00054 new G4XXXSGViewer((G4XXXSGSceneHandler&) scene, name); 00055 if (pView) { 00056 if (pView->GetViewId() < 0) { 00057 G4cout << 00058 "G4XXXSG::CreateViewer: ERROR flagged by negative" 00059 " view id in G4XXXSGViewer creation." 00060 "\n Destroying view and returning null pointer." 00061 << G4endl; 00062 delete pView; 00063 pView = 0; 00064 } 00065 } 00066 else { 00067 G4cout << 00068 "G4XXXSG::CreateViewer: ERROR: null pointer on new G4XXXSGViewer." 00069 << G4endl; 00070 } 00071 return pView; 00072 }