Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4DAWNFILEViewer.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27//
28// Satoshi TANAKA
29// DAWNFILE viewer - opens window, hard copy, etc.
30
31#ifndef G4DAWNFILE_VIEWER_HH
32#define G4DAWNFILE_VIEWER_HH
33
34#include "G4VViewer.hh"
35#include "globals.hh"
36
38
40{
41 enum FRDEV
42 {
43 FRDEV_PS = 1,
44 FRDEV_XWIN = 2,
45 FRDEV_PS2 = 3,
46 FRDEV_XWIN2 = 4,
47 FRDEV_OPEN_GL = 5,
48 FRDEV_DEVICE_END = 6
49 };
50
51 public:
52 //----- constructor and destructor
53 G4DAWNFILEViewer(G4DAWNFILESceneHandler& scene, const G4String& name = "");
54 virtual ~G4DAWNFILEViewer();
55
56 //----- overriding base class methods
57 void SetView(); // Do nothing. SendViewParameters will do its job.
58 void ClearView();
59 void DrawView();
60 void ShowView();
61
62 //---- methods inherent to this class
63 void SendViewParameters();
64 const char* GetG4PrimViewer() { return fG4PrimViewer; }
65 const char* GetG4PrimViewerInvocation() { return fG4PrimViewerInvocation; }
66 const char* GetPSViewer() { return fPSViewer; }
67 void SendDrawingStyleToDAWNGUI(std::ostream& out);
68
69 private:
71 fSceneHandler; // Reference to Graphics Scene for this view.
72
73 char fG4PrimViewer[32];
74 char fG4PrimViewerInvocation[64];
75 char fPSViewer[32];
76};
77
78#endif
G4DAWNFILEViewer(G4DAWNFILESceneHandler &scene, const G4String &name="")
virtual ~G4DAWNFILEViewer()
const char * GetG4PrimViewerInvocation()
void SendDrawingStyleToDAWNGUI(std::ostream &out)
const char * GetPSViewer()
const char * GetG4PrimViewer()