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

Constructor & Destructor Documentation

◆ G4Vtk()

G4Vtk::G4Vtk ( )

Definition at line 39 of file G4Vtk.cc.

40 : G4VGraphicsSystem("VtkNative", "VTKN", "Vtk with native windowing",
42{
44}
G4VGraphicsSystem(const G4String &name, Functionality f)
static G4VtkMessenger * GetInstance()

◆ ~G4Vtk()

G4Vtk::~G4Vtk ( )
overridedefault

Member Function Documentation

◆ CreateSceneHandler()

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

Implements G4VGraphicsSystem.

Definition at line 46 of file G4Vtk.cc.

47{
48 return new G4VtkSceneHandler(*this, name);
49}

◆ CreateViewer()

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

Implements G4VGraphicsSystem.

Definition at line 51 of file G4Vtk.cc.

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

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