Public Member Functions | Protected Attributes | List of all members
LBNFWormPlotViewer Class Reference

#include <LBNFWormPlotViewer.hh>

Inheritance diagram for LBNFWormPlotViewer:

Public Member Functions

 LBNFWormPlotViewer (G4VSceneHandler &, const G4String &name, LBNFWormPlotter *=0)
 
virtual ~LBNFWormPlotViewer ()
 
void SetView ()
 
void ClearView ()
 
void DrawView ()
 
LBNFWormPlotterGetWormPlot ()
 

Protected Attributes

G4int fFileCount
 
LBNFWormPlottertheWorm
 

Detailed Description

Definition at line 38 of file LBNFWormPlotViewer.hh.

Constructor & Destructor Documentation

LBNFWormPlotViewer::LBNFWormPlotViewer ( G4VSceneHandler &  sceneHandler,
const G4String &  name,
LBNFWormPlotter aWorm = 0 
)

Definition at line 39 of file LBNFWormPlotViewer.cc.

41  :
42  G4VViewer(sceneHandler, sceneHandler.IncrementViewCount(), name),
43  fFileCount(0)
44 {
45  theWorm = aWorm;
46  if (!aWorm) theWorm = new LBNFWormPlotter;
47 }
static QCString name
Definition: declinfo.cpp:673
LBNFWormPlotter * theWorm
LBNFWormPlotViewer::~LBNFWormPlotViewer ( )
virtual

Definition at line 49 of file LBNFWormPlotViewer.cc.

49 {}

Member Function Documentation

void LBNFWormPlotViewer::ClearView ( )

Definition at line 57 of file LBNFWormPlotViewer.cc.

57 {}
void LBNFWormPlotViewer::DrawView ( )

Definition at line 59 of file LBNFWormPlotViewer.cc.

59  {
60 
61  std::ostringstream filename;
62  filename << "g4WormPlot." << fShortName << '_' << fFileCount++ << ".jpeg";
63  theWorm->CreatePlot(filename.str());
64 
65 }
LBNFWormPlotter * theWorm
void CreatePlot(const G4String &fileName)
string filename
Definition: train.py:213
LBNFWormPlotter* LBNFWormPlotViewer::GetWormPlot ( )
inline

Definition at line 51 of file LBNFWormPlotViewer.hh.

51 {return theWorm;}
LBNFWormPlotter * theWorm
void LBNFWormPlotViewer::SetView ( )

Definition at line 51 of file LBNFWormPlotViewer.cc.

52 {
53  // Do nothing here
54 }

Member Data Documentation

G4int LBNFWormPlotViewer::fFileCount
protected

Definition at line 55 of file LBNFWormPlotViewer.hh.

LBNFWormPlotter* LBNFWormPlotViewer::theWorm
protected

Definition at line 56 of file LBNFWormPlotViewer.hh.


The documentation for this class was generated from the following files: