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

#include <G4RayTracerX.hh>

+ Inheritance diagram for G4RayTracerX:

Public Member Functions

 G4RayTracerX ()
 
 ~G4RayTracerX ()
 
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 ()
 
const G4StringGetName () const
 
const G4StringGetNickname () const
 
const std::vector< G4String > & GetNicknames () const
 
const G4StringGetDescription () const
 
Functionality GetFunctionality () const
 
virtual G4bool IsUISessionCompatible () const
 
void AddNickname (const G4String &nickname)
 

Additional Inherited Members

- Public Types inherited from G4VGraphicsSystem
enum  Functionality {
  noFunctionality , nonEuclidian , twoD , twoDStore ,
  threeD , threeDInteractive , virtualReality , fileWriter
}
 
- Protected Attributes inherited from G4VGraphicsSystem
G4String fName
 
std::vector< G4StringfNicknames
 
G4String fDescription
 
Functionality fFunctionality
 

Detailed Description

Definition at line 42 of file G4RayTracerX.hh.

Constructor & Destructor Documentation

◆ G4RayTracerX()

G4RayTracerX::G4RayTracerX ( )

Definition at line 38 of file G4RayTracerX.cc.

38 :
39 G4VGraphicsSystem("RayTracerX",
40 "RayTracerX",
43{}
const char RAYTRACER_FEATURES[]
G4VGraphicsSystem(const G4String &name, Functionality f)

◆ ~G4RayTracerX()

G4RayTracerX::~G4RayTracerX ( )

Definition at line 45 of file G4RayTracerX.cc.

46{}

Member Function Documentation

◆ CreateSceneHandler()

G4VSceneHandler * G4RayTracerX::CreateSceneHandler ( const G4String & name)
virtual

Implements G4VGraphicsSystem.

Definition at line 48 of file G4RayTracerX.cc.

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

◆ CreateViewer()

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

Implements G4VGraphicsSystem.

Definition at line 53 of file G4RayTracerX.cc.

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

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