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

#include <G4OpenInventorQt.hh>

+ Inheritance diagram for G4OpenInventorQt:

Public Member Functions

 G4OpenInventorQt ()
 
virtual ~G4OpenInventorQt ()
 
G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name="")
 
- Public Member Functions inherited from G4OpenInventor
 G4OpenInventor (const G4String, const G4String, G4VGraphicsSystem::Functionality)
 
virtual ~G4OpenInventor ()
 
void SetInteractorManager (G4VInteractorManager *)
 
G4VInteractorManagerGetInteractorManager ()
 
G4VSceneHandlerCreateSceneHandler (const G4String &name)
 
void InitNodes ()
 
G4bool IsUISessionCompatible () const
 
- 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 34 of file G4OpenInventorQt.hh.

Constructor & Destructor Documentation

◆ G4OpenInventorQt()

G4OpenInventorQt::G4OpenInventorQt ( )

Definition at line 42 of file G4OpenInventorQt.cc.

43 : G4OpenInventor("OpenInventorQt", "OIQt", G4VGraphicsSystem::threeD),
44 fInited(false)
45{
46}

◆ ~G4OpenInventorQt()

G4OpenInventorQt::~G4OpenInventorQt ( )
virtual

Definition at line 72 of file G4OpenInventorQt.cc.

73{
74}

Member Function Documentation

◆ CreateViewer()

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

Implements G4VGraphicsSystem.

Definition at line 76 of file G4OpenInventorQt.cc.

78{
79 auto pView = new G4OpenInventorQtViewer(static_cast<G4OpenInventorSceneHandler&>(scene), name);
80
81 if (pView) {
82 if (pView->GetViewId() < 0) {
83 G4warn <<
84 "G4OpenInventorQt::CreateViewer: ERROR flagged by negative"
85 " view id in G4OpenInventorQtViewer creation."
86 "\n Destroying view and returning null pointer."
87 << G4endl;
88 delete pView;
89 pView = 0;
90 }
91 }
92 if (!pView) {
93 G4warn <<
94 "G4OpenInventorQt::CreateViewer: ERROR: null pointer on new G4OpenInventorQtViewer."
95 << G4endl;
96 }
97
98 Initialize();
99
100 return pView;
101}
#define G4warn
Definition: G4Scene.cc:41
#define G4endl
Definition: G4ios.hh:57

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