Geant4 11.1.1
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 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 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}

◆ ~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()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoPolyhedron.cc:59
static void initClass()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition: SoMarkerSet.cc:627
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 G4bool isCompatible = false;
96
97 // If session is a batch session, it may be:
98 // a) this is a batch job (the user has not instantiated any UI session);
99 // b) we are currently processing a UI command, in which case the UI
100 // manager creates a temporary batch session and to find out if there is
101 // a genuine UI session that the user has instantiated we must drill
102 // down through previous sessions to a possible non-batch session.
103 while (G4UIbatch* batch = dynamic_cast<G4UIbatch*>(session)) {
104 session = batch->GetPreviousSession();
105 }
106
107 // OI windows are not appropriate in a batch session.
108 if (session) {
109 // If non-zero, this is the originating non-batch session
110 // The user has instantiated a UI session...
111 isCompatible = true;
112 }
113
114 return isCompatible;
115}
bool G4bool
Definition: G4Types.hh:86
G4UIsession * GetSession() const
Definition: G4UImanager.hh:187
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:77

◆ 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: