#include <G4XXXFile.hh>
Inheritance diagram for G4XXXFile:
Public Member Functions | |
G4XXXFile () | |
virtual | ~G4XXXFile () |
G4VSceneHandler * | CreateSceneHandler (const G4String &name="") |
G4VViewer * | CreateViewer (G4VSceneHandler &, const G4String &name="") |
Definition at line 39 of file G4XXXFile.hh.
G4XXXFile::G4XXXFile | ( | ) |
Definition at line 38 of file G4XXXFile.cc.
00038 : 00039 G4VGraphicsSystem("G4XXXFile", 00040 "XXXFile", 00041 "File-writing graphics driver", 00042 G4VGraphicsSystem::threeD //?? Your functionality 00043 ) 00044 {}
G4XXXFile::~G4XXXFile | ( | ) | [virtual] |
G4VSceneHandler * G4XXXFile::CreateSceneHandler | ( | const G4String & | name = "" |
) | [virtual] |
Implements G4VGraphicsSystem.
Definition at line 48 of file G4XXXFile.cc.
00048 { 00049 G4VSceneHandler* pScene = new G4XXXFileSceneHandler(*this, name); 00050 return pScene; 00051 }
G4VViewer * G4XXXFile::CreateViewer | ( | G4VSceneHandler & | , | |
const G4String & | name = "" | |||
) | [virtual] |
Implements G4VGraphicsSystem.
Definition at line 53 of file G4XXXFile.cc.
References G4cout, G4endl, and G4VViewer::GetViewId().
00054 { 00055 G4VViewer* pView = 00056 new G4XXXFileViewer((G4XXXFileSceneHandler&) scene, name); 00057 if (pView) { 00058 if (pView->GetViewId() < 0) { 00059 G4cout << 00060 "G4XXXFile::CreateViewer: ERROR flagged by negative" 00061 " view id in G4XXXFileViewer creation." 00062 "\n Destroying view and returning null pointer." 00063 << G4endl; 00064 delete pView; 00065 pView = 0; 00066 } 00067 } 00068 else { 00069 G4cout << 00070 "G4XXXFile::CreateViewer: ERROR: null pointer on new G4XXXFileViewer." 00071 << G4endl; 00072 } 00073 return pView; 00074 }