[571] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
| 2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
---|
| 3 | <title>G4VInteractiveSession.cc Source File</title> |
---|
| 4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
| 5 | </head><body> |
---|
| 6 | <!-- Generated by Doxygen 1.3.4 --> |
---|
| 7 | <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> |
---|
| 8 | <h1>G4VInteractiveSession.cc</h1><a href="G4VInteractiveSession_8cc.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">//</span> |
---|
| 9 | 00002 <span class="comment">// ********************************************************************</span> |
---|
| 10 | 00003 <span class="comment">// * License and Disclaimer *</span> |
---|
| 11 | 00004 <span class="comment">// * *</span> |
---|
| 12 | 00005 <span class="comment">// * The Geant4 software is copyright of the Copyright Holders of *</span> |
---|
| 13 | 00006 <span class="comment">// * the Geant4 Collaboration. It is provided under the terms and *</span> |
---|
| 14 | 00007 <span class="comment">// * conditions of the Geant4 Software License, included in the file *</span> |
---|
| 15 | 00008 <span class="comment">// * LICENSE and available at http://cern.ch/geant4/license . These *</span> |
---|
| 16 | 00009 <span class="comment">// * include a list of copyright holders. *</span> |
---|
| 17 | 00010 <span class="comment">// * *</span> |
---|
| 18 | 00011 <span class="comment">// * Neither the authors of this software system, nor their employing *</span> |
---|
| 19 | 00012 <span class="comment">// * institutes,nor the agencies providing financial support for this *</span> |
---|
| 20 | 00013 <span class="comment">// * work make any representation or warranty, express or implied, *</span> |
---|
| 21 | 00014 <span class="comment">// * regarding this software system or assume any liability for its *</span> |
---|
| 22 | 00015 <span class="comment">// * use. Please see the license in the file LICENSE and URL above *</span> |
---|
| 23 | 00016 <span class="comment">// * for the full disclaimer and the limitation of liability. *</span> |
---|
| 24 | 00017 <span class="comment">// * *</span> |
---|
| 25 | 00018 <span class="comment">// * This code implementation is the result of the scientific and *</span> |
---|
| 26 | 00019 <span class="comment">// * technical work of the GEANT4 collaboration. *</span> |
---|
| 27 | 00020 <span class="comment">// * By using, copying, modifying or distributing the software (or *</span> |
---|
| 28 | 00021 <span class="comment">// * any work based on the software) you agree to acknowledge its *</span> |
---|
| 29 | 00022 <span class="comment">// * use in resulting scientific publications, and indicate your *</span> |
---|
| 30 | 00023 <span class="comment">// * acceptance of all terms of the Geant4 Software license. *</span> |
---|
| 31 | 00024 <span class="comment">// ********************************************************************</span> |
---|
| 32 | 00025 <span class="comment">//</span> |
---|
| 33 | 00026 <span class="comment">//</span> |
---|
| 34 | 00027 |
---|
| 35 | 00028 <span class="preprocessor">#include "<a class="code" href="G4InteractorMessenger_8hh.html">G4InteractorMessenger.hh</a>"</span> |
---|
| 36 | 00029 |
---|
| 37 | 00030 <span class="preprocessor">#include "<a class="code" href="G4VInteractiveSession_8hh.html">G4VInteractiveSession.hh</a>"</span> |
---|
| 38 | 00031 |
---|
| 39 | 00032 <span class="comment">/***************************************************************************/</span> |
---|
| 40 | <a name="l00033"></a><a class="code" href="classG4VInteractiveSession.html#a0">00033</a> <a class="code" href="classG4VInteractiveSession.html#a0">G4VInteractiveSession::G4VInteractiveSession</a> () |
---|
| 41 | 00034 { |
---|
| 42 | 00035 <a class="code" href="classG4VInteractiveSession.html#r0">messenger</a> = <span class="keyword">new</span> <a class="code" href="classG4InteractorMessenger.html">G4InteractorMessenger</a>(<span class="keyword">this</span>); |
---|
| 43 | 00036 } |
---|
| 44 | 00037 |
---|
| 45 | 00038 <span class="comment">/***************************************************************************/</span> |
---|
| 46 | <a name="l00039"></a><a class="code" href="classG4VInteractiveSession.html#a1">00039</a> <a class="code" href="classG4VInteractiveSession.html#a1">G4VInteractiveSession::~G4VInteractiveSession</a>() |
---|
| 47 | 00040 { |
---|
| 48 | 00041 <span class="keyword">delete</span> <a class="code" href="classG4VInteractiveSession.html#r0">messenger</a>; |
---|
| 49 | 00042 } |
---|
| 50 | 00043 |
---|
| 51 | 00044 <span class="comment">/***************************************************************************/</span> |
---|
| 52 | <a name="l00045"></a><a class="code" href="classG4VInteractiveSession.html#a2">00045</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractiveSession.html#a2">G4VInteractiveSession::AddMenu</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>*,<span class="keyword">const</span> <span class="keywordtype">char</span>*) |
---|
| 53 | 00046 { |
---|
| 54 | 00047 } |
---|
| 55 | 00048 |
---|
| 56 | 00049 <span class="comment">/***************************************************************************/</span> |
---|
| 57 | <a name="l00050"></a><a class="code" href="classG4VInteractiveSession.html#a3">00050</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractiveSession.html#a3">G4VInteractiveSession::AddButton</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>*,<span class="keyword">const</span> <span class="keywordtype">char</span>*,<span class="keyword">const</span> <span class="keywordtype">char</span>*) |
---|
| 58 | 00051 { |
---|
| 59 | 00052 } |
---|
| 60 | 00053 |
---|
| 61 | 00054 <span class="comment">/***************************************************************************/</span> |
---|
| 62 | <a name="l00055"></a><a class="code" href="classG4VInteractiveSession.html#a4">00055</a> <span class="keywordtype">void</span> <a class="code" href="classG4VInteractiveSession.html#a4">G4VInteractiveSession::AddInteractor</a> (G4String a_name, |
---|
| 63 | 00056 <a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a> a_interactor) |
---|
| 64 | 00057 { |
---|
| 65 | 00058 <a class="code" href="classG4VInteractiveSession.html#r1">interactors</a>[a_name] = a_interactor; |
---|
| 66 | 00059 } |
---|
| 67 | 00060 |
---|
| 68 | 00061 <span class="comment">/***************************************************************************/</span> |
---|
| 69 | <a name="l00062"></a><a class="code" href="classG4VInteractiveSession.html#a5">00062</a> <a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a> <a class="code" href="classG4VInteractiveSession.html#a5">G4VInteractiveSession::GetInteractor</a> (G4String a_name) |
---|
| 70 | 00063 { |
---|
| 71 | 00064 G4interactor_map::iterator it; |
---|
| 72 | 00065 <span class="keywordflow">if</span>((it=<a class="code" href="classG4VInteractiveSession.html#r1">interactors</a>.find(a_name))==<a class="code" href="classG4VInteractiveSession.html#r1">interactors</a>.end()) <span class="keywordflow">return</span> NULL; |
---|
| 73 | 00066 <span class="keywordflow">return</span> (*it).second; |
---|
| 74 | 00067 } |
---|
| 75 | </pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Jun 22 11:07:02 2007 by |
---|
| 76 | <a href="http://www.doxygen.org/index.html"> |
---|
| 77 | <img src="doxygen.png" alt="doxygen" align="middle" border=0 > |
---|
| 78 | </a>1.3.4 </small></address> |
---|
| 79 | </body> |
---|
| 80 | </html> |
---|