Public Member Functions | Private Attributes | List of all members
LBNFWormPlot Class Reference

#include <LBNFWormPlot.hh>

Inheritance diagram for LBNFWormPlot:

Public Member Functions

 LBNFWormPlot ()
 
 ~LBNFWormPlot ()
 
G4VSceneHandler * CreateSceneHandler (const G4String &)
 
G4VViewer * CreateViewer (G4VSceneHandler &, const G4String &)
 

Private Attributes

LBNFWormPlotterthePlot
 

Detailed Description

Definition at line 44 of file LBNFWormPlot.hh.

Constructor & Destructor Documentation

LBNFWormPlot::LBNFWormPlot ( )

Definition at line 34 of file LBNFWormPlot.cc.

34  :
35  G4VGraphicsSystem("WormPlot",
36  "WormPlot",
37  "Geometry 2d projection plots",
38  G4VGraphicsSystem::twoD)
39 {
40  thePlot = new LBNFWormPlotter();
41 }
LBNFWormPlotter * thePlot
Definition: LBNFWormPlot.hh:54
LBNFWormPlot::~LBNFWormPlot ( )

Definition at line 43 of file LBNFWormPlot.cc.

44 {
45  delete thePlot;
46 }
LBNFWormPlotter * thePlot
Definition: LBNFWormPlot.hh:54

Member Function Documentation

G4VSceneHandler * LBNFWormPlot::CreateSceneHandler ( const G4String &  name)

Definition at line 48 of file LBNFWormPlot.cc.

48  {
49 
50  G4VSceneHandler* pScene = new LBNFWormPlotSceneHandler(*this, name);
51  return pScene;
52 
53 }
static QCString name
Definition: declinfo.cpp:673
G4VViewer * LBNFWormPlot::CreateViewer ( G4VSceneHandler &  sceneHandler,
const G4String &  name 
)

Definition at line 55 of file LBNFWormPlot.cc.

56  {
57  G4VViewer* pViewer = new LBNFWormPlotViewer(sceneHandler, name);
58  if (pViewer) {
59  if (pViewer->GetViewId() < 0) {
60  G4cout <<
61  "LBNFWormPlot::CreateViewer: ERROR flagged by negative"
62  " view id in LBNFWormPlotViewer creation."
63  "\n Destroying view and returning null pointer."
64  << G4endl;
65  delete pViewer;
66  pViewer = 0;
67  }
68  } else {
69  G4cout <<
70  "LBNFWormPlot::CreateViewer: ERROR: null pointer on new LBNFWormPlotViewer."
71  << G4endl;
72  }
73 
74  return pViewer;
75 
76 }
static QCString name
Definition: declinfo.cpp:673

Member Data Documentation

LBNFWormPlotter* LBNFWormPlot::thePlot
private

Definition at line 54 of file LBNFWormPlot.hh.


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