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

#include <G4VtkQt.hh>

+ Inheritance diagram for G4VtkQt:

Public Member Functions

 G4VtkQt ()
 
 ~G4VtkQt () override=default
 
G4VSceneHandlerCreateSceneHandler (const G4String &name="") override
 
G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name="") override
 
G4bool IsUISessionCompatible () const 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
 
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 31 of file G4VtkQt.hh.

Constructor & Destructor Documentation

◆ G4VtkQt()

G4VtkQt::G4VtkQt ( )

Definition at line 34 of file G4VtkQt.cc.

35 : G4VGraphicsSystem("VtkQt", "VTKQt", "VTK with Qt", G4VGraphicsSystem::noFunctionality)
36{}
G4VGraphicsSystem(const G4String &name, Functionality f)

◆ ~G4VtkQt()

G4VtkQt::~G4VtkQt ( )
overridedefault

Member Function Documentation

◆ CreateSceneHandler()

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

Implements G4VGraphicsSystem.

Definition at line 38 of file G4VtkQt.cc.

39{
40 return new G4VtkQtSceneHandler(*this, name);
41}

◆ CreateViewer()

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

Implements G4VGraphicsSystem.

Definition at line 43 of file G4VtkQt.cc.

44{
45 G4VViewer* pView = new G4VtkQtViewer((G4VtkQtSceneHandler&)scene, name);
46 if (pView->GetViewId() < 0) {
47 G4cerr << "G4VtkQt::CreateViewer: ERROR flagged by negative"
48 " view id in G4VtkViewer creation."
49 "\n Destroying view and returning null pointer."
50 << G4endl;
51 delete pView;
52 pView = nullptr;
53 }
54 return pView;
55}
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition G4ios.hh:67
G4int GetViewId() const

◆ IsUISessionCompatible()

G4bool G4VtkQt::IsUISessionCompatible ( ) const
overridevirtual

Reimplemented from G4VGraphicsSystem.

Definition at line 57 of file G4VtkQt.cc.

58{
59 // Qt windows require a Qt session.
61 return dynamic_cast<G4UIQt*>(baseSession) != nullptr;
62}
static G4UImanager * GetUIpointer()
G4UIsession * GetBaseSession() const

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