G4HepRepFileViewer Class Reference

#include <G4HepRepFileViewer.hh>

Inheritance diagram for G4HepRepFileViewer:

G4VViewer

Public Member Functions

 G4HepRepFileViewer (G4VSceneHandler &, const G4String &name)
virtual ~G4HepRepFileViewer ()
void SetView ()
void ClearView ()
void DrawView ()
void ShowView ()

Detailed Description

Definition at line 43 of file G4HepRepFileViewer.hh.


Constructor & Destructor Documentation

G4HepRepFileViewer::G4HepRepFileViewer ( G4VSceneHandler ,
const G4String name 
)

Definition at line 38 of file G4HepRepFileViewer.cc.

00038                                                      :
00039   G4VViewer(sceneHandler, sceneHandler.IncrementViewCount(), name) {
00040   hepRepXMLWriter = ((G4HepRepFileSceneHandler*)(&sceneHandler))->GetHepRepXMLWriter();
00041   // Make changes to view parameters for HepRep...
00042   fVP.SetCulling(false);
00043   fDefaultVP.SetCulling(false);
00044 }

G4HepRepFileViewer::~G4HepRepFileViewer (  )  [virtual]

Definition at line 46 of file G4HepRepFileViewer.cc.

References ShowView().

00046                                         {
00047   ShowView ();
00048 }


Member Function Documentation

void G4HepRepFileViewer::ClearView (  )  [virtual]

Implements G4VViewer.

Definition at line 56 of file G4HepRepFileViewer.cc.

References G4cout, and G4endl.

00056                                    {
00057 #ifdef G4HEPREPFILEDEBUG
00058   G4cout << "G4HepRepFileViewer::ClearView() called." << G4endl;
00059 #endif
00060 }

void G4HepRepFileViewer::DrawView (  )  [virtual]

Implements G4VViewer.

Definition at line 62 of file G4HepRepFileViewer.cc.

References G4cout, G4endl, G4VViewer::NeedKernelVisit(), and G4VViewer::ProcessView().

00062                                   {
00063 #ifdef G4HEPREPFILEDEBUG
00064   G4cout << "G4HepRepFileViewer::DrawView() called." << G4endl;
00065 #endif
00066   NeedKernelVisit ();  // Always need to visit G4 kernel.
00067   ProcessView ();
00068 }

void G4HepRepFileViewer::SetView (  )  [virtual]

Implements G4VViewer.

Definition at line 50 of file G4HepRepFileViewer.cc.

References G4cout, and G4endl.

00050                                  {
00051 #ifdef G4HEPREPFILEDEBUG
00052   G4cout << "G4HepRepFileViewer::SetView() called.=" << G4endl;
00053 #endif
00054 }

void G4HepRepFileViewer::ShowView (  )  [virtual]

Reimplemented from G4VViewer.

Definition at line 70 of file G4HepRepFileViewer.cc.

References G4HepRepFileXMLWriter::close(), G4cout, G4endl, G4HepRepFileXMLWriter::isOpen, and G4VViewer::ShowView().

Referenced by ~G4HepRepFileViewer().

00070                                    {
00071 #ifdef G4HEPREPFILEDEBUG
00072   G4cout << "G4HepRepFileViewer::ShowView" << G4endl;
00073 #endif
00074   G4VViewer::ShowView();
00075   
00076   if (hepRepXMLWriter->isOpen)
00077     hepRepXMLWriter->close();
00078 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:12 2013 for Geant4 by  doxygen 1.4.7