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

#include <G4Vtk.hh>

+ Inheritance diagram for G4Vtk:

Public Member Functions

 G4Vtk ()
 
virtual ~G4Vtk ()
 
G4VSceneHandlerCreateSceneHandler (const G4String &name="")
 
G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name="")
 
- 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 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 38 of file G4Vtk.hh.

Constructor & Destructor Documentation

◆ G4Vtk()

G4Vtk::G4Vtk ( )

Definition at line 38 of file G4Vtk.cc.

38 : G4VGraphicsSystem("VtkNative","VTKN","Vtk with native windowing",
40{
42}
static G4VtkMessenger * GetInstance()

◆ ~G4Vtk()

G4Vtk::~G4Vtk ( )
virtual

Definition at line 44 of file G4Vtk.cc.

44{}

Member Function Documentation

◆ CreateSceneHandler()

G4VSceneHandler * G4Vtk::CreateSceneHandler ( const G4String name = "")
virtual

Implements G4VGraphicsSystem.

Definition at line 46 of file G4Vtk.cc.

46 {
47 G4VSceneHandler* pScene = new G4VtkSceneHandler(*this, name);
48 return pScene;
49}

◆ CreateViewer()

G4VViewer * G4Vtk::CreateViewer ( G4VSceneHandler scene,
const G4String name = "" 
)
virtual

Implements G4VGraphicsSystem.

Definition at line 51 of file G4Vtk.cc.

52 {
53 G4VViewer* pView = new G4VtkViewer((G4VtkSceneHandler&) scene, name);
54 if (pView) {
55 if (pView->GetViewId() < 0) {
56 G4cerr << "G4Vtk::CreateViewer: ERROR flagged by negative"
57 " view id in G4VtkViewer creation."
58 "\n Destroying view and returning null pointer."
59 << G4endl;
60 delete pView;
61 pView = 0;
62 }
63 }
64 else {
65 G4cerr << "G4Vtk::CreateViewer: ERROR: null pointer on new G4VtkViewer." << G4endl;
66 }
67 return pView;
68}
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition: G4ios.hh:57
G4int GetViewId() const

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