| [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>G4Xt 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 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>G4Xt Class Reference</h1><code>#include <<a class="el" href="G4Xt_8hh-source.html">G4Xt.hh</a>></code>
|
|---|
| 9 | <p>
|
|---|
| 10 | Inheritance diagram for G4Xt:<p><center><img src="classG4Xt__inherit__graph.png" border="0" usemap="#G4Xt__inherit__map" alt="Inheritance graph"></center>
|
|---|
| 11 | <map name="G4Xt__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 G4Xt:<p><center><img src="classG4Xt__coll__graph.png" border="0" usemap="#G4Xt__coll__map" alt="Collaboration graph"></center>
|
|---|
| 15 | <map name="G4Xt__coll__map">
|
|---|
| 16 | <area href="classG4VInteractorManager.html" shape="rect" coords="8,8,229,744" alt="">
|
|---|
| 17 | </map>
|
|---|
| 18 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classG4Xt-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>void </td><td class="memItemRight" valign=bottom><a class="el" href="classG4Xt.html#a0">PutStringInResourceDatabase</a> (char *)</td></tr>
|
|---|
| 22 |
|
|---|
| 23 | <tr><td class="memItemLeft" nowrap align=right valign=top>G4bool </td><td class="memItemRight" valign=bottom><a class="el" href="classG4Xt.html#a1">Inited</a> ()</td></tr>
|
|---|
| 24 |
|
|---|
| 25 | <tr><td class="memItemLeft" nowrap align=right valign=top>void * </td><td class="memItemRight" valign=bottom><a class="el" href="classG4Xt.html#a2">GetEvent</a> ()</td></tr>
|
|---|
| 26 |
|
|---|
| 27 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classG4Xt.html#a3">FlushAndWaitExecution</a> ()</td></tr>
|
|---|
| 28 |
|
|---|
| 29 | <tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="classG4Xt.html#a4">~G4Xt</a> ()</td></tr>
|
|---|
| 30 |
|
|---|
| 31 | <tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
|
|---|
| 32 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classG4Xt.html">G4Xt</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classG4Xt.html#e0">getInstance</a> ()</td></tr>
|
|---|
| 33 |
|
|---|
| 34 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classG4Xt.html">G4Xt</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classG4Xt.html#e1">getInstance</a> (int, char **, char *)</td></tr>
|
|---|
| 35 |
|
|---|
| 36 | <tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr>
|
|---|
| 37 | <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classG4Xt.html#d0">G4Xt</a> (int, char **, char *)</td></tr>
|
|---|
| 38 |
|
|---|
| 39 | <tr><td colspan=2><br><h2>Static Private Attributes</h2></td></tr>
|
|---|
| 40 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classG4Xt.html">G4Xt</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classG4Xt.html#v0">instance</a> = NULL</td></tr>
|
|---|
| 41 |
|
|---|
| 42 | </table>
|
|---|
| 43 | <hr><h2>Constructor & Destructor Documentation</h2>
|
|---|
| 44 | <a class="anchor" name="a4" doxytag="G4Xt::~G4Xt" ></a><p>
|
|---|
| 45 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|---|
| 46 | <tr>
|
|---|
| 47 | <td class="mdRow">
|
|---|
| 48 | <table cellpadding="0" cellspacing="0" border="0">
|
|---|
| 49 | <tr>
|
|---|
| 50 | <td class="md" nowrap valign="top"> G4Xt::~<a class="el" href="classG4Xt.html">G4Xt</a> </td>
|
|---|
| 51 | <td class="md" valign="top">( </td>
|
|---|
| 52 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 53 | <td class="md" valign="top"> ) </td>
|
|---|
| 54 | <td class="md" nowrap><code> [virtual]</code></td>
|
|---|
| 55 | </tr>
|
|---|
| 56 |
|
|---|
| 57 | </table>
|
|---|
| 58 | </td>
|
|---|
| 59 | </tr>
|
|---|
| 60 | </table>
|
|---|
| 61 | <table cellspacing=5 cellpadding=0 border=0>
|
|---|
| 62 | <tr>
|
|---|
| 63 | <td>
|
|---|
| 64 |
|
|---|
| 65 | </td>
|
|---|
| 66 | <td>
|
|---|
| 67 |
|
|---|
| 68 | <p>
|
|---|
| 69 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|---|
| 70 | <p>
|
|---|
| 71 | Definition at line <a class="el" href="G4Xt_8cc-source.html#l00134">134</a> of file <a class="el" href="G4Xt_8cc-source.html">G4Xt.cc</a>.
|
|---|
| 72 | <p>
|
|---|
| 73 | References <a class="el" href="G4Xt_8cc-source.html#l00051">instance</a>.
|
|---|
| 74 | <p>
|
|---|
| 75 | <div class="fragment"><pre>00138 {
|
|---|
| 76 | 00139 <span class="keywordflow">if</span>(<span class="keyword">this</span>==<a class="code" href="classG4Xt.html#v0">instance</a>) {
|
|---|
| 77 | 00140 <a class="code" href="classG4Xt.html#v0">instance</a> = NULL;
|
|---|
| 78 | 00141 }
|
|---|
| 79 | 00142 }
|
|---|
| 80 | </pre></div> </td>
|
|---|
| 81 | </tr>
|
|---|
| 82 | </table>
|
|---|
| 83 | <a class="anchor" name="d0" doxytag="G4Xt::G4Xt" ></a><p>
|
|---|
| 84 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|---|
| 85 | <tr>
|
|---|
| 86 | <td class="mdRow">
|
|---|
| 87 | <table cellpadding="0" cellspacing="0" border="0">
|
|---|
| 88 | <tr>
|
|---|
| 89 | <td class="md" nowrap valign="top"> G4Xt::G4Xt </td>
|
|---|
| 90 | <td class="md" valign="top">( </td>
|
|---|
| 91 | <td class="md" nowrap valign="top">int </td>
|
|---|
| 92 | <td class="mdname" nowrap> <em>a_argn</em>, </td>
|
|---|
| 93 | </tr>
|
|---|
| 94 | <tr>
|
|---|
| 95 | <td></td>
|
|---|
| 96 | <td></td>
|
|---|
| 97 | <td class="md" nowrap>char ** </td>
|
|---|
| 98 | <td class="mdname" nowrap> <em>a_args</em>, </td>
|
|---|
| 99 | </tr>
|
|---|
| 100 | <tr>
|
|---|
| 101 | <td></td>
|
|---|
| 102 | <td></td>
|
|---|
| 103 | <td class="md" nowrap>char * </td>
|
|---|
| 104 | <td class="mdname" nowrap> <em>a_class</em></td>
|
|---|
| 105 | </tr>
|
|---|
| 106 | <tr>
|
|---|
| 107 | <td></td>
|
|---|
| 108 | <td class="md">) </td>
|
|---|
| 109 | <td class="md" colspan="2"><code> [private]</code></td>
|
|---|
| 110 | </tr>
|
|---|
| 111 |
|
|---|
| 112 | </table>
|
|---|
| 113 | </td>
|
|---|
| 114 | </tr>
|
|---|
| 115 | </table>
|
|---|
| 116 | <table cellspacing=5 cellpadding=0 border=0>
|
|---|
| 117 | <tr>
|
|---|
| 118 | <td>
|
|---|
| 119 |
|
|---|
| 120 | </td>
|
|---|
| 121 | <td>
|
|---|
| 122 |
|
|---|
| 123 | <p>
|
|---|
| 124 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|---|
| 125 | <p>
|
|---|
| 126 | Definition at line <a class="el" href="G4Xt_8cc-source.html#l00081">81</a> of file <a class="el" href="G4Xt_8cc-source.html">G4Xt.cc</a>.
|
|---|
| 127 | <p>
|
|---|
| 128 | References <a class="el" href="G4VInteractorManager_8cc-source.html#l00152">G4VInteractorManager::AddDispatcher()</a>, <a class="el" href="G4Xt_8cc-source.html#l00056">appContext</a>, <a class="el" href="G4Xt_8cc-source.html#l00054">argn</a>, <a class="el" href="G4Xt_8cc-source.html#l00055">args</a>, <a class="el" href="G4VInteractorManager_8hh-source.html#l00039">G4DispatchFunction</a>, <a class="el" href="classG4VInteractorManager.html#a2">G4VInteractorManager::SetArguments()</a>, <a class="el" href="G4VInteractorManager_8cc-source.html#l00119">G4VInteractorManager::SetMainInteractor()</a>, <a class="el" href="G4Xt_8cc-source.html#l00057">topWidget</a>, and <a class="el" href="G4Xt_8cc-source.html#l00053">XtInited</a>.
|
|---|
| 129 | <p>
|
|---|
| 130 | Referenced by <a class="el" href="G4Xt_8cc-source.html#l00067">getInstance()</a>.
|
|---|
| 131 | <p>
|
|---|
| 132 | <div class="fragment"><pre>00088 {
|
|---|
| 133 | 00089 <span class="keywordflow">if</span>(<a class="code" href="G4Xt_8cc.html#a0">XtInited</a>==FALSE) { <span class="comment">//Xt should be Inited once !</span>
|
|---|
| 134 | 00090 <span class="keywordflow">if</span>(a_argn!=0) { <span class="comment">//Save args.</span>
|
|---|
| 135 | 00091 <a class="code" href="G4Xt_8cc.html#a2">args</a> = (<span class="keywordtype">char</span>**)malloc(a_argn * <span class="keyword">sizeof</span>(<span class="keywordtype">char</span>*));
|
|---|
| 136 | 00092 <span class="keywordflow">if</span>(<a class="code" href="G4Xt_8cc.html#a2">args</a>!=NULL) {
|
|---|
| 137 | 00093 <a class="code" href="G4Xt_8cc.html#a1">argn</a> = a_argn;
|
|---|
| 138 | 00094 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> argi=0;argi<a_argn;argi++) {
|
|---|
| 139 | 00095 <a class="code" href="G4Xt_8cc.html#a2">args</a>[argi] = (<span class="keywordtype">char</span>*)NewString (a_args[argi]);
|
|---|
| 140 | 00096 }
|
|---|
| 141 | 00097 }
|
|---|
| 142 | 00098 }
|
|---|
| 143 | 00099 <span class="preprocessor">#if XtSpecificationRelease == 4</span>
|
|---|
| 144 | 00100 <span class="preprocessor"></span> Cardinal narg;
|
|---|
| 145 | 00101 narg = (Cardinal)a_argn;
|
|---|
| 146 | 00102 <span class="preprocessor">#else</span>
|
|---|
| 147 | 00103 <span class="preprocessor"></span> <span class="keywordtype">int</span> narg;
|
|---|
| 148 | 00104 narg = a_argn;
|
|---|
| 149 | 00105 <span class="preprocessor">#endif</span>
|
|---|
| 150 | 00106 <span class="preprocessor"></span> Arg xargs[1];
|
|---|
| 151 | 00107 XtSetArg (xargs[0],XtNgeometry,<span class="stringliteral">"100x100"</span>);
|
|---|
| 152 | 00108 <a class="code" href="G4Xt_8cc.html#a4">topWidget</a> = XtAppInitialize (&appContext,a_class,
|
|---|
| 153 | 00109 NULL,(Cardinal)0,
|
|---|
| 154 | 00110 &narg,a_args,NULL,
|
|---|
| 155 | 00111 xargs,1);
|
|---|
| 156 | 00112 <span class="keywordflow">if</span>(<a class="code" href="G4Xt_8cc.html#a4">topWidget</a>==NULL) {
|
|---|
| 157 | 00113 G4cout << <span class="stringliteral">"G4Xt : Unable to init Xt."</span> << G4endl;
|
|---|
| 158 | 00114 }
|
|---|
| 159 | 00115 <span class="comment">// Restore a_args. XtAppInitialize corrupts the given ones !!!</span>
|
|---|
| 160 | 00116 <span class="keywordflow">if</span>( (a_argn!=0) && (<a class="code" href="G4Xt_8cc.html#a2">args</a>!=NULL)) {
|
|---|
| 161 | 00117 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> argi=0;argi<a_argn;argi++) {
|
|---|
| 162 | 00118 <span class="keywordflow">if</span>(<a class="code" href="G4Xt_8cc.html#a2">args</a>[argi]!=NULL)
|
|---|
| 163 | 00119 strcpy(a_args[argi],args[argi]);
|
|---|
| 164 | 00120 <span class="keywordflow">else</span>
|
|---|
| 165 | 00121 a_args[argi] = NULL;
|
|---|
| 166 | 00122 }
|
|---|
| 167 | 00123 }
|
|---|
| 168 | 00124 <span class="comment">// If topWidget not realized, pbs with Inventor shells.</span>
|
|---|
| 169 | 00125 XtSetMappedWhenManaged (topWidget,False);
|
|---|
| 170 | 00126 XtRealizeWidget (topWidget);
|
|---|
| 171 | 00127 <a class="code" href="G4Xt_8cc.html#a0">XtInited</a> = TRUE;
|
|---|
| 172 | 00128 }
|
|---|
| 173 | 00129 <a class="code" href="classG4VInteractorManager.html#a2">SetArguments</a> (argn,args);
|
|---|
| 174 | 00130 <a class="code" href="classG4VInteractorManager.html#a4">SetMainInteractor</a> (topWidget);
|
|---|
| 175 | 00131 <a class="code" href="classG4VInteractorManager.html#a6">AddDispatcher</a> ((<a class="code" href="G4VInteractorManager_8hh.html#a1">G4DispatchFunction</a>)XtDispatchEvent);
|
|---|
| 176 | 00132 }
|
|---|
| 177 | </pre></div> </td>
|
|---|
| 178 | </tr>
|
|---|
| 179 | </table>
|
|---|
| 180 |
|
|---|
| 181 | <p>
|
|---|
| 182 | Here is the call graph for this function:<p><center><img src="classG4Xt_d0_cgraph.png" border="0" usemap="#classG4Xt_d0_cgraph_map" alt=""></center>
|
|---|
| 183 | <map name="classG4Xt_d0_cgraph_map">
|
|---|
| 184 | <area href="classG4VInteractorManager.html#a6" shape="rect" coords="156,8,409,34" alt="">
|
|---|
| 185 | <area href="classG4VInteractorManager.html#a2" shape="rect" coords="158,58,406,85" alt="">
|
|---|
| 186 | <area href="classG4VInteractorManager.html#a4" shape="rect" coords="148,109,417,136" alt="">
|
|---|
| 187 | </map>
|
|---|
| 188 | <hr><h2>Member Function Documentation</h2>
|
|---|
| 189 | <a class="anchor" name="a3" doxytag="G4Xt::FlushAndWaitExecution" ></a><p>
|
|---|
| 190 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|---|
| 191 | <tr>
|
|---|
| 192 | <td class="mdRow">
|
|---|
| 193 | <table cellpadding="0" cellspacing="0" border="0">
|
|---|
| 194 | <tr>
|
|---|
| 195 | <td class="md" nowrap valign="top"> void G4Xt::FlushAndWaitExecution </td>
|
|---|
| 196 | <td class="md" valign="top">( </td>
|
|---|
| 197 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 198 | <td class="md" valign="top"> ) </td>
|
|---|
| 199 | <td class="md" nowrap><code> [virtual]</code></td>
|
|---|
| 200 | </tr>
|
|---|
| 201 |
|
|---|
| 202 | </table>
|
|---|
| 203 | </td>
|
|---|
| 204 | </tr>
|
|---|
| 205 | </table>
|
|---|
| 206 | <table cellspacing=5 cellpadding=0 border=0>
|
|---|
| 207 | <tr>
|
|---|
| 208 | <td>
|
|---|
| 209 |
|
|---|
| 210 | </td>
|
|---|
| 211 | <td>
|
|---|
| 212 |
|
|---|
| 213 | <p>
|
|---|
| 214 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|---|
| 215 | <p>
|
|---|
| 216 | Implements <a class="el" href="classG4VInteractorManager.html#a23">G4VInteractorManager</a>.
|
|---|
| 217 | <p>
|
|---|
| 218 | Definition at line <a class="el" href="G4Xt_8cc-source.html#l00183">183</a> of file <a class="el" href="G4Xt_8cc-source.html">G4Xt.cc</a>.
|
|---|
| 219 | <p>
|
|---|
| 220 | References <a class="el" href="G4Xt_8cc-source.html#l00057">topWidget</a>.
|
|---|
| 221 | <p>
|
|---|
| 222 | <div class="fragment"><pre>00187 {
|
|---|
| 223 | 00188 <span class="keywordflow">if</span>(<a class="code" href="G4Xt_8cc.html#a4">topWidget</a>==NULL) <span class="keywordflow">return</span>;
|
|---|
| 224 | 00189 XSync(XtDisplay(topWidget),False);
|
|---|
| 225 | 00190 }
|
|---|
| 226 | </pre></div> </td>
|
|---|
| 227 | </tr>
|
|---|
| 228 | </table>
|
|---|
| 229 | <a class="anchor" name="a2" doxytag="G4Xt::GetEvent" ></a><p>
|
|---|
| 230 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|---|
| 231 | <tr>
|
|---|
| 232 | <td class="mdRow">
|
|---|
| 233 | <table cellpadding="0" cellspacing="0" border="0">
|
|---|
| 234 | <tr>
|
|---|
| 235 | <td class="md" nowrap valign="top"> void * G4Xt::GetEvent </td>
|
|---|
| 236 | <td class="md" valign="top">( </td>
|
|---|
| 237 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 238 | <td class="md" valign="top"> ) </td>
|
|---|
| 239 | <td class="md" nowrap><code> [virtual]</code></td>
|
|---|
| 240 | </tr>
|
|---|
| 241 |
|
|---|
| 242 | </table>
|
|---|
| 243 | </td>
|
|---|
| 244 | </tr>
|
|---|
| 245 | </table>
|
|---|
| 246 | <table cellspacing=5 cellpadding=0 border=0>
|
|---|
| 247 | <tr>
|
|---|
| 248 | <td>
|
|---|
| 249 |
|
|---|
| 250 | </td>
|
|---|
| 251 | <td>
|
|---|
| 252 |
|
|---|
| 253 | <p>
|
|---|
| 254 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|---|
| 255 | <p>
|
|---|
| 256 | Implements <a class="el" href="classG4VInteractorManager.html#a22">G4VInteractorManager</a>.
|
|---|
| 257 | <p>
|
|---|
| 258 | Definition at line <a class="el" href="G4Xt_8cc-source.html#l00152">152</a> of file <a class="el" href="G4Xt_8cc-source.html">G4Xt.cc</a>.
|
|---|
| 259 | <p>
|
|---|
| 260 | References <a class="el" href="G4Xt_8cc-source.html#l00056">appContext</a>, and <a class="el" href="G4Xt_8cc-source.html#l00057">topWidget</a>.
|
|---|
| 261 | <p>
|
|---|
| 262 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00272">G4UIXm::GetHelpChoice()</a>, <a class="el" href="G4UIXaw_8cc-source.html#l00170">G4UIXaw::GetHelpChoice()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00235">G4UIXm::SecondaryLoop()</a>, <a class="el" href="G4UIXaw_8cc-source.html#l00145">G4UIXaw::SecondaryLoop()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00179">G4UIXm::SessionStart()</a>, and <a class="el" href="G4UIXaw_8cc-source.html#l00093">G4UIXaw::SessionStart()</a>.
|
|---|
| 263 | <p>
|
|---|
| 264 | <div class="fragment"><pre>00156 {
|
|---|
| 265 | 00157 <span class="keyword">static</span> XEvent event;
|
|---|
| 266 | 00158 <span class="keywordflow">if</span>(<a class="code" href="G4Xt_8cc.html#a3">appContext</a>==NULL) <span class="keywordflow">return</span> NULL;
|
|---|
| 267 | 00159 <span class="keywordflow">if</span>(<a class="code" href="G4Xt_8cc.html#a4">topWidget</a>==NULL) <span class="keywordflow">return</span> NULL;
|
|---|
| 268 | 00160 XtAppNextEvent (appContext, &event);
|
|---|
| 269 | 00161 <span class="keywordflow">return</span> &event;
|
|---|
| 270 | 00162 }
|
|---|
| 271 | </pre></div> </td>
|
|---|
| 272 | </tr>
|
|---|
| 273 | </table>
|
|---|
| 274 | <a class="anchor" name="e1" doxytag="G4Xt::getInstance" ></a><p>
|
|---|
| 275 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|---|
| 276 | <tr>
|
|---|
| 277 | <td class="mdRow">
|
|---|
| 278 | <table cellpadding="0" cellspacing="0" border="0">
|
|---|
| 279 | <tr>
|
|---|
| 280 | <td class="md" nowrap valign="top"> <a class="el" href="classG4Xt.html">G4Xt</a> * G4Xt::getInstance </td>
|
|---|
| 281 | <td class="md" valign="top">( </td>
|
|---|
| 282 | <td class="md" nowrap valign="top">int </td>
|
|---|
| 283 | <td class="mdname" nowrap> <em>a_argn</em>, </td>
|
|---|
| 284 | </tr>
|
|---|
| 285 | <tr>
|
|---|
| 286 | <td></td>
|
|---|
| 287 | <td></td>
|
|---|
| 288 | <td class="md" nowrap>char ** </td>
|
|---|
| 289 | <td class="mdname" nowrap> <em>a_args</em>, </td>
|
|---|
| 290 | </tr>
|
|---|
| 291 | <tr>
|
|---|
| 292 | <td></td>
|
|---|
| 293 | <td></td>
|
|---|
| 294 | <td class="md" nowrap>char * </td>
|
|---|
| 295 | <td class="mdname" nowrap> <em>a_class</em></td>
|
|---|
| 296 | </tr>
|
|---|
| 297 | <tr>
|
|---|
| 298 | <td></td>
|
|---|
| 299 | <td class="md">) </td>
|
|---|
| 300 | <td class="md" colspan="2"><code> [static]</code></td>
|
|---|
| 301 | </tr>
|
|---|
| 302 |
|
|---|
| 303 | </table>
|
|---|
| 304 | </td>
|
|---|
| 305 | </tr>
|
|---|
| 306 | </table>
|
|---|
| 307 | <table cellspacing=5 cellpadding=0 border=0>
|
|---|
| 308 | <tr>
|
|---|
| 309 | <td>
|
|---|
| 310 |
|
|---|
| 311 | </td>
|
|---|
| 312 | <td>
|
|---|
| 313 |
|
|---|
| 314 | <p>
|
|---|
| 315 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|---|
| 316 | <p>
|
|---|
| 317 | Definition at line <a class="el" href="G4Xt_8cc-source.html#l00067">67</a> of file <a class="el" href="G4Xt_8cc-source.html">G4Xt.cc</a>.
|
|---|
| 318 | <p>
|
|---|
| 319 | References <a class="el" href="G4Xt_8cc-source.html#l00081">G4Xt()</a>, and <a class="el" href="G4Xt_8cc-source.html#l00051">instance</a>.
|
|---|
| 320 | <p>
|
|---|
| 321 | <div class="fragment"><pre>00074 {
|
|---|
| 322 | 00075 <span class="keywordflow">if</span> (<a class="code" href="classG4Xt.html#v0">instance</a>==NULL) {
|
|---|
| 323 | 00076 <a class="code" href="classG4Xt.html#v0">instance</a> = <span class="keyword">new</span> <a class="code" href="classG4Xt.html#d0">G4Xt</a>(a_argn,a_args,a_class);
|
|---|
| 324 | 00077 }
|
|---|
| 325 | 00078 <span class="keywordflow">return</span> <a class="code" href="classG4Xt.html#v0">instance</a>;
|
|---|
| 326 | 00079 }
|
|---|
| 327 | </pre></div> </td>
|
|---|
| 328 | </tr>
|
|---|
| 329 | </table>
|
|---|
| 330 |
|
|---|
| 331 | <p>
|
|---|
| 332 | Here is the call graph for this function:<p><center><img src="classG4Xt_e1_cgraph.png" border="0" usemap="#classG4Xt_e1_cgraph_map" alt=""></center>
|
|---|
| 333 | <map name="classG4Xt_e1_cgraph_map">
|
|---|
| 334 | <area href="classG4Xt.html#d0" shape="rect" coords="185,58,273,85" alt="">
|
|---|
| 335 | <area href="classG4VInteractorManager.html#a6" shape="rect" coords="332,8,585,34" alt="">
|
|---|
| 336 | <area href="classG4VInteractorManager.html#a2" shape="rect" coords="334,58,582,85" alt="">
|
|---|
| 337 | <area href="classG4VInteractorManager.html#a4" shape="rect" coords="324,109,593,136" alt="">
|
|---|
| 338 | </map>
|
|---|
| 339 | <a class="anchor" name="e0" doxytag="G4Xt::getInstance" ></a><p>
|
|---|
| 340 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|---|
| 341 | <tr>
|
|---|
| 342 | <td class="mdRow">
|
|---|
| 343 | <table cellpadding="0" cellspacing="0" border="0">
|
|---|
| 344 | <tr>
|
|---|
| 345 | <td class="md" nowrap valign="top"> <a class="el" href="classG4Xt.html">G4Xt</a> * G4Xt::getInstance </td>
|
|---|
| 346 | <td class="md" valign="top">( </td>
|
|---|
| 347 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 348 | <td class="md" valign="top"> ) </td>
|
|---|
| 349 | <td class="md" nowrap><code> [static]</code></td>
|
|---|
| 350 | </tr>
|
|---|
| 351 |
|
|---|
| 352 | </table>
|
|---|
| 353 | </td>
|
|---|
| 354 | </tr>
|
|---|
| 355 | </table>
|
|---|
| 356 | <table cellspacing=5 cellpadding=0 border=0>
|
|---|
| 357 | <tr>
|
|---|
| 358 | <td>
|
|---|
| 359 |
|
|---|
| 360 | </td>
|
|---|
| 361 | <td>
|
|---|
| 362 |
|
|---|
| 363 | <p>
|
|---|
| 364 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|---|
| 365 | <p>
|
|---|
| 366 | Definition at line <a class="el" href="G4Xt_8cc-source.html#l00059">59</a> of file <a class="el" href="G4Xt_8cc-source.html">G4Xt.cc</a>.
|
|---|
| 367 | <p>
|
|---|
| 368 | Referenced by <a class="el" href="G4UIXaw_8cc-source.html#l00056">G4UIXaw::G4UIXaw()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00074">G4UIXm::G4UIXm()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00272">G4UIXm::GetHelpChoice()</a>, <a class="el" href="G4UIXaw_8cc-source.html#l00170">G4UIXaw::GetHelpChoice()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00235">G4UIXm::SecondaryLoop()</a>, <a class="el" href="G4UIXaw_8cc-source.html#l00145">G4UIXaw::SecondaryLoop()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00179">G4UIXm::SessionStart()</a>, and <a class="el" href="G4UIXaw_8cc-source.html#l00093">G4UIXaw::SessionStart()</a>.
|
|---|
| 369 | <p>
|
|---|
| 370 | <div class="fragment"><pre>00063 {
|
|---|
| 371 | 00064 <span class="keywordflow">return</span> <a class="code" href="classG4Xt.html#e0">G4Xt::getInstance</a> (0,NULL,(<span class="keywordtype">char</span>*)<span class="stringliteral">"Geant4"</span>);
|
|---|
| 372 | 00065 }
|
|---|
| 373 | </pre></div> </td>
|
|---|
| 374 | </tr>
|
|---|
| 375 | </table>
|
|---|
| 376 | <a class="anchor" name="a1" doxytag="G4Xt::Inited" ></a><p>
|
|---|
| 377 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|---|
| 378 | <tr>
|
|---|
| 379 | <td class="mdRow">
|
|---|
| 380 | <table cellpadding="0" cellspacing="0" border="0">
|
|---|
| 381 | <tr>
|
|---|
| 382 | <td class="md" nowrap valign="top"> G4bool G4Xt::Inited </td>
|
|---|
| 383 | <td class="md" valign="top">( </td>
|
|---|
| 384 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 385 | <td class="md" valign="top"> ) </td>
|
|---|
| 386 | <td class="md" nowrap><code> [virtual]</code></td>
|
|---|
| 387 | </tr>
|
|---|
| 388 |
|
|---|
| 389 | </table>
|
|---|
| 390 | </td>
|
|---|
| 391 | </tr>
|
|---|
| 392 | </table>
|
|---|
| 393 | <table cellspacing=5 cellpadding=0 border=0>
|
|---|
| 394 | <tr>
|
|---|
| 395 | <td>
|
|---|
| 396 |
|
|---|
| 397 | </td>
|
|---|
| 398 | <td>
|
|---|
| 399 |
|
|---|
| 400 | <p>
|
|---|
| 401 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|---|
| 402 | <p>
|
|---|
| 403 | Implements <a class="el" href="classG4VInteractorManager.html#a21">G4VInteractorManager</a>.
|
|---|
| 404 | <p>
|
|---|
| 405 | Definition at line <a class="el" href="G4Xt_8cc-source.html#l00144">144</a> of file <a class="el" href="G4Xt_8cc-source.html">G4Xt.cc</a>.
|
|---|
| 406 | <p>
|
|---|
| 407 | References <a class="el" href="G4Xt_8cc-source.html#l00053">XtInited</a>.
|
|---|
| 408 | <p>
|
|---|
| 409 | <div class="fragment"><pre>00148 {
|
|---|
| 410 | 00149 <span class="keywordflow">return</span> <a class="code" href="G4Xt_8cc.html#a0">XtInited</a>;
|
|---|
| 411 | 00150 }
|
|---|
| 412 | </pre></div> </td>
|
|---|
| 413 | </tr>
|
|---|
| 414 | </table>
|
|---|
| 415 | <a class="anchor" name="a0" doxytag="G4Xt::PutStringInResourceDatabase" ></a><p>
|
|---|
| 416 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|---|
| 417 | <tr>
|
|---|
| 418 | <td class="mdRow">
|
|---|
| 419 | <table cellpadding="0" cellspacing="0" border="0">
|
|---|
| 420 | <tr>
|
|---|
| 421 | <td class="md" nowrap valign="top"> void G4Xt::PutStringInResourceDatabase </td>
|
|---|
| 422 | <td class="md" valign="top">( </td>
|
|---|
| 423 | <td class="md" nowrap valign="top">char * </td>
|
|---|
| 424 | <td class="mdname1" valign="top" nowrap> <em>a_string</em> </td>
|
|---|
| 425 | <td class="md" valign="top"> ) </td>
|
|---|
| 426 | <td class="md" nowrap></td>
|
|---|
| 427 | </tr>
|
|---|
| 428 |
|
|---|
| 429 | </table>
|
|---|
| 430 | </td>
|
|---|
| 431 | </tr>
|
|---|
| 432 | </table>
|
|---|
| 433 | <table cellspacing=5 cellpadding=0 border=0>
|
|---|
| 434 | <tr>
|
|---|
| 435 | <td>
|
|---|
| 436 |
|
|---|
| 437 | </td>
|
|---|
| 438 | <td>
|
|---|
| 439 |
|
|---|
| 440 | <p>
|
|---|
| 441 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|---|
| 442 | <p>
|
|---|
| 443 | Reimplemented from <a class="el" href="classG4VInteractorManager.html#a20">G4VInteractorManager</a>.
|
|---|
| 444 | <p>
|
|---|
| 445 | Definition at line <a class="el" href="G4Xt_8cc-source.html#l00164">164</a> of file <a class="el" href="G4Xt_8cc-source.html">G4Xt.cc</a>.
|
|---|
| 446 | <p>
|
|---|
| 447 | References <a class="el" href="G4Xt_8cc-source.html#l00057">topWidget</a>.
|
|---|
| 448 | <p>
|
|---|
| 449 | <div class="fragment"><pre>00169 {
|
|---|
| 450 | 00170 <span class="keywordflow">if</span>(<a class="code" href="G4Xt_8cc.html#a4">topWidget</a>==NULL) <span class="keywordflow">return</span>;
|
|---|
| 451 | 00171 <span class="keywordflow">if</span>(a_string==NULL) <span class="keywordflow">return</span>;
|
|---|
| 452 | 00172 Display* dpy = XtDisplay(topWidget);
|
|---|
| 453 | 00173 XrmDatabase dbres = XrmGetStringDatabase (a_string);
|
|---|
| 454 | 00174 <span class="keywordflow">if</span>(dbres==NULL) <span class="keywordflow">return</span>;
|
|---|
| 455 | 00175 XrmDatabase database = XrmGetDatabase (dpy);
|
|---|
| 456 | 00176 <span class="keywordflow">if</span>(database!=NULL) {
|
|---|
| 457 | 00177 XrmMergeDatabases (dbres,&database);
|
|---|
| 458 | 00178 } <span class="keywordflow">else</span> {
|
|---|
| 459 | 00179 XrmSetDatabase (dpy,dbres);
|
|---|
| 460 | 00180 }
|
|---|
| 461 | 00181 }
|
|---|
| 462 | </pre></div> </td>
|
|---|
| 463 | </tr>
|
|---|
| 464 | </table>
|
|---|
| 465 | <hr><h2>Member Data Documentation</h2>
|
|---|
| 466 | <a class="anchor" name="v0" doxytag="G4Xt::instance" ></a><p>
|
|---|
| 467 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|---|
| 468 | <tr>
|
|---|
| 469 | <td class="mdRow">
|
|---|
| 470 | <table cellpadding="0" cellspacing="0" border="0">
|
|---|
| 471 | <tr>
|
|---|
| 472 | <td class="md" nowrap valign="top"> <a class="el" href="classG4Xt.html">G4Xt</a> * <a class="el" href="classG4Xt.html#v0">G4Xt::instance</a> = NULL<code> [static, private]</code>
|
|---|
| 473 | </table>
|
|---|
| 474 | </td>
|
|---|
| 475 | </tr>
|
|---|
| 476 | </table>
|
|---|
| 477 | <table cellspacing=5 cellpadding=0 border=0>
|
|---|
| 478 | <tr>
|
|---|
| 479 | <td>
|
|---|
| 480 |
|
|---|
| 481 | </td>
|
|---|
| 482 | <td>
|
|---|
| 483 |
|
|---|
| 484 | <p>
|
|---|
| 485 |
|
|---|
| 486 | <p>
|
|---|
| 487 | Definition at line <a class="el" href="G4Xt_8cc-source.html#l00051">51</a> of file <a class="el" href="G4Xt_8cc-source.html">G4Xt.cc</a>.
|
|---|
| 488 | <p>
|
|---|
| 489 | Referenced by <a class="el" href="G4Xt_8cc-source.html#l00067">getInstance()</a>, and <a class="el" href="G4Xt_8cc-source.html#l00134">~G4Xt()</a>. </td>
|
|---|
| 490 | </tr>
|
|---|
| 491 | </table>
|
|---|
| 492 | <hr>The documentation for this class was generated from the following files:<ul>
|
|---|
| 493 | <li><a class="el" href="G4Xt_8hh-source.html">G4Xt.hh</a><li><a class="el" href="G4Xt_8cc-source.html">G4Xt.cc</a></ul>
|
|---|
| 494 | <hr size="1"><address style="align: right;"><small>Generated on Fri Jun 22 11:08:08 2007 by
|
|---|
| 495 | <a href="http://www.doxygen.org/index.html">
|
|---|
| 496 | <img src="doxygen.png" alt="doxygen" align="middle" border=0 >
|
|---|
| 497 | </a>1.3.4 </small></address>
|
|---|
| 498 | </body>
|
|---|
| 499 | </html>
|
|---|