Geant4-11
Public Member Functions | Private Types | Private Attributes
G4VInteractiveSession Class Reference

#include <G4VInteractiveSession.hh>

Inheritance diagram for G4VInteractiveSession:
G4UIQt G4UIWin32 G4UIXm

Public Member Functions

virtual void AddButton (const char *, const char *, const char *)
 
virtual void AddIcon (const char *, const char *, const char *, const char *)
 
void AddInteractor (G4String, G4Interactor)
 
virtual void AddMenu (const char *, const char *)
 
virtual void ClearMenu ()
 
virtual void DefaultIcons (bool)
 
 G4VInteractiveSession ()
 
G4Interactor GetInteractor (G4String)
 
virtual void NativeMenu (bool)
 
virtual void OutputStyle (const char *, const char *, const char *)
 
virtual ~G4VInteractiveSession ()
 

Private Types

typedef std::map< G4String, G4Interactor, std::less< G4String > > G4interactor_map
 

Private Attributes

G4interactor_map interactors
 
G4UImessengermessenger
 

Detailed Description

Definition at line 44 of file G4VInteractiveSession.hh.

Member Typedef Documentation

◆ G4interactor_map

Definition at line 63 of file G4VInteractiveSession.hh.

Constructor & Destructor Documentation

◆ G4VInteractiveSession()

G4VInteractiveSession::G4VInteractiveSession ( )

Definition at line 33 of file G4VInteractiveSession.cc.

References messenger.

◆ ~G4VInteractiveSession()

G4VInteractiveSession::~G4VInteractiveSession ( )
virtual

Definition at line 39 of file G4VInteractiveSession.cc.

40{
41 delete messenger;
42}

References messenger.

Member Function Documentation

◆ AddButton()

void G4VInteractiveSession::AddButton ( const char *  ,
const char *  ,
const char *   
)
virtual

Reimplemented in G4UIQt, G4UIXm, and G4UIWin32.

Definition at line 50 of file G4VInteractiveSession.cc.

51{
52}

◆ AddIcon()

void G4VInteractiveSession::AddIcon ( const char *  ,
const char *  ,
const char *  ,
const char *   
)
virtual

Reimplemented in G4UIQt.

Definition at line 60 of file G4VInteractiveSession.cc.

61{
62}

◆ AddInteractor()

void G4VInteractiveSession::AddInteractor ( G4String  a_name,
G4Interactor  a_interactor 
)

Definition at line 80 of file G4VInteractiveSession.cc.

82{
83 interactors[a_name] = a_interactor;
84}

References interactors.

Referenced by G4UIQt::AddMenu(), G4UIXm::AddMenu(), G4UIWin32::AddMenu(), and G4UIWin32::G4UIWin32().

◆ AddMenu()

void G4VInteractiveSession::AddMenu ( const char *  ,
const char *   
)
virtual

Reimplemented in G4UIQt, G4UIXm, and G4UIWin32.

Definition at line 45 of file G4VInteractiveSession.cc.

46{
47}

◆ ClearMenu()

void G4VInteractiveSession::ClearMenu ( )
virtual

Reimplemented in G4UIQt.

Definition at line 75 of file G4VInteractiveSession.cc.

76{
77}

◆ DefaultIcons()

void G4VInteractiveSession::DefaultIcons ( bool  )
virtual

Reimplemented in G4UIQt.

Definition at line 55 of file G4VInteractiveSession.cc.

56{
57}

◆ GetInteractor()

G4Interactor G4VInteractiveSession::GetInteractor ( G4String  a_name)

Definition at line 87 of file G4VInteractiveSession.cc.

88{
89 G4interactor_map::iterator it;
90 if((it=interactors.find(a_name))==interactors.end()) return NULL;
91 return (*it).second;
92}

References interactors.

Referenced by G4UIQt::AddButton(), G4UIXm::AddButton(), and G4UIWin32::AddButton().

◆ NativeMenu()

void G4VInteractiveSession::NativeMenu ( bool  )
virtual

Reimplemented in G4UIQt.

Definition at line 70 of file G4VInteractiveSession.cc.

71{
72}

◆ OutputStyle()

void G4VInteractiveSession::OutputStyle ( const char *  ,
const char *  ,
const char *   
)
virtual

Reimplemented in G4UIQt.

Definition at line 65 of file G4VInteractiveSession.cc.

66{
67}

Field Documentation

◆ interactors

G4interactor_map G4VInteractiveSession::interactors
private

Definition at line 64 of file G4VInteractiveSession.hh.

Referenced by AddInteractor(), and GetInteractor().

◆ messenger

G4UImessenger* G4VInteractiveSession::messenger
private

Definition at line 62 of file G4VInteractiveSession.hh.

Referenced by G4VInteractiveSession(), and ~G4VInteractiveSession().


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