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

#include <G4VtkOffscreen.hh>

+ Inheritance diagram for G4VtkOffscreen:

Public Member Functions

 G4VtkOffscreen ()
 
 ~G4VtkOffscreen () 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 30 of file G4VtkOffscreen.hh.

Constructor & Destructor Documentation

◆ G4VtkOffscreen()

G4VtkOffscreen::G4VtkOffscreen ( )

Definition at line 39 of file G4VtkOffscreen.cc.

40 : G4VGraphicsSystem("VtkOffscreen", "VTK_OFFSCREEN", "Vtk with offscreen rendering",
42{
44}
G4VGraphicsSystem(const G4String &name, Functionality f)
static G4VtkMessenger * GetInstance()

◆ ~G4VtkOffscreen()

G4VtkOffscreen::~G4VtkOffscreen ( )
overridedefault

Member Function Documentation

◆ CreateSceneHandler()

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

Implements G4VGraphicsSystem.

Definition at line 46 of file G4VtkOffscreen.cc.

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

◆ CreateViewer()

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

Implements G4VGraphicsSystem.

Definition at line 51 of file G4VtkOffscreen.cc.

52{
53 G4VViewer* pView = new G4VtkOffscreenViewer((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: