Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4RayTracer Class Reference

#include <G4RayTracer.hh>

Inheritance diagram for G4RayTracer:
Collaboration 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 ()
 
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 46 of file G4RayTracer.hh.

Constructor & Destructor Documentation

G4RayTracer::G4RayTracer ( )

Definition at line 39 of file G4RayTracer.cc.

39  :
40  G4VGraphicsSystem("RayTracer",
41  "RayTracer",
44 {
45 #ifdef G4MULTITHREADED
46  theRayTracer = new G4TheMTRayTracer; // Establish default ray tracer.
47 #else
48  theRayTracer = new G4TheRayTracer; // Establish default ray tracer.
49 #endif
50 }
G4VGraphicsSystem(const G4String &name, Functionality f)
const char RAYTRACER_FEATURES[]
G4RayTracer::~G4RayTracer ( )

Definition at line 52 of file G4RayTracer.cc.

53 {
54  delete theRayTracer;
55 }

Member Function Documentation

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

Implements G4VGraphicsSystem.

Definition at line 57 of file G4RayTracer.cc.

57  {
58  G4VSceneHandler* pScene = new G4RayTracerSceneHandler (*this, name);
59  return pScene;
60 }
G4VViewer * G4RayTracer::CreateViewer ( G4VSceneHandler sceneHandler,
const G4String name 
)
virtual

Implements G4VGraphicsSystem.

Definition at line 62 of file G4RayTracer.cc.

63  {
64  G4VViewer* pViewer = new G4RayTracerViewer (sceneHandler, name);
65  if (pViewer) {
66  if (pViewer->GetViewId() < 0) {
67  G4cout <<
68  "G4RayTracer::CreateViewer: ERROR flagged by negative"
69  " view id in G4RayTracerViewer creation."
70  "\n Destroying view and returning null pointer."
71  << G4endl;
72  delete pViewer;
73  pViewer = 0;
74  }
75  }
76  else {
77  G4cout <<
78  "G4RayTracer::CreateViewer: ERROR: null pointer on new G4RayTracerViewer."
79  << G4endl;
80  }
81  return pViewer;
82 }
G4int GetViewId() const
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:


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