source: trunk/source/interfaces/html/classG4Qt.html @ 850

Last change on this file since 850 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: 17.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=iso-8859-1">
3<title>G4Qt class Reference</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&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
8<h1>G4Qt Class Reference</h1><code>#include &lt;<a class="el" href="G4Qt_8hh-source.html">G4Qt.hh</a>&gt;</code>
9<p>
10Inheritance diagram for G4Qt:<p><center><img src="classG4Qt__inherit__graph.png" border="0" usemap="#G4Qt__inherit__map" alt="Inheritance graph"></center>
11<map name="G4Qt__inherit__map">
12<area href="classG4VInteractorManager.html" shape="rect" coords="7,8,229,744" alt="">
13</map>
14<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for G4Qt:<p><center><img src="classG4Qt__coll__graph.png" border="0" usemap="#G4Qt__coll__map" alt="Collaboration graph"></center>
15<map name="G4Qt__coll__map">
16<area href="classG4VInteractorManager.html" shape="rect" coords="7,8,229,744" alt="">
17</map>
18<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classG4Qt-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
19<tr><td></td></tr>
20<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
21<tr><td class="memItemLeft" nowrap align=right valign=top>G4bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4Qt.html#a0">Inited</a> ()</td></tr>
22
23<tr><td class="memItemLeft" nowrap align=right valign=top>void *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4Qt.html#a1">GetEvent</a> ()</td></tr>
24
25<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4Qt.html#a2">FlushAndWaitExecution</a> ()</td></tr>
26
27<tr><td class="memItemLeft" nowrap align=right valign=top>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4Qt.html#a3">~G4Qt</a> ()</td></tr>
28
29<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
30<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classG4Qt.html">G4Qt</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4Qt.html#e0">getInstance</a> ()</td></tr>
31
32<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classG4Qt.html">G4Qt</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4Qt.html#e1">getInstance</a> (int, char **, char *)</td></tr>
33
34<tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr>
35<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4Qt.html#d0">G4Qt</a> (int, char **, char *)</td></tr>
36
37<tr><td colspan=2><br><h2>Static Private Attributes</h2></td></tr>
38<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classG4Qt.html">G4Qt</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4Qt.html#v0">instance</a> = NULL</td></tr>
39
40</table>
41<hr><h2>Constructor &amp; Destructor Documentation</h2>
42<a class="anchor" name="a3" doxytag="G4Qt::~G4Qt" ></a><p>
43<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
44  <tr>
45    <td class="mdRow">
46      <table cellpadding="0" cellspacing="0" border="0">
47        <tr>
48          <td class="md" nowrap valign="top"> G4Qt::~<a class="el" href="classG4Qt.html">G4Qt</a> </td>
49          <td class="md" valign="top">(&nbsp;</td>
50          <td class="mdname1" valign="top" nowrap>          </td>
51          <td class="md" valign="top">&nbsp;)&nbsp;</td>
52          <td class="md" nowrap><code> [virtual]</code></td>
53        </tr>
54
55      </table>
56    </td>
57  </tr>
58</table>
59<table cellspacing=5 cellpadding=0 border=0>
60  <tr>
61    <td>
62      &nbsp;
63    </td>
64    <td>
65
66<p>
67!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
68<p>
69Definition at line <a class="el" href="G4Qt_8cc-source.html#l00101">101</a> of file <a class="el" href="G4Qt_8cc-source.html">G4Qt.cc</a>.
70<p>
71References <a class="el" href="G4Qt_8cc-source.html#l00048">instance</a>.
72<p>
73<div class="fragment"><pre>00105 {
7400106   <span class="keywordflow">if</span>(<span class="keyword">this</span>==<a class="code" href="classG4Qt.html#v0">instance</a>) {
7500107     <a class="code" href="classG4Qt.html#v0">instance</a> = NULL;
7600108   }
7700109 }
78</pre></div>    </td>
79  </tr>
80</table>
81<a class="anchor" name="d0" doxytag="G4Qt::G4Qt" ></a><p>
82<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
83  <tr>
84    <td class="mdRow">
85      <table cellpadding="0" cellspacing="0" border="0">
86        <tr>
87          <td class="md" nowrap valign="top"> G4Qt::G4Qt </td>
88          <td class="md" valign="top">(&nbsp;</td>
89          <td class="md" nowrap valign="top">int&nbsp;</td>
90          <td class="mdname" nowrap> <em>a_argn</em>, </td>
91        </tr>
92        <tr>
93          <td></td>
94          <td></td>
95          <td class="md" nowrap>char **&nbsp;</td>
96          <td class="mdname" nowrap> <em>a_args</em>, </td>
97        </tr>
98        <tr>
99          <td></td>
100          <td></td>
101          <td class="md" nowrap>char *&nbsp;</td>
102          <td class="mdname" nowrap> <em>a_class</em></td>
103        </tr>
104        <tr>
105          <td></td>
106          <td class="md">)&nbsp;</td>
107          <td class="md" colspan="2"><code> [private]</code></td>
108        </tr>
109
110      </table>
111    </td>
112  </tr>
113</table>
114<table cellspacing=5 cellpadding=0 border=0>
115  <tr>
116    <td>
117      &nbsp;
118    </td>
119    <td>
120
121<p>
122!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
123<p>
124Definition at line <a class="el" href="G4Qt_8cc-source.html#l00079">79</a> of file <a class="el" href="G4Qt_8cc-source.html">G4Qt.cc</a>.
125<p>
126References <a class="el" href="G4Qt_8cc-source.html#l00050">QtInited</a>, <a class="el" href="classG4VInteractorManager.html#a2">G4VInteractorManager::SetArguments()</a>, and <a class="el" href="G4VInteractorManager_8cc-source.html#l00119">G4VInteractorManager::SetMainInteractor()</a>.
127<p>
128Referenced by <a class="el" href="G4Qt_8cc-source.html#l00065">getInstance()</a>.
129<p>
130<div class="fragment"><pre>00086 {
13100087   <span class="keywordflow">if</span>(<a class="code" href="G4Qt_8cc.html#a0">QtInited</a>==FALSE) {  <span class="comment">//Qt should be Inited once !</span>
13200088
13300089     <span class="keyword">new</span> QApplication (a_argn, a_args);
13400090
13500091     <span class="keywordflow">if</span>(qApp==NULL) {
13600092       G4cout        &lt;&lt; <span class="stringliteral">"G4Qt : Unable to init Qt."</span> &lt;&lt; G4endl;
13700093     }
13800094     <a class="code" href="G4Qt_8cc.html#a0">QtInited</a>  = TRUE;
13900095     <a class="code" href="classG4VInteractorManager.html#a4">SetMainInteractor</a> (qApp);
14000096   }
14100097   <a class="code" href="classG4VInteractorManager.html#a2">SetArguments</a>      (a_argn,a_args);
14200098   <span class="comment">//  AddDispatcher     ((G4DispatchFunction)XtDispatchEvent);</span>
14300099 }
144</pre></div>    </td>
145  </tr>
146</table>
147
148<p>
149Here is the call graph for this function:<p><center><img src="classG4Qt_d0_cgraph.png" border="0" usemap="#classG4Qt_d0_cgraph_map" alt=""></center>
150<map name="classG4Qt_d0_cgraph_map">
151<area href="classG4VInteractorManager.html#a2" shape="rect" coords="161,7,409,34" alt="">
152<area href="classG4VInteractorManager.html#a4" shape="rect" coords="150,58,419,85" alt="">
153</map>
154<hr><h2>Member Function Documentation</h2>
155<a class="anchor" name="a2" doxytag="G4Qt::FlushAndWaitExecution" ></a><p>
156<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
157  <tr>
158    <td class="mdRow">
159      <table cellpadding="0" cellspacing="0" border="0">
160        <tr>
161          <td class="md" nowrap valign="top"> void G4Qt::FlushAndWaitExecution </td>
162          <td class="md" valign="top">(&nbsp;</td>
163          <td class="mdname1" valign="top" nowrap>          </td>
164          <td class="md" valign="top">&nbsp;)&nbsp;</td>
165          <td class="md" nowrap><code> [virtual]</code></td>
166        </tr>
167
168      </table>
169    </td>
170  </tr>
171</table>
172<table cellspacing=5 cellpadding=0 border=0>
173  <tr>
174    <td>
175      &nbsp;
176    </td>
177    <td>
178
179<p>
180!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
181<p>
182Implements <a class="el" href="classG4VInteractorManager.html#a23">G4VInteractorManager</a>.
183<p>
184Definition at line <a class="el" href="G4Qt_8cc-source.html#l00137">137</a> of file <a class="el" href="G4Qt_8cc-source.html">G4Qt.cc</a>.
185<p>
186<div class="fragment"><pre>00141 {
18700142 <span class="comment">//FIXME</span>
18800143    G4cout        &lt;&lt; <span class="stringliteral">"G4Qt : Rien compris a cette fonction G4Qt::FlushAndWaitExecution."</span> &lt;&lt; G4endl;
18900144 <span class="comment">//  if(mainApp==NULL) return;</span>
19000145 <span class="comment">//  XSync(QtDisplay(mainApp),False);</span>
19100146 }
192</pre></div>    </td>
193  </tr>
194</table>
195<a class="anchor" name="a1" doxytag="G4Qt::GetEvent" ></a><p>
196<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
197  <tr>
198    <td class="mdRow">
199      <table cellpadding="0" cellspacing="0" border="0">
200        <tr>
201          <td class="md" nowrap valign="top"> void * G4Qt::GetEvent </td>
202          <td class="md" valign="top">(&nbsp;</td>
203          <td class="mdname1" valign="top" nowrap>          </td>
204          <td class="md" valign="top">&nbsp;)&nbsp;</td>
205          <td class="md" nowrap><code> [virtual]</code></td>
206        </tr>
207
208      </table>
209    </td>
210  </tr>
211</table>
212<table cellspacing=5 cellpadding=0 border=0>
213  <tr>
214    <td>
215      &nbsp;
216    </td>
217    <td>
218
219<p>
220!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
221<p>
222Implements <a class="el" href="classG4VInteractorManager.html#a22">G4VInteractorManager</a>.
223<p>
224Definition at line <a class="el" href="G4Qt_8cc-source.html#l00122">122</a> of file <a class="el" href="G4Qt_8cc-source.html">G4Qt.cc</a>.
225<p>
226Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00268">G4UIQt::SecondaryLoop()</a>.
227<p>
228<div class="fragment"><pre>00126 {
22900127 <span class="comment">//FIXME</span>
23000128 <span class="comment">//   G4cout        &lt;&lt; "G4Qt : Rien compris a cette fonction G4Qt::GetEvent." &lt;&lt; G4endl;</span>
23100129 <span class="comment">//  static XEvent  event;</span>
23200130 <span class="comment">//  if(appContext==NULL) return NULL;</span>
23300131 <span class="comment">//  if(mainApp==NULL) return NULL;</span>
23400132 <span class="comment">//  QtAppNextEvent (appContext, &amp;event);</span>
23500133 <span class="comment">//  return         &amp;event;</span>
23600134   printf(<span class="stringliteral">"*"</span>);
23700135 }
238</pre></div>    </td>
239  </tr>
240</table>
241<a class="anchor" name="e1" doxytag="G4Qt::getInstance" ></a><p>
242<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
243  <tr>
244    <td class="mdRow">
245      <table cellpadding="0" cellspacing="0" border="0">
246        <tr>
247          <td class="md" nowrap valign="top"> <a class="el" href="classG4Qt.html">G4Qt</a> * G4Qt::getInstance </td>
248          <td class="md" valign="top">(&nbsp;</td>
249          <td class="md" nowrap valign="top">int&nbsp;</td>
250          <td class="mdname" nowrap> <em>a_argn</em>, </td>
251        </tr>
252        <tr>
253          <td></td>
254          <td></td>
255          <td class="md" nowrap>char **&nbsp;</td>
256          <td class="mdname" nowrap> <em>a_args</em>, </td>
257        </tr>
258        <tr>
259          <td></td>
260          <td></td>
261          <td class="md" nowrap>char *&nbsp;</td>
262          <td class="mdname" nowrap> <em>a_class</em></td>
263        </tr>
264        <tr>
265          <td></td>
266          <td class="md">)&nbsp;</td>
267          <td class="md" colspan="2"><code> [static]</code></td>
268        </tr>
269
270      </table>
271    </td>
272  </tr>
273</table>
274<table cellspacing=5 cellpadding=0 border=0>
275  <tr>
276    <td>
277      &nbsp;
278    </td>
279    <td>
280
281<p>
282!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
283<p>
284Definition at line <a class="el" href="G4Qt_8cc-source.html#l00065">65</a> of file <a class="el" href="G4Qt_8cc-source.html">G4Qt.cc</a>.
285<p>
286References <a class="el" href="G4Qt_8cc-source.html#l00079">G4Qt()</a>, and <a class="el" href="G4Qt_8cc-source.html#l00048">instance</a>.
287<p>
288<div class="fragment"><pre>00072 {
28900073   <span class="keywordflow">if</span> (<a class="code" href="classG4Qt.html#v0">instance</a>==NULL) {
29000074     <a class="code" href="classG4Qt.html#v0">instance</a> = <span class="keyword">new</span> <a class="code" href="classG4Qt.html#d0">G4Qt</a>(a_argn,a_args,a_class);
29100075   }
29200076   <span class="keywordflow">return</span> <a class="code" href="classG4Qt.html#v0">instance</a>;
29300077 }
294</pre></div>    </td>
295  </tr>
296</table>
297
298<p>
299Here is the call graph for this function:<p><center><img src="classG4Qt_e1_cgraph.png" border="0" usemap="#classG4Qt_e1_cgraph_map" alt=""></center>
300<map name="classG4Qt_e1_cgraph_map">
301<area href="classG4Qt.html#d0" shape="rect" coords="186,33,280,59" alt="">
302<area href="classG4VInteractorManager.html#a2" shape="rect" coords="340,7,588,34" alt="">
303<area href="classG4VInteractorManager.html#a4" shape="rect" coords="329,58,598,85" alt="">
304</map>
305<a class="anchor" name="e0" doxytag="G4Qt::getInstance" ></a><p>
306<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
307  <tr>
308    <td class="mdRow">
309      <table cellpadding="0" cellspacing="0" border="0">
310        <tr>
311          <td class="md" nowrap valign="top"> <a class="el" href="classG4Qt.html">G4Qt</a> * G4Qt::getInstance </td>
312          <td class="md" valign="top">(&nbsp;</td>
313          <td class="mdname1" valign="top" nowrap>          </td>
314          <td class="md" valign="top">&nbsp;)&nbsp;</td>
315          <td class="md" nowrap><code> [static]</code></td>
316        </tr>
317
318      </table>
319    </td>
320  </tr>
321</table>
322<table cellspacing=5 cellpadding=0 border=0>
323  <tr>
324    <td>
325      &nbsp;
326    </td>
327    <td>
328
329<p>
330!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
331<p>
332Definition at line <a class="el" href="G4Qt_8cc-source.html#l00057">57</a> of file <a class="el" href="G4Qt_8cc-source.html">G4Qt.cc</a>.
333<p>
334Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt::G4UIQt()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00268">G4UIQt::SecondaryLoop()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00187">G4UIQt::SessionStart()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00229">G4UIQt::SessionTerminate()</a>.
335<p>
336<div class="fragment"><pre>00061 {
33700062   <span class="keywordflow">return</span> <a class="code" href="classG4Qt.html#e0">G4Qt::getInstance</a> (0,NULL,(<span class="keywordtype">char</span>*)<span class="stringliteral">"Geant4"</span>);
33800063 }
339</pre></div>    </td>
340  </tr>
341</table>
342<a class="anchor" name="a0" doxytag="G4Qt::Inited" ></a><p>
343<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
344  <tr>
345    <td class="mdRow">
346      <table cellpadding="0" cellspacing="0" border="0">
347        <tr>
348          <td class="md" nowrap valign="top"> G4bool G4Qt::Inited </td>
349          <td class="md" valign="top">(&nbsp;</td>
350          <td class="mdname1" valign="top" nowrap>          </td>
351          <td class="md" valign="top">&nbsp;)&nbsp;</td>
352          <td class="md" nowrap><code> [virtual]</code></td>
353        </tr>
354
355      </table>
356    </td>
357  </tr>
358</table>
359<table cellspacing=5 cellpadding=0 border=0>
360  <tr>
361    <td>
362      &nbsp;
363    </td>
364    <td>
365
366<p>
367!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
368<p>
369Implements <a class="el" href="classG4VInteractorManager.html#a21">G4VInteractorManager</a>.
370<p>
371Definition at line <a class="el" href="G4Qt_8cc-source.html#l00111">111</a> of file <a class="el" href="G4Qt_8cc-source.html">G4Qt.cc</a>.
372<p>
373References <a class="el" href="G4Qt_8cc-source.html#l00050">QtInited</a>.
374<p>
375<div class="fragment"><pre>00115 {
37600116   <span class="keywordflow">return</span> <a class="code" href="G4Qt_8cc.html#a0">QtInited</a>;
37700117 }
378</pre></div>    </td>
379  </tr>
380</table>
381<hr><h2>Member Data Documentation</h2>
382<a class="anchor" name="v0" doxytag="G4Qt::instance" ></a><p>
383<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
384  <tr>
385    <td class="mdRow">
386      <table cellpadding="0" cellspacing="0" border="0">
387        <tr>
388          <td class="md" nowrap valign="top"> <a class="el" href="classG4Qt.html">G4Qt</a> * <a class="el" href="classG4Qt.html#v0">G4Qt::instance</a> = NULL<code> [static, private]</code>
389      </table>
390    </td>
391  </tr>
392</table>
393<table cellspacing=5 cellpadding=0 border=0>
394  <tr>
395    <td>
396      &nbsp;
397    </td>
398    <td>
399
400<p>
401
402<p>
403Definition at line <a class="el" href="G4Qt_8cc-source.html#l00048">48</a> of file <a class="el" href="G4Qt_8cc-source.html">G4Qt.cc</a>.
404<p>
405Referenced by <a class="el" href="G4Qt_8cc-source.html#l00065">getInstance()</a>, and <a class="el" href="G4Qt_8cc-source.html#l00101">~G4Qt()</a>.    </td>
406  </tr>
407</table>
408<hr>The documentation for this class was generated from the following files:<ul>
409<li><a class="el" href="G4Qt_8hh-source.html">G4Qt.hh</a><li><a class="el" href="G4Qt_8cc-source.html">G4Qt.cc</a></ul>
410<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 22 11:07:07 2007 by
411<a href="http://www.doxygen.org/index.html">
412<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
413</a>1.3.4 </small></address>
414</body>
415</html>
Note: See TracBrowser for help on using the repository browser.