Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4RayTracer Class Reference

#include <G4RayTracer.hh>

+ Inheritance diagram for G4RayTracer:

Public Member Functions

 G4RayTracer ()
 
 ~G4RayTracer ()
 
G4VSceneHandlerCreateSceneHandler (const G4String &)
 
G4VViewerCreateViewer (G4VSceneHandler &, const G4String &)
 
- Public Member Functions inherited from G4VGraphicsSystem
 G4VGraphicsSystem (const G4String &name, Functionality f)
 
 G4VGraphicsSystem (const G4String &name, const G4String &nickname, Functionality f)
 
 G4VGraphicsSystem (const G4String &name, const G4String &nickname, const G4String &description, Functionality f)
 
virtual ~G4VGraphicsSystem ()
 
virtual G4VSceneHandlerCreateSceneHandler (const G4String &name)=0
 
virtual G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name)=0
 
const G4StringGetName () const
 
const G4StringGetNickname () const
 
const G4StringGetDescription () const
 
Functionality GetFunctionality () const
 
virtual G4bool IsUISessionCompatible () const
 
void SetName (const G4String &)
 
void SetNickname (const G4String &)
 
void SetDescription (const G4String &)
 
void SetFunctionality (Functionality)
 

Additional Inherited Members

- Public Types inherited from G4VGraphicsSystem
enum  Functionality {
  noFunctionality , nonEuclidian , twoD , twoDStore ,
  threeD , threeDInteractive , virtualReality
}
 
- Protected Attributes inherited from G4VGraphicsSystem
G4String fName
 
G4String fNickname
 
G4String fDescription
 
Functionality fFunctionality
 

Detailed Description

Definition at line 46 of file G4RayTracer.hh.

Constructor & Destructor Documentation

◆ G4RayTracer()

G4RayTracer::G4RayTracer ( )

Definition at line 35 of file G4RayTracer.cc.

35 :
36 G4VGraphicsSystem("RayTracer",
37 "RayTracer",
40{
41 theRayTracer = new G4TheRayTracer; // Establish default ray tracer.
42}
const char RAYTRACER_FEATURES[]

◆ ~G4RayTracer()

G4RayTracer::~G4RayTracer ( )

Definition at line 44 of file G4RayTracer.cc.

45{
46 delete theRayTracer;
47}

Member Function Documentation

◆ CreateSceneHandler()

G4VSceneHandler * G4RayTracer::CreateSceneHandler ( const G4String name)
virtual

Implements G4VGraphicsSystem.

Definition at line 49 of file G4RayTracer.cc.

49 {
50 G4VSceneHandler* pScene = new G4RayTracerSceneHandler (*this, name);
51 return pScene;
52}

◆ CreateViewer()

G4VViewer * G4RayTracer::CreateViewer ( G4VSceneHandler sceneHandler,
const G4String name 
)
virtual

Implements G4VGraphicsSystem.

Definition at line 54 of file G4RayTracer.cc.

55 {
56 G4VViewer* pViewer = new G4RayTracerViewer (sceneHandler, name);
57 if (pViewer) {
58 if (pViewer->GetViewId() < 0) {
59 G4cout <<
60 "G4RayTracer::CreateViewer: ERROR flagged by negative"
61 " view id in G4RayTracerViewer creation."
62 "\n Destroying view and returning null pointer."
63 << G4endl;
64 delete pViewer;
65 pViewer = 0;
66 }
67 }
68 else {
69 G4cout <<
70 "G4RayTracer::CreateViewer: ERROR: null pointer on new G4RayTracerViewer."
71 << G4endl;
72 }
73 return pViewer;
74}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
G4int GetViewId() const

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