#include <G4HepRepViewer.hh>
Inheritance diagram for G4HepRepViewer:
Public Member Functions | |
G4HepRepViewer (G4VSceneHandler &scene, const G4String &name="") | |
virtual | ~G4HepRepViewer () |
void | SetView () |
void | ClearView () |
void | DrawView () |
void | ShowView () |
void | FinishView () |
void | reset () |
Definition at line 42 of file G4HepRepViewer.hh.
G4HepRepViewer::G4HepRepViewer | ( | G4VSceneHandler & | scene, | |
const G4String & | name = "" | |||
) |
Definition at line 49 of file G4HepRepViewer.cc.
References G4VViewer::fDefaultVP, G4VViewer::fVP, and G4ViewParameters::SetCulling().
00050 : G4VViewer (sceneHandler, sceneHandler.IncrementViewCount(), name), 00051 geometryIncluded(false) { 00052 00053 #ifdef SDEBUG 00054 cout << "G4HepRepViewer::G4HepRepViewer " << name << endl; 00055 #endif 00056 00057 // Make changes to view parameters for HepRep... 00058 fVP.SetCulling(false); 00059 fDefaultVP.SetCulling(false); 00060 }
G4HepRepViewer::~G4HepRepViewer | ( | ) | [virtual] |
Definition at line 64 of file G4HepRepViewer.cc.
References G4VSceneHandler::GetGraphicsSystem(), and G4VViewer::GetSceneHandler().
00064 { 00065 #ifdef SDEBUG 00066 cout << "G4HepRepViewer::~G4HepRepViewer" << endl; 00067 #endif 00068 dynamic_cast<G4HepRep*>(GetSceneHandler()->GetGraphicsSystem())->removeViewer(); 00069 }
void G4HepRepViewer::ClearView | ( | ) | [virtual] |
void G4HepRepViewer::DrawView | ( | ) | [virtual] |
Implements G4VViewer.
Definition at line 91 of file G4HepRepViewer.cc.
References G4VViewer::NeedKernelVisit(), and G4VViewer::ProcessView().
00091 { 00092 #ifdef SDEBUG 00093 cout << "G4HepRepViewer::DrawView" << endl; 00094 #endif 00095 if (!geometryIncluded) { 00096 // draws the geometry 00097 NeedKernelVisit(); 00098 ProcessView(); 00099 geometryIncluded = true; 00100 } 00101 }
void G4HepRepViewer::FinishView | ( | ) | [virtual] |
Reimplemented from G4VViewer.
Definition at line 118 of file G4HepRepViewer.cc.
References G4VViewer::FinishView().
00118 { 00119 #ifdef SDEBUG 00120 cout << "G4HepRepViewer::FinishView" << endl; 00121 #endif 00122 G4VViewer::FinishView(); 00123 }
void G4HepRepViewer::reset | ( | ) |
void G4HepRepViewer::SetView | ( | ) | [virtual] |
void G4HepRepViewer::ShowView | ( | ) | [virtual] |
Reimplemented from G4VViewer.
Definition at line 103 of file G4HepRepViewer.cc.
References G4HepRepMessenger::appendGeometry(), G4HepRepSceneHandler::closeHepRep(), G4HepRepMessenger::GetInstance(), G4VViewer::GetSceneHandler(), G4HepRepSceneHandler::openHepRep(), and G4VViewer::ShowView().
00103 { 00104 #ifdef SDEBUG 00105 cout << "G4HepRepViewer::ShowView" << endl; 00106 #endif 00107 G4VViewer::ShowView(); 00108 00109 G4HepRepSceneHandler* sceneHandler = dynamic_cast<G4HepRepSceneHandler*>(GetSceneHandler()); 00110 if (sceneHandler->closeHepRep()) { 00111 sceneHandler->openHepRep(); 00112 00113 G4HepRepMessenger* messenger = G4HepRepMessenger::GetInstance(); 00114 if (messenger->appendGeometry()) geometryIncluded = false; 00115 } 00116 }