Changeset 262


Ignore:
Timestamp:
09/08/09 19:25:01 (3 years ago)
Author:
bwoeldecke
Message:

avango-doc: updated avango-connect documentation

  • updated list of supported field types
  • added description of the used network protocol
Location:
trunk/avango-doc/guide
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-doc/guide/avango-connect.html

    r141 r262  
    3939 
    4040<p> 
    41 Supported field types: 
     41The following list shows the supported field types. At this time, there is only a small subset of the existing types, 
     42which grows on demand. 
    4243<ul> 
    4344        <li>SFBool</li> 
    4445        <li>SFInt</li> 
     46        <li>SFFloat</li> 
    4547        <li>SFDouble</li> 
    4648        <li>SFString</li> 
    47         <li>MFBool</li> 
     49        <li>SFVec4</li> 
     50        <li>SFMatrix</li> 
    4851        <li>MFInt</li> 
    49         <li>MFDouble</li> 
    5052        <li>MFString</li> 
     53        <li>MFVec2</li> 
     54        <li>MFVec3</li> 
     55        <li>MFMatrix</li> 
    5156</ul> 
    5257</p> 
     
    126131</ul> 
    127132 
     133<h3>Network protocol</h3> 
     134<p> 
     135The values of the fields are sent over a TCP connection with a simple stream based text protocol. 
     136Every line of text carries the information of one single field and ends in a line feed (ASCII code 0x0a). 
     137The different parts of a line are separated by NUL characters (ASCII code 0x00). 
     138 
     139<pre class="example"> 
     140Text<b>&lt;NUL&gt;</b>SFString<b>&lt;NUL&gt;</b>This is a test<b>&lt;LF&gt;</b> 
     141Translation<b>&lt;NUL&gt;</b>SFVec4<b>&lt;NUL&gt;</b>1<b>&lt;NUL&gt;</b>2<b>&lt;NUL&gt;</b>3<b>&lt;NUL&gt;</b>4<b>&lt;LF&gt;</b> 
     142</pre> 
     143 
     144In this example, the information about two fields is sent: 
     145<ul> 
     146        <li>A field called "Text" of type "SFString" containing the text "This is a text"</li> 
     147        <li>A field called "Translation" of type "SFVec4" containing the value "(1, 2, 3, 4)".</li> 
     148</ul> 
     149 
     150</p> 
     151 
    128152<!-- End page contents --> 
    129153 
  • trunk/avango-doc/guide/screen.css

    r189 r262  
    7070.sidenote:before { 
    7171        font-family:Fixedsys,Courier,monospace; 
    72         width:7.5em; 
     72        width:6.0em; 
    7373        display:block; 
    7474        margin-top:-10px; 
     
    114114} 
    115115 
     116/* Examples should be formatted with <div class="example"> */ 
     117 
     118.example { 
     119        background-color:#ddf; 
     120        font-family:Fixedsys,Courier,monospace; 
     121        padding:10px; 
     122        border:dotted 1px black; 
     123} 
     124 
     125/* insert "example" badge */ 
     126 
     127.example:before { 
     128        width:4.5em; 
     129        display:block; 
     130        margin-top:-10px; 
     131        margin-left:-10px; 
     132        margin-right:-10px; 
     133        margin-bottom:10px; 
     134        padding:1px; 
     135        border-color:#999; 
     136        border-right-style:dotted; 
     137        border-right-width:1px; 
     138        border-bottom-style:dotted; 
     139        border-bottom-width:1px; 
     140        font-style:italic; 
     141        content: "example"; 
     142} 
     143 
    116144/* Class lists - displayed in a separate block. TODO: Make consistent with other lists */ 
    117145 
Note: See TracChangeset for help on using the changeset viewer.