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

#include <G4OpenInventor.hh>

+ Inheritance diagram for G4OpenInventor:

Public Member Functions

 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 G4VViewerCreateViewer (G4VSceneHandler &, const G4String &name)=0
 
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 38 of file G4OpenInventor.hh.

Constructor & Destructor Documentation

◆ G4OpenInventor()

G4OpenInventor::G4OpenInventor ( const G4String name,
const G4String nickname,
G4VGraphicsSystem::Functionality f )

Definition at line 50 of file G4OpenInventor.cc.

55:G4VGraphicsSystem(name,nickname,f)
56,interactorManager(0)
57{
58}
G4VGraphicsSystem(const G4String &name, Functionality f)

◆ ~G4OpenInventor()

G4OpenInventor::~G4OpenInventor ( )
virtual

Definition at line 60 of file G4OpenInventor.cc.

60{}

Member Function Documentation

◆ CreateSceneHandler()

G4VSceneHandler * G4OpenInventor::CreateSceneHandler ( const G4String & name)
virtual

Implements G4VGraphicsSystem.

Definition at line 68 of file G4OpenInventor.cc.

68 {
69 Initialize();
70 G4VSceneHandler* p = new G4OpenInventorSceneHandler (*this, name);
71 return p;
72}

◆ GetInteractorManager()

G4VInteractorManager * G4OpenInventor::GetInteractorManager ( )

Definition at line 65 of file G4OpenInventor.cc.

65 {
66 return interactorManager;
67}

◆ InitNodes()

void G4OpenInventor::InitNodes ( )

Definition at line 74 of file G4OpenInventor.cc.

75{
85
89}
static void initClass()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
static void initClass()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
static void initClass(void)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
static void initClass()
Class Initializer, required.
Definition SoBox.cc:77
static void initClass()
Class Initializer, required.
Definition SoCons.cc:84
static void initClass(void)
static void initClass()
static void initClass()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
static void initClass()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
static void initClass()
Class Initializer, required.
Definition SoTrap.cc:89
static void initClass()
Class Initializer, required.
Definition SoTrd.cc:59
static void initClass()
Class Initializer, required.
Definition SoTubs.cc:84

◆ IsUISessionCompatible()

G4bool G4OpenInventor::IsUISessionCompatible ( ) const
virtual

Reimplemented from G4VGraphicsSystem.

Definition at line 91 of file G4OpenInventor.cc.

92{
93 // OI windows are not appropriate in a batch session.
95 if (baseSession == nullptr // Pure batch session
96 || dynamic_cast<G4UIbatch*>(baseSession) != nullptr) return false;
97 return true;
98}
static G4UImanager * GetUIpointer()
G4UIsession * GetBaseSession() const

◆ SetInteractorManager()

void G4OpenInventor::SetInteractorManager ( G4VInteractorManager * im)

Definition at line 62 of file G4OpenInventor.cc.

62 {
63 interactorManager = im;
64}

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