G4XXXViewer Class Reference

#include <G4XXXViewer.hh>

Inheritance diagram for G4XXXViewer:

G4VViewer

Public Member Functions

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

Detailed Description

Definition at line 41 of file G4XXXViewer.hh.


Constructor & Destructor Documentation

G4XXXViewer::G4XXXViewer ( G4VSceneHandler ,
const G4String name 
)

Definition at line 40 of file G4XXXViewer.cc.

00040                                                      :
00041   G4VViewer(sceneHandler, sceneHandler.IncrementViewCount(), name) {}

G4XXXViewer::~G4XXXViewer (  )  [virtual]

Definition at line 43 of file G4XXXViewer.cc.

00043 {}


Member Function Documentation

void G4XXXViewer::ClearView (  )  [virtual]

Implements G4VViewer.

Definition at line 51 of file G4XXXViewer.cc.

References G4cout, and G4endl.

00051                             {
00052 #ifdef G4XXXDEBUG
00053   G4cout << "G4XXXViewer::ClearView() called." << G4endl;
00054 #endif
00055 }

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]

Implements G4VViewer.

Definition at line 45 of file G4XXXViewer.cc.

References G4cout, and G4endl.

00045                           {
00046 #ifdef G4XXXDEBUG
00047   G4cout << "G4XXXViewer::SetView() called." << G4endl;
00048 #endif
00049 }

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 }


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