#include <G4XXXViewer.hh>
Inheritance diagram for G4XXXViewer:
Public Member Functions | |
G4XXXViewer (G4VSceneHandler &, const G4String &name) | |
virtual | ~G4XXXViewer () |
void | SetView () |
void | ClearView () |
void | DrawView () |
void | ShowView () |
Definition at line 41 of file G4XXXViewer.hh.
G4XXXViewer::G4XXXViewer | ( | G4VSceneHandler & | , | |
const G4String & | name | |||
) |
Definition at line 40 of file G4XXXViewer.cc.
00040 : 00041 G4VViewer(sceneHandler, sceneHandler.IncrementViewCount(), name) {}
G4XXXViewer::~G4XXXViewer | ( | ) | [virtual] |
void G4XXXViewer::ClearView | ( | ) | [virtual] |
void G4XXXViewer::DrawView | ( | ) | [virtual] |
Implements G4VViewer.
Definition at line 57 of file G4XXXViewer.cc.
References G4VViewer::FinishView(), G4cout, G4endl, G4VViewer::NeedKernelVisit(), and G4VViewer::ProcessView().
00057 { 00058 #ifdef G4XXXDEBUG 00059 G4cout << "G4XXXViewer::DrawView() called." << G4endl; 00060 #endif 00061 00062 // First, a view should decide when to re-visit the G4 kernel. 00063 // Sometimes it might not be necessary, e.g., if the scene is stored 00064 // in a graphical database (e.g., OpenGL's display lists) and only 00065 // the viewing angle has changed. But graphics systems without a 00066 // graphical database will always need to visit the G4 kernel. 00067 00068 NeedKernelVisit (); // Default is - always visit G4 kernel. 00069 // Note: this routine sets the fNeedKernelVisit flag of *all* the 00070 // views of the scene. 00071 00072 ProcessView (); // The basic logic is here. 00073 00074 // Then a view may have more to do, e.g., display the graphical 00075 // database. That code should come here... 00076 00077 // ...before finally... 00078 FinishView (); // Flush streams and/or swap buffers. 00079 }
void G4XXXViewer::SetView | ( | ) | [virtual] |
void G4XXXViewer::ShowView | ( | ) | [virtual] |
Reimplemented from G4VViewer.
Definition at line 81 of file G4XXXViewer.cc.
References G4VViewer::fSceneHandler, G4cout, and G4endl.
00081 { 00082 #ifdef G4XXXDEBUG 00083 G4cout << "G4XXXViewer::ShowView() called." << G4endl; 00084 static_cast<G4XXXSceneHandler&>(fSceneHandler).PrintStores(); 00085 #endif 00086 }