source: trunk/geant4/interfaces/html/d0/de0/G4VInteractiveSession_8cc-source.html @ 785

Last change on this file since 785 was 571, checked in by garnier, 17 years ago

r581@mac-90108: laurentgarnier | 2007-08-17 17:30:26 +0200
deplacement de frame

  • Property svn:mime-type set to text/html
File size: 9.5 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>G4VInteractiveSession.cc Source File</title>
4<link href="../../doxygen.css" rel="stylesheet" type="text/css">
5<link href="../../tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.2 -->
8<div class="tabs">
9  <ul>
10    <li><a href="../../index.html"><span>Main&nbsp;Page</span></a></li>
11    <li><a href="../../annotated.html"><span>Classes</span></a></li>
12    <li class="current"><a href="../../files.html"><span>Files</span></a></li>
13  </ul>
14</div>
15<div class="tabs">
16  <ul>
17    <li><a href="../../files.html"><span>File&nbsp;List</span></a></li>
18    <li><a href="../../globals.html"><span>File&nbsp;Members</span></a></li>
19  </ul>
20</div>
21<h1>G4VInteractiveSession.cc</h1><a href="../../de/db6/G4VInteractiveSession_8cc.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
22<a name="l00002"></a>00002 <span class="comment">// ********************************************************************</span>
23<a name="l00003"></a>00003 <span class="comment">// * License and Disclaimer                                           *</span>
24<a name="l00004"></a>00004 <span class="comment">// *                                                                  *</span>
25<a name="l00005"></a>00005 <span class="comment">// * The  Geant4 software  is  copyright of the Copyright Holders  of *</span>
26<a name="l00006"></a>00006 <span class="comment">// * the Geant4 Collaboration.  It is provided  under  the terms  and *</span>
27<a name="l00007"></a>00007 <span class="comment">// * conditions of the Geant4 Software License,  included in the file *</span>
28<a name="l00008"></a>00008 <span class="comment">// * LICENSE and available at  http://cern.ch/geant4/license .  These *</span>
29<a name="l00009"></a>00009 <span class="comment">// * include a list of copyright holders.                             *</span>
30<a name="l00010"></a>00010 <span class="comment">// *                                                                  *</span>
31<a name="l00011"></a>00011 <span class="comment">// * Neither the authors of this software system, nor their employing *</span>
32<a name="l00012"></a>00012 <span class="comment">// * institutes,nor the agencies providing financial support for this *</span>
33<a name="l00013"></a>00013 <span class="comment">// * work  make  any representation or  warranty, express or implied, *</span>
34<a name="l00014"></a>00014 <span class="comment">// * regarding  this  software system or assume any liability for its *</span>
35<a name="l00015"></a>00015 <span class="comment">// * use.  Please see the license in the file  LICENSE  and URL above *</span>
36<a name="l00016"></a>00016 <span class="comment">// * for the full disclaimer and the limitation of liability.         *</span>
37<a name="l00017"></a>00017 <span class="comment">// *                                                                  *</span>
38<a name="l00018"></a>00018 <span class="comment">// * This  code  implementation is the result of  the  scientific and *</span>
39<a name="l00019"></a>00019 <span class="comment">// * technical work of the GEANT4 collaboration.                      *</span>
40<a name="l00020"></a>00020 <span class="comment">// * By using,  copying,  modifying or  distributing the software (or *</span>
41<a name="l00021"></a>00021 <span class="comment">// * any work based  on the software)  you  agree  to acknowledge its *</span>
42<a name="l00022"></a>00022 <span class="comment">// * use  in  resulting  scientific  publications,  and indicate your *</span>
43<a name="l00023"></a>00023 <span class="comment">// * acceptance of all terms of the Geant4 Software license.          *</span>
44<a name="l00024"></a>00024 <span class="comment">// ********************************************************************</span>
45<a name="l00025"></a>00025 <span class="comment">//</span>
46<a name="l00026"></a>00026 <span class="comment">//</span>
47<a name="l00027"></a>00027
48<a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="../../de/dd4/G4InteractorMessenger_8hh.html">G4InteractorMessenger.hh</a>"</span>
49<a name="l00029"></a>00029
50<a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="../../d0/da4/G4VInteractiveSession_8hh.html">G4VInteractiveSession.hh</a>"</span>
51<a name="l00031"></a>00031
52<a name="l00032"></a>00032 <span class="comment">/***************************************************************************/</span>
53<a name="l00033"></a><a class="code" href="../../d2/d71/classG4VInteractiveSession.html#316d03f5b6185a6bd2a13b1c192017f2">00033</a> <a class="code" href="../../d2/d71/classG4VInteractiveSession.html#316d03f5b6185a6bd2a13b1c192017f2">G4VInteractiveSession::G4VInteractiveSession</a> ()
54<a name="l00034"></a>00034 {
55<a name="l00035"></a>00035   <a class="code" href="../../d2/d71/classG4VInteractiveSession.html#778c3c93f6e5117c49a56c696527e408">messenger</a> = <span class="keyword">new</span> <a class="code" href="../../d8/d3a/classG4InteractorMessenger.html">G4InteractorMessenger</a>(<span class="keyword">this</span>);
56<a name="l00036"></a>00036 }
57<a name="l00037"></a>00037
58<a name="l00038"></a>00038 <span class="comment">/***************************************************************************/</span>
59<a name="l00039"></a><a class="code" href="../../d2/d71/classG4VInteractiveSession.html#e176ab6c4ef9f10976c41830bf6f699c">00039</a> <a class="code" href="../../d2/d71/classG4VInteractiveSession.html#e176ab6c4ef9f10976c41830bf6f699c">G4VInteractiveSession::~G4VInteractiveSession</a>()
60<a name="l00040"></a>00040 {
61<a name="l00041"></a>00041   <span class="keyword">delete</span> <a class="code" href="../../d2/d71/classG4VInteractiveSession.html#778c3c93f6e5117c49a56c696527e408">messenger</a>;
62<a name="l00042"></a>00042 }
63<a name="l00043"></a>00043
64<a name="l00044"></a>00044 <span class="comment">/***************************************************************************/</span>
65<a name="l00045"></a><a class="code" href="../../d2/d71/classG4VInteractiveSession.html#d0d2f5208c0f028abd4c1ce8632fb060">00045</a> <span class="keywordtype">void</span> <a class="code" href="../../d2/d71/classG4VInteractiveSession.html#d0d2f5208c0f028abd4c1ce8632fb060">G4VInteractiveSession::AddMenu</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>*,<span class="keyword">const</span> <span class="keywordtype">char</span>*)
66<a name="l00046"></a>00046 {
67<a name="l00047"></a>00047 }
68<a name="l00048"></a>00048
69<a name="l00049"></a>00049 <span class="comment">/***************************************************************************/</span>
70<a name="l00050"></a><a class="code" href="../../d2/d71/classG4VInteractiveSession.html#fec2d86051f30810577bff717d11a9ba">00050</a> <span class="keywordtype">void</span> <a class="code" href="../../d2/d71/classG4VInteractiveSession.html#fec2d86051f30810577bff717d11a9ba">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>*)
71<a name="l00051"></a>00051 {
72<a name="l00052"></a>00052 }
73<a name="l00053"></a>00053
74<a name="l00054"></a>00054 <span class="comment">/***************************************************************************/</span>
75<a name="l00055"></a><a class="code" href="../../d2/d71/classG4VInteractiveSession.html#7d8e39c22a5b6ec9a063630af4112665">00055</a> <span class="keywordtype">void</span> <a class="code" href="../../d2/d71/classG4VInteractiveSession.html#7d8e39c22a5b6ec9a063630af4112665">G4VInteractiveSession::AddInteractor</a> (G4String a_name,
76<a name="l00056"></a>00056                                            <a class="code" href="../../d0/db5/G4VInteractorManager_8hh.html#fa60e042bb88fb73a209c47c17490f94">G4Interactor</a> a_interactor)
77<a name="l00057"></a>00057 {
78<a name="l00058"></a>00058   <a class="code" href="../../d2/d71/classG4VInteractiveSession.html#666eac98c1d4d334daebd8e3c0e4acd4">interactors</a>[a_name] = a_interactor;
79<a name="l00059"></a>00059 }
80<a name="l00060"></a>00060
81<a name="l00061"></a>00061 <span class="comment">/***************************************************************************/</span>
82<a name="l00062"></a><a class="code" href="../../d2/d71/classG4VInteractiveSession.html#c7156d6e855e65b3fb63da31c5769305">00062</a> <a class="code" href="../../d0/db5/G4VInteractorManager_8hh.html#fa60e042bb88fb73a209c47c17490f94">G4Interactor</a> <a class="code" href="../../d2/d71/classG4VInteractiveSession.html#c7156d6e855e65b3fb63da31c5769305">G4VInteractiveSession::GetInteractor</a> (G4String a_name)
83<a name="l00063"></a>00063 {
84<a name="l00064"></a>00064   G4interactor_map::iterator it;
85<a name="l00065"></a>00065   <span class="keywordflow">if</span>((it=<a class="code" href="../../d2/d71/classG4VInteractiveSession.html#666eac98c1d4d334daebd8e3c0e4acd4">interactors</a>.find(a_name))==<a class="code" href="../../d2/d71/classG4VInteractiveSession.html#666eac98c1d4d334daebd8e3c0e4acd4">interactors</a>.end()) <span class="keywordflow">return</span> NULL;
86<a name="l00066"></a>00066   <span class="keywordflow">return</span> (*it).second; 
87<a name="l00067"></a>00067 }
88</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 22 10:26:04 2007 by&nbsp;
89<a href="http://www.doxygen.org/index.html">
90<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
91</body>
92</html>
Note: See TracBrowser for help on using the repository browser.