diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a03035.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a03035.html')
-rw-r--r-- | docs/doxygen/nel/a03035.html | 1876 |
1 files changed, 1876 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03035.html b/docs/doxygen/nel/a03035.html new file mode 100644 index 00000000..7b2b3bbd --- /dev/null +++ b/docs/doxygen/nel/a03035.html @@ -0,0 +1,1876 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: NLNET::CPacsClient class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NLNET::CPacsClient Class Reference</h1><code>#include <<a class="el" href="a06138.html">pacs_client.h</a>></code> +<p> +<hr><a name="_details"></a><h2>Detailed Description</h2> +Client side of Pacs Service. Allows to use PACS functionnality by the networtk.<p> +<dl compact><dt><b>Author:</b></dt><dd>Cyril 'Hulud' Corvazier <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a06138.html#l00052">52</a> of file <a class="el" href="a06138.html">pacs_client.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Callbacks</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2087_0">getPositionSpeedCallback</a> (<a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> <a class="el" href="a04223.html#a564">id</a>, const <a class="el" href="a03664.html">NLMISC::CVectorD</a> &position, const <a class="el" href="a03664.html">NLMISC::CVectorD</a> &speed)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2087_1">messageCallback</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2087_2">rayTestCallback</a> (<a class="el" href="a04558.html#a11">uint32</a> testId, bool testResult)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2087_3">testMoveCallback</a> (<a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> <a class="el" href="a04223.html#a564">id</a>, bool testResult)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2087_4">triggerCallback</a> (<a class="el" href="a04558.html#a11">uint32</a> evalId, const std::vector< <a class="el" href="a03952.html">NLPACS::UTriggerInfo</a> > &triggerInfo)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02918.html">CMessage</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02305.html">CCallbackClient</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2087_6">_Server</a></td></tr> + +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClienta0">connect</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClienta1">CPacsClient</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#NLNET_1_1CPacsClienta1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClienta2">disconnect</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClienta3">initMessage</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClienta4">sendMessage</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClienta5">update</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClienta6">~CPacsClient</a> ()</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Move container methods</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2085_0">addPrimitive</a> (<a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> <a class="el" href="a04223.html#a564">id</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2085_1">evalCollision</a> (<a class="el" href="a04558.html#a11">uint32</a> evalId, double deltaTime)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2085_2">removePrimitive</a> (<a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> <a class="el" href="a04223.html#a564">id</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2085_3">testMove</a> (<a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> <a class="el" href="a04223.html#a564">id</a>, const <a class="el" href="a03664.html">NLMISC::CVectorD</a> &speed, double deltaTime)</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Primitives methods</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_0">getPositionSpeed</a> (<a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> <a class="el" href="a04223.html#a564">id</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_1">globalMove</a> (const <a class="el" href="a03664.html">NLMISC::CVectorD</a> &position)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_2">relativeMove</a> (const <a class="el" href="a03664.html">NLMISC::CVectorD</a> &speed)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_3">setAbsorption</a> (float absorption)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_4">setCollisionMask</a> (<a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew10">NLPACS::UMovePrimitive::TCollisionMask</a> mask)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_5">setCurrentPrimitive</a> (<a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> <a class="el" href="a04223.html#a564">id</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_6">setHeight</a> (float <a class="el" href="a04223.html#a633">height</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_7">setObstacle</a> (bool obstacle)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_8">setOcclusionMask</a> (<a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew10">NLPACS::UMovePrimitive::TCollisionMask</a> mask)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_9">setOrientation</a> (double orientation)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_10">setPrimitiveType</a> (<a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew13">NLPACS::UMovePrimitive::TType</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_11">setRadius</a> (float radius)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_12">setReactionType</a> (<a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew11">NLPACS::UMovePrimitive::TReaction</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_13">setSize</a> (float <a class="el" href="a04223.html#a632">width</a>, float <a class="el" href="a04223.html#a634">depth</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2086_14">setTriggerType</a> (<a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew12">NLPACS::UMovePrimitive::TTrigger</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Global retriever methods</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientz2084_0">rayTest</a> (double p0, double p1, <a class="el" href="a04558.html#a11">uint32</a> testId)</td></tr> + +<tr><td colspan=2><br><h2>Friends</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03035.html#NLNET_1_1CPacsClientn0">cbPacsAnswer</a> (<a class="el" href="a02918.html">CMessage</a> &msgin, <a class="el" href="a02303.html">TSockId</a> <a class="el" href="a04113.html#a70">from</a>, <a class="el" href="a02306.html">CCallbackNetBase</a> &netbase)</td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NLNET_1_1CPacsClienta1" doxytag="NLNET::CPacsClient::CPacsClient" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLNET::CPacsClient::CPacsClient </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Constructor. +<p> + +<p> +Definition at line <a class="el" href="a06138.html#l00058">58</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +<div class="fragment"><pre>00059 { +00060 <span class="comment">// No connexion</span> +00061 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_6">_Server</a>=NULL; +00062 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClienta6" doxytag="NLNET::CPacsClient::~CPacsClient" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLNET::CPacsClient::~<a class="el" href="a03035.html">CPacsClient</a> </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06138.html#l00064">64</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00071">disconnect()</a>. +<p> +<div class="fragment"><pre>00065 { +00066 <a class="code" href="a03035.html#NLNET_1_1CPacsClienta2">disconnect</a> (); +00067 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NLNET_1_1CPacsClientz2085_0" doxytag="NLNET::CPacsClient::addPrimitive" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::addPrimitive </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> </td> + <td class="mdname1" valign="top" nowrap> <em>id</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Add a primitive in the service. Set the new primitive as current.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>id</em> </td><td>is the ID to attach to the new primitive.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00149">149</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, and <a class="el" href="a06615.html#l00058">NLPACS::UMovePrimitive::TUserData</a>. +<p> +<div class="fragment"><pre>00150 { +00151 <span class="comment">// Append to the current message</span> +00152 std::string name=<span class="stringliteral">"AD"</span>; +00153 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00154 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, <span class="keywordtype">id</span>); +00155 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClienta0" doxytag="NLNET::CPacsClient::connect" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLNET::CPacsClient::connect </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06138.html#l00577">577</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a05526.html#l00184">NLNET::CCallbackNetBase::addCallbackArray()</a>, <a class="el" href="a05525.html#l00069">NLNET::CCallbackClient::connected()</a>, <a class="el" href="a05507.html#l00198">NLNET::CBufClient::id()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06138.html#l00572">NLNET::PacsCallbackArray</a>, <a class="el" href="a05515.html#l00060">NLNET::CBufSock::setAppId()</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +<div class="fragment"><pre>00578 { +00579 <span class="comment">// Create a connexion</span> +00580 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_6">_Server</a> = <span class="keyword">new</span> CCallbackClient; +00581 +00582 <span class="comment">// Look up for PACS service</span> +00583 CNamingClient::lookupAndConnect (<span class="stringliteral">"PS"</span>, *_Server); +00584 <span class="keywordflow">if</span> (<a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_6">_Server</a>->connected()) +00585 { +00586 <span class="comment">// Add callback array</span> +00587 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_6">_Server</a>->addCallbackArray (PacsCallbackArray, <span class="keyword">sizeof</span> (PacsCallbackArray) / <span class="keyword">sizeof</span> (PacsCallbackArray[0])); +00588 +00589 <span class="comment">// This code can work only if sizeof (uint) == sizeof (void*)</span> +00590 <a class="code" href="a04199.html#a6">nlassert</a> (<span class="keyword">sizeof</span> (<a class="code" href="a04558.html#a15">uint</a>)==<span class="keyword">sizeof</span> (<span class="keywordtype">void</span>*)); +00591 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_6">_Server</a>->id ()->setAppId ((<a class="code" href="a04558.html#a13">uint64</a>)(uint)<span class="keyword">this</span>); +00592 +00593 <span class="comment">// Return ok</span> +00594 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00595 } +00596 <span class="keywordflow">else</span> +00597 { +00598 <span class="keywordflow">return</span> <span class="keyword">false</span>; +00599 } +00600 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClienta2" doxytag="NLNET::CPacsClient::disconnect" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::disconnect </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06138.html#l00071">71</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a05524.html#l00354">NLNET::CCallbackClient::disconnect()</a>. +<p> +Referenced by <a class="el" href="a06138.html#l00064">~CPacsClient()</a>. +<p> +<div class="fragment"><pre>00072 { +00073 <span class="keywordflow">if</span> (<a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_6">_Server</a>) +00074 { +00075 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_6">_Server</a>->disconnect (); +00076 <span class="keyword">delete</span> <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_6">_Server</a>; +00077 } +00078 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2085_1" doxytag="NLNET::CPacsClient::evalCollision" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::evalCollision </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>evalId</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>double </td> + <td class="mdname" nowrap> <em>deltaTime</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Evaluate the collision on the servive.<p> +The service will answer this message with a triggerCallback message.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>evalId</em> </td><td>is the id of the evaluation. </td></tr> + <tr><td valign=top><em>deltaTime</em> </td><td>is the delta time used to evaluate the system.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00180">180</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00181 { +00182 <span class="comment">// Append to the current message</span> +00183 std::string name=<span class="stringliteral">"EV"</span>; +00184 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00185 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, evalId, deltaTime); +00186 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_0" doxytag="NLNET::CPacsClient::getPositionSpeed" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::getPositionSpeed </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> </td> + <td class="mdname1" valign="top" nowrap> <em>id</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Query the position and the speed of the primitive after an evalCollision message.<p> +The service will answer with a getPositionSpeedCallback message.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>id</em> </td><td>is the id of the primitive to get the position and the speed.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00433">433</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, and <a class="el" href="a06615.html#l00058">NLPACS::UMovePrimitive::TUserData</a>. +<p> +<div class="fragment"><pre>00434 { +00435 <span class="comment">// Append to the current message</span> +00436 std::string name=<span class="stringliteral">"PS"</span>; +00437 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00438 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, <span class="keywordtype">id</span>); +00439 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2087_0" doxytag="NLNET::CPacsClient::getPositionSpeedCallback" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NLNET::CPacsClient::getPositionSpeedCallback </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> </td> + <td class="mdname" nowrap> <em>id</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="a03664.html">NLMISC::CVectorD</a> & </td> + <td class="mdname" nowrap> <em>position</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="a03664.html">NLMISC::CVectorD</a> & </td> + <td class="mdname" nowrap> <em>speed</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, protected, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This message is send by the service to answer the getPositionSpeed request.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>id</em> </td><td>is the id of the primitive. </td></tr> + <tr><td valign=top><em>position</em> </td><td>is the new position of the primitive. </td></tr> + <tr><td valign=top><em>speed</em> </td><td>is the new speed of the primitive.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00486">486</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06615.html#l00058">NLPACS::UMovePrimitive::TUserData</a>. +<p> +Referenced by <a class="el" href="a06138.html#l00495">NLNET::cbPacsAnswer()</a>. +<p> +<div class="fragment"><pre>00487 {} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_1" doxytag="NLNET::CPacsClient::globalMove" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::globalMove </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03664.html">NLMISC::CVectorD</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>position</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Make the current primitive a global move. This move is slow. Use it only for the first placement and for teleporting.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>position</em> </td><td>is the new position for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00400">400</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, and <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>. +<p> +<div class="fragment"><pre>00401 { +00402 <span class="comment">// Append to the current message</span> +00403 std::string name=<span class="stringliteral">"GM"</span>; +00404 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00405 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, const_cast<NLMISC::CVectorD&> (position)); +00406 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClienta3" doxytag="NLNET::CPacsClient::initMessage" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::initMessage </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Prepare a new message<p> +You must call this method before do anything before sending the message. +<p> +Definition at line <a class="el" href="a06138.html#l00085">85</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a06026.html#l00398">NLNET::CMessage::clear()</a>, <a class="el" href="a06138.html#l00038">NLNET_PACS_PROTOCOL_VERSION</a>, <a class="el" href="a06462.html#l00520">NLMISC::IStream::serialCheck()</a>, <a class="el" href="a06026.html#l00173">NLNET::CMessage::setType()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00086 { +00087 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02918.html#NLNET_1_1CMessagea4">clear</a> (); +00088 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02918.html#NLNET_1_1CMessagea60">setType</a> (<span class="stringliteral">"PACS"</span>); +00089 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_0">serialCheck</a> ((<a class="code" href="a04558.html#a11">uint32</a>)NLNET_PACS_PROTOCOL_VERSION); +00090 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2087_1" doxytag="NLNET::CPacsClient::messageCallback" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NLNET::CPacsClient::messageCallback </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This call back is called when a message is coming. Used for synchronisation. +<p> +Definition at line <a class="el" href="a06138.html#l00448">448</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +Referenced by <a class="el" href="a06138.html#l00495">NLNET::cbPacsAnswer()</a>. +<p> +<div class="fragment"><pre>00449 {} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2084_0" doxytag="NLNET::CPacsClient::rayTest" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::rayTest </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">double </td> + <td class="mdname" nowrap> <em>p0</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>double </td> + <td class="mdname" nowrap> <em>p1</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>testId</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Make a raytrace test on the service.<p> +The service will answer this message with a rayTestCallback message.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>p0</em> </td><td>is the first point of the ray. </td></tr> + <tr><td valign=top><em>p1</em> </td><td>is the second point of the ray. </td></tr> + <tr><td valign=top><em>testId</em> </td><td>is the id of the test.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00132">132</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00133 { +00134 <span class="comment">// Append to the current message</span> +00135 std::string name=<span class="stringliteral">"RY"</span>; +00136 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00137 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, p0, p1, testId); +00138 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2087_2" doxytag="NLNET::CPacsClient::rayTestCallback" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NLNET::CPacsClient::rayTestCallback </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>testId</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>testResult</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, protected, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This message is send by the service to answer the rayTest request.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>testId</em> </td><td>is the test ID passed to <a class="el" href="a03035.html#NLNET_1_1CPacsClientz2084_0">rayTest()</a>. </td></tr> + <tr><td valign=top><em>testResult</em> </td><td>is false if the ray is not clipped, else true.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00457">457</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a06138.html#l00495">NLNET::cbPacsAnswer()</a>. +<p> +<div class="fragment"><pre>00458 {} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_2" doxytag="NLNET::CPacsClient::relativeMove" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::relativeMove </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03664.html">NLMISC::CVectorD</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>speed</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Make the current primitive a relative move. This move is fast. Use it for current move. Make first a relative move of all your primitives, then put a evalCollision message. Then you can query position and speed by posting getPositionSpeed message.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>position</em> </td><td>is the new position for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00418">418</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, and <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>. +<p> +<div class="fragment"><pre>00419 { +00420 <span class="comment">// Append to the current message</span> +00421 std::string name=<span class="stringliteral">"RM"</span>; +00422 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00423 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, const_cast<NLMISC::CVectorD&> (speed)); +00424 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2085_2" doxytag="NLNET::CPacsClient::removePrimitive" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::removePrimitive </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> </td> + <td class="mdname1" valign="top" nowrap> <em>id</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Remove a primitive from the service.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>id</em> </td><td>is the ID attach to the primitive to remove.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00164">164</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, and <a class="el" href="a06615.html#l00058">NLPACS::UMovePrimitive::TUserData</a>. +<p> +<div class="fragment"><pre>00165 { +00166 <span class="comment">// Append to the current message</span> +00167 std::string name=<span class="stringliteral">"RV"</span>; +00168 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00169 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, <span class="keywordtype">id</span>); +00170 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClienta4" doxytag="NLNET::CPacsClient::sendMessage" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::sendMessage </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Send the message<p> +You must call this method after initMessage and others calls to setup methods. +<p> +Definition at line <a class="el" href="a06138.html#l00097">97</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05524.html#l00079">NLNET::CCallbackClient::send()</a>, and <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>. +<p> +<div class="fragment"><pre>00098 { +00099 <span class="comment">// Checks</span> +00100 <a class="code" href="a04199.html#a6">nlassert</a> (_Server); +00101 +00102 <span class="comment">// Close the message</span> +00103 <span class="keywordtype">bool</span> nlFalse=<span class="keyword">false</span>; +00104 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlFalse); +00105 +00106 <span class="comment">// Send the message</span> +00107 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_6">_Server</a>->send (_Message); +00108 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_3" doxytag="NLNET::CPacsClient::setAbsorption" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::setAbsorption </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>absorption</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the attenuation factor of the current primitive on the service.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>absorption</em> </td><td>is the new attenuation factor for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00338">338</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, and <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>. +<p> +<div class="fragment"><pre>00339 { +00340 <span class="comment">// Append to the current message</span> +00341 std::string name=<span class="stringliteral">"AB"</span>; +00342 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00343 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, absorption); +00344 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_4" doxytag="NLNET::CPacsClient::setCollisionMask" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::setCollisionMask </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew10">NLPACS::UMovePrimitive::TCollisionMask</a> </td> + <td class="mdname1" valign="top" nowrap> <em>mask</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the collision mask of the current primitive on the service.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>mask</em> </td><td>is the new collision mask for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00278">278</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, and <a class="el" href="a06615.html#l00057">NLPACS::UMovePrimitive::TCollisionMask</a>. +<p> +<div class="fragment"><pre>00279 { +00280 <span class="comment">// Append to the current message</span> +00281 std::string name=<span class="stringliteral">"CT"</span>; +00282 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00283 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, mask); +00284 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_5" doxytag="NLNET::CPacsClient::setCurrentPrimitive" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::setCurrentPrimitive </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> </td> + <td class="mdname1" valign="top" nowrap> <em>id</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the current primitive on the service. The primitive stay current for the current message.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>id</em> </td><td>is the id of the current primitive to use.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00215">215</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, and <a class="el" href="a06615.html#l00058">NLPACS::UMovePrimitive::TUserData</a>. +<p> +<div class="fragment"><pre>00216 { +00217 <span class="comment">// Append to the current message</span> +00218 std::string name=<span class="stringliteral">"CU"</span>; +00219 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00220 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, <span class="keywordtype">id</span>); +00221 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_6" doxytag="NLNET::CPacsClient::setHeight" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::setHeight </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>height</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the height of the current primitive on the service. For boxes and cylinders primitives.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>height</em> </td><td>is the new size on Z axis factor for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00369">369</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05646.html#l01013">height</a>, and <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>. +<p> +<div class="fragment"><pre>00370 { +00371 <span class="comment">// Append to the current message</span> +00372 std::string name=<span class="stringliteral">"HE"</span>; +00373 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00374 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, height); +00375 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_7" doxytag="NLNET::CPacsClient::setObstacle" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::setObstacle </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>obstacle</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the obstacle flag of the current primitive on the service.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>obstacle</em> </td><td>is the new obstacle flag for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00308">308</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, and <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>. +<p> +<div class="fragment"><pre>00309 { +00310 <span class="comment">// Append to the current message</span> +00311 std::string name=<span class="stringliteral">"OB"</span>; +00312 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00313 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, obstacle); +00314 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_8" doxytag="NLNET::CPacsClient::setOcclusionMask" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::setOcclusionMask </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew10">NLPACS::UMovePrimitive::TCollisionMask</a> </td> + <td class="mdname1" valign="top" nowrap> <em>mask</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the occlusion mask of the current primitive on the service.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>mask</em> </td><td>is the new occlusion mask for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00293">293</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, and <a class="el" href="a06615.html#l00057">NLPACS::UMovePrimitive::TCollisionMask</a>. +<p> +<div class="fragment"><pre>00294 { +00295 <span class="comment">// Append to the current message</span> +00296 std::string name=<span class="stringliteral">"OT"</span>; +00297 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00298 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, mask); +00299 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_9" doxytag="NLNET::CPacsClient::setOrientation" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::setOrientation </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">double </td> + <td class="mdname1" valign="top" nowrap> <em>orientation</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the orientation the current primitive on the service.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>orientation</em> </td><td>is the new orientation for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00323">323</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, and <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>. +<p> +<div class="fragment"><pre>00324 { +00325 <span class="comment">// Append to the current message</span> +00326 std::string name=<span class="stringliteral">"OR"</span>; +00327 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00328 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, orientation); +00329 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_10" doxytag="NLNET::CPacsClient::setPrimitiveType" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::setPrimitiveType </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew13">NLPACS::UMovePrimitive::TType</a> </td> + <td class="mdname1" valign="top" nowrap> <em>type</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the type of the current primitive on the service.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>type</em> </td><td>is the new type for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00230">230</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, <a class="el" href="a05646.html#l00985">t</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00231 { +00232 <span class="comment">// Append to the current message</span> +00233 std::string name=<span class="stringliteral">"TY"</span>; +00234 <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a627">t</a>=(<a class="code" href="a04558.html#a11">uint32</a>)<a class="code" href="a04223.html#a581">type</a>; +00235 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00236 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, t); +00237 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_11" doxytag="NLNET::CPacsClient::setRadius" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::setRadius </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>radius</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the radius of the current primitive on the service. For cylinders primitives.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>height</em> </td><td>is the new size on Z axis factor for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00384">384</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, and <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>. +<p> +<div class="fragment"><pre>00385 { +00386 <span class="comment">// Append to the current message</span> +00387 std::string name=<span class="stringliteral">"RD"</span>; +00388 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00389 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, radius); +00390 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_12" doxytag="NLNET::CPacsClient::setReactionType" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::setReactionType </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew11">NLPACS::UMovePrimitive::TReaction</a> </td> + <td class="mdname1" valign="top" nowrap> <em>type</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the reaction type of the current primitive on the service.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>type</em> </td><td>is the newreaction type for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00246">246</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, <a class="el" href="a05646.html#l00985">t</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00247 { +00248 <span class="comment">// Append to the current message</span> +00249 std::string name=<span class="stringliteral">"RT"</span>; +00250 <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a627">t</a>=(<a class="code" href="a04558.html#a11">uint32</a>)<a class="code" href="a04223.html#a581">type</a>; +00251 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00252 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, t); +00253 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_13" doxytag="NLNET::CPacsClient::setSize" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::setSize </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname" nowrap> <em>width</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>depth</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the size of the current primitive on the service. Only for boxes primitives.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>width</em> </td><td>is the new size on X axis factor for the primitive on the service. </td></tr> + <tr><td valign=top><em>depth</em> </td><td>is the new size on Y axis factor for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00354">354</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05646.html#l01013">depth</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, and <a class="el" href="a05646.html#l01013">width</a>. +<p> +<div class="fragment"><pre>00355 { +00356 <span class="comment">// Append to the current message</span> +00357 std::string name=<span class="stringliteral">"SZ"</span>; +00358 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00359 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, width, depth); +00360 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2086_14" doxytag="NLNET::CPacsClient::setTriggerType" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::setTriggerType </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew12">NLPACS::UMovePrimitive::TTrigger</a> </td> + <td class="mdname1" valign="top" nowrap> <em>type</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the trigger type of the current primitive on the service.<p> +No answer will be send by the service.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>type</em> </td><td>is the new trigger type for the primitive on the service.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00262">262</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, <a class="el" href="a05646.html#l00985">t</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00263 { +00264 <span class="comment">// Append to the current message</span> +00265 std::string name=<span class="stringliteral">"TT"</span>; +00266 <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a627">t</a>=(<a class="code" href="a04558.html#a11">uint32</a>)<a class="code" href="a04223.html#a581">type</a>; +00267 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00268 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, t); +00269 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2085_3" doxytag="NLNET::CPacsClient::testMove" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::testMove </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> </td> + <td class="mdname" nowrap> <em>id</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="a03664.html">NLMISC::CVectorD</a> & </td> + <td class="mdname" nowrap> <em>speed</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>double </td> + <td class="mdname" nowrap> <em>deltaTime</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Test a move of a primitive on the service.<p> +The service will answer this message with a testMoveCallback message.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>id</em> </td><td>is the id of the primitive to test a move. </td></tr> + <tr><td valign=top><em>speed</em> </td><td>is the speed of the primitive during its move. </td></tr> + <tr><td valign=top><em>deltaTime</em> </td><td>is the time interval of the move to test.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00197">197</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06138.html#l00491">_Message</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, and <a class="el" href="a06615.html#l00058">NLPACS::UMovePrimitive::TUserData</a>. +<p> +<div class="fragment"><pre>00198 { +00199 <span class="comment">// Append to the current message</span> +00200 std::string name=<span class="stringliteral">"TS"</span>; +00201 <span class="keywordtype">bool</span> nlTrue=<span class="keyword">true</span>; +00202 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_5">_Message</a>.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (nlTrue, name, <span class="keywordtype">id</span>, const_cast<NLMISC::CVectorD&> (speed), deltaTime); +00203 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2087_3" doxytag="NLNET::CPacsClient::testMoveCallback" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NLNET::CPacsClient::testMoveCallback </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> </td> + <td class="mdname" nowrap> <em>id</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>testResult</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, protected, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This message is send by the service to answer the testMove request.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>id</em> </td><td>is the id of the primitive tested. </td></tr> + <tr><td valign=top><em>testResult</em> </td><td>is true if the primitive can do that move, else false.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00476">476</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a06615.html#l00058">NLPACS::UMovePrimitive::TUserData</a>. +<p> +Referenced by <a class="el" href="a06138.html#l00495">NLNET::cbPacsAnswer()</a>. +<p> +<div class="fragment"><pre>00477 {} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2087_4" doxytag="NLNET::CPacsClient::triggerCallback" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual void NLNET::CPacsClient::triggerCallback </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>evalId</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const std::vector< <a class="el" href="a03952.html">NLPACS::UTriggerInfo</a> > & </td> + <td class="mdname" nowrap> <em>triggerInfo</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, protected, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This message is send by the service to answer the evalCollision request.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>evalId</em> </td><td>is the id of the evaluation passed to evalCollision. </td></tr> + <tr><td valign=top><em>triggerInfo</em> </td><td>is an array of trigger descriptor. Each entry of the array is a new trigger raised by evalCollision.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00467">467</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a06138.html#l00495">NLNET::cbPacsAnswer()</a>. +<p> +<div class="fragment"><pre>00468 {} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClienta5" doxytag="NLNET::CPacsClient::update" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CPacsClient::update </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Update method. Should be called evenly. +<p> +Definition at line <a class="el" href="a06138.html#l00113">113</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +References <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05524.html#l00162">NLNET::CCallbackClient::update()</a>. +<p> +<div class="fragment"><pre>00114 { +00115 <span class="comment">// Checks</span> +00116 <a class="code" href="a04199.html#a6">nlassert</a> (_Server); +00117 +00118 <a class="code" href="a03035.html#NLNET_1_1CPacsClientz2087_6">_Server</a>->update (); +00119 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Friends And Related Function Documentation</h2> +<a class="anchor" name="NLNET_1_1CPacsClientn0" doxytag="NLNET::CPacsClient::cbPacsAnswer" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void cbPacsAnswer </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02918.html">CMessage</a> & </td> + <td class="mdname" nowrap> <em>msgin</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a02303.html">TSockId</a> </td> + <td class="mdname" nowrap> <em>from</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a02306.html">CCallbackNetBase</a> & </td> + <td class="mdname" nowrap> <em>netbase</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [friend]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06138.html#l00495">495</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +<div class="fragment"><pre>00496 { +00497 <span class="comment">// Get the client pointer</span> +00498 <a class="code" href="a03035.html#NLNET_1_1CPacsClienta1">CPacsClient</a> *client=(<a class="code" href="a03035.html#NLNET_1_1CPacsClienta1">CPacsClient</a>*)(<a class="code" href="a04558.html#a15">uint</a>)<a class="code" href="a05333.html#a132">from</a>->appId (); +00499 +00500 <span class="comment">// Check stream</span> +00501 msgin.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_0">serialCheck</a> ((<a class="code" href="a04558.html#a11">uint32</a>)NLNET_PACS_PROTOCOL_VERSION); +00502 +00503 <span class="comment">// Message callback</span> +00504 client->messageCallback (); +00505 +00506 <span class="keywordtype">bool</span> again; +00507 msgin.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (again); +00508 +00509 <span class="keywordflow">while</span> (again) +00510 { +00511 <span class="comment">// Read the message sub string</span> +00512 std::string subMessage; +00513 msgin.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (subMessage); +00514 +00515 <span class="comment">// This code can work only if sizeof (uint) == sizeof (void*)</span> +00516 <a class="code" href="a04199.html#a6">nlassert</a> (<span class="keyword">sizeof</span> (<a class="code" href="a04558.html#a15">uint</a>)==<span class="keyword">sizeof</span> (<span class="keywordtype">void</span>*)); +00517 +00518 <span class="comment">// Raytrace callback ?</span> +00519 <span class="keywordflow">if</span> (subMessage==<span class="stringliteral">"RY"</span>) +00520 { +00521 <span class="comment">// Read test id and test result</span> +00522 <a class="code" href="a04558.html#a11">uint32</a> testId; +00523 <span class="keywordtype">bool</span> testResult; +00524 msgin.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (testId, testResult); +00525 +00526 <span class="comment">// Call the callback</span> +00527 client->rayTestCallback (testId, testResult); +00528 } +00529 <span class="comment">// Trigger callback ?</span> +00530 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (subMessage==<span class="stringliteral">"TR"</span>) +00531 { +00532 <span class="comment">// Read eval id and trigger info</span> +00533 <a class="code" href="a04558.html#a11">uint32</a> evalId; +00534 std::vector<NLPACS::UTriggerInfo> triggerInfo; +00535 msgin.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (evalId); +00536 msgin.<a class="code" href="a02271.html#NLNET_1_1CMessagea54">serialCont</a> (triggerInfo); +00537 +00538 <span class="comment">// Call the callback</span> +00539 client->triggerCallback (evalId, triggerInfo); +00540 } +00541 <span class="comment">// Test move callback ?</span> +00542 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (subMessage==<span class="stringliteral">"TM"</span>) +00543 { +00544 <span class="comment">// Read the primitive id and test result</span> +00545 <a class="code" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> <span class="keywordtype">id</span>; +00546 <span class="keywordtype">bool</span> testResult; +00547 msgin.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (<span class="keywordtype">id</span>, testResult); +00548 +00549 <span class="comment">// Call the callback </span> +00550 client->testMoveCallback (<span class="keywordtype">id</span>, testResult); +00551 } +00552 <span class="comment">// Test move callback ?</span> +00553 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (subMessage==<span class="stringliteral">"PS"</span>) +00554 { +00555 <span class="comment">// Read the primitive id and test result</span> +00556 <a class="code" href="a02947.html#NLPACS_1_1UMovePrimitivew14">NLPACS::UMovePrimitive::TUserData</a> <span class="keywordtype">id</span>; +00557 <a class="code" href="a03664.html">NLMISC::CVectorD</a> position; +00558 <a class="code" href="a03664.html">NLMISC::CVectorD</a> speed; +00559 msgin.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (<span class="keywordtype">id</span>, position, speed); +00560 +00561 <span class="comment">// Call the callback </span> +00562 client->getPositionSpeedCallback (<span class="keywordtype">id</span>, position, speed); +00563 } +00564 <span class="keywordflow">else</span> +00565 <a class="code" href="a05378.html#a294">NLMISC::nlError</a> (<span class="stringliteral">"Pacs client: unkown sub message string"</span>); +00566 +00567 <span class="comment">// Next message ?</span> +00568 msgin.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (again); +00569 } +00570 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NLNET_1_1CPacsClientz2087_5" doxytag="NLNET::CPacsClient::_Message" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02918.html">CMessage</a> <a class="el" href="a03035.html#NLNET_1_1CPacsClientz2087_5">NLNET::CPacsClient::_Message</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This message is send by the service to answer the getPositionSpeed request.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>id</em> </td><td>is the id of the primitive. </td></tr> + <tr><td valign=top><em>position</em> </td><td>is the new position of the primitive. </td></tr> + <tr><td valign=top><em>speed</em> </td><td>is the new speed of the primitive.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00491">491</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. +<p> +Referenced by <a class="el" href="a06138.html#l00149">addPrimitive()</a>, <a class="el" href="a06138.html#l00180">evalCollision()</a>, <a class="el" href="a06138.html#l00433">getPositionSpeed()</a>, <a class="el" href="a06138.html#l00400">globalMove()</a>, <a class="el" href="a06138.html#l00085">initMessage()</a>, <a class="el" href="a06138.html#l00132">rayTest()</a>, <a class="el" href="a06138.html#l00418">relativeMove()</a>, <a class="el" href="a06138.html#l00164">removePrimitive()</a>, <a class="el" href="a06138.html#l00097">sendMessage()</a>, <a class="el" href="a06138.html#l00338">setAbsorption()</a>, <a class="el" href="a06138.html#l00278">setCollisionMask()</a>, <a class="el" href="a06138.html#l00215">setCurrentPrimitive()</a>, <a class="el" href="a06138.html#l00369">setHeight()</a>, <a class="el" href="a06138.html#l00308">setObstacle()</a>, <a class="el" href="a06138.html#l00293">setOcclusionMask()</a>, <a class="el" href="a06138.html#l00323">setOrientation()</a>, <a class="el" href="a06138.html#l00230">setPrimitiveType()</a>, <a class="el" href="a06138.html#l00384">setRadius()</a>, <a class="el" href="a06138.html#l00246">setReactionType()</a>, <a class="el" href="a06138.html#l00354">setSize()</a>, <a class="el" href="a06138.html#l00262">setTriggerType()</a>, and <a class="el" href="a06138.html#l00197">testMove()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CPacsClientz2087_6" doxytag="NLNET::CPacsClient::_Server" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02305.html">CCallbackClient</a>* <a class="el" href="a03035.html#NLNET_1_1CPacsClientz2087_6">NLNET::CPacsClient::_Server</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This message is send by the service to answer the getPositionSpeed request.<p> +<dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>id</em> </td><td>is the id of the primitive. </td></tr> + <tr><td valign=top><em>position</em> </td><td>is the new position of the primitive. </td></tr> + <tr><td valign=top><em>speed</em> </td><td>is the new speed of the primitive.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a06138.html#l00490">490</a> of file <a class="el" href="a06138.html">pacs_client.h</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following file:<ul> +<li><a class="el" href="a06138.html">pacs_client.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 14:02:48 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |