moved from dev to prod
This commit is contained in:
@@ -1,177 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
|
||||
<title>Documentation VISION (VAPI) : Pr<50>sentation</title></head>
|
||||
|
||||
<body background="../images/conc2.gif" bgcolor="#ffffff">
|
||||
<div align="center"><center>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tbody><tr>
|
||||
<td align="center" width="17%"><a href="index.htm"><img src="../images/csom.jpg" alt="Retour au sommaire" border="0" height="26" hspace="2" width="26"></a><a href="pr.htm"><img src="../images/csuiv.jpg" alt="Chapitre suivant" border="0" height="26" hspace="2" width="43"></a></td>
|
||||
<td rowspan="2" align="center" valign="top" width="8%"><p align="center"><img src="../images/icoprinc.gif" height="71" width="59"></p>
|
||||
</td>
|
||||
<td width="33%"><p align="center"><font color="#0000ff" size="5"><strong>Documentation </strong><em><strong>VISION
|
||||
(VAPI)</strong></em></font></p>
|
||||
</td>
|
||||
<td rowspan="2" align="center" valign="top" width="8%"><p align="center"><img src="../images/icointro.gif" height="71" width="59"></p>
|
||||
</td>
|
||||
<td valign="top" width="17%"><p align="left">Derni<EFBFBD>re
|
||||
mise <20> jour : <!--webbot bot="Timestamp" startspan
|
||||
s-type="EDITED" s-format="%d/%m/%y" -->18/03/18<!--webbot
|
||||
bot="Timestamp" i-checksum="12442" endspan --></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="17%"><p align="center"><a href="..%5C..%5Cdownload/dvldv.zip">T<EFBFBD>l<EFBFBD>charger la doc</a></p>
|
||||
</td>
|
||||
<td width="33%"><p align="center"><font size="4"><strong>V
|
||||
A P I</strong></font></p>
|
||||
</td>
|
||||
<td align="center" width="17%"> <!--webbot
|
||||
bot="HTMLMarkup" startspan --><a href="http://www.estat.com/getstats?serial=1390118421"> </a>
|
||||
<!--webbot
|
||||
bot="HTMLMarkup" endspan --></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</center></div>
|
||||
|
||||
<hr>
|
||||
|
||||
<p><a name="Pr<50>sentation"></a><font size="4"><strong>1.
|
||||
Pr<EFBFBD>sentation</strong></font></p>
|
||||
|
||||
<p>VAPI (<em><strong>VISION's</strong></em> Application
|
||||
Programmer Interface) est une partie de <em><strong>VISION</strong></em>
|
||||
destin<EFBFBD>e <20> vous aider dans le d<>veloppement des LDV. Vous
|
||||
devez bien vous douter qu'en interne <em><strong>VISION</strong></em>
|
||||
utilise un tas de fonctions permettant la gestion des images
|
||||
(conversions bit-plan <--> index TOS/VDI, manipulation de
|
||||
rasters,...) ainsi que des fonctions d'interface utilisateur
|
||||
(fen<65>tres de progression par exemple).<br>
|
||||
L'id<69>e de VAPI est de rendre disponible aux LDV ces fonctions
|
||||
jusqu'i<>i r<>serv<72>es au fonctionnement interne de <em><strong>VISION</strong></em>.
|
||||
Pour un LDV, l'int<6E>r<EFBFBD>t est double:</p>
|
||||
|
||||
<ul>
|
||||
<li>Son auteur <20>vite de re-d<>velopper des fonctions d<>j<EFBFBD>
|
||||
existantes</li>
|
||||
<li>Le LDV s'en trouve plus l<>ger</li>
|
||||
</ul>
|
||||
|
||||
<p>Bien entendu, <em><strong>VISION</strong></em> dispose de
|
||||
pleins de fonctions (plus ou moins ais<69>es et <20>l<EFBFBD>gantes...), il
|
||||
s'agit donc de faire un choix pour savoir lesquelles exporter.
|
||||
D'autant plus que l'on peut imaginer que <font size="3"><em><strong>VISION</strong></em></font>
|
||||
exporte aussi ses donn<6E>es comme le catalogue, le Browser
|
||||
d'images, etc...<br>
|
||||
Etant donn<6E> que cela prend quand m<>me pas mal de temps <20>
|
||||
concervoir et <20> r<>aliser, je ferais en sorte que <em><strong>VISION</strong></em>
|
||||
exporte tout d'abord quelques fonctions
|
||||
"<22>l<EFBFBD>mentaires", puis, si le succ<63>s grandit, d'autres
|
||||
viendront.</p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><a name="dev-kit"></a><font size="4"><strong>2. Kit de
|
||||
d<EFBFBD>veloppement</strong></font></p>
|
||||
|
||||
<p>Le kit de d<>veloppement VAPI est identique <20> celui des LDV.
|
||||
Vous le trouverez <a href="../kitdev.htm">ici</a>.</p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><a name="use"></a><font size="4"><strong>3. Utilisation</strong></font></p>
|
||||
|
||||
<p>Utiliser VAPI depuis un LDV est tr<74>s simple : lorsque <em><strong>VISION</strong></em>
|
||||
appelle la fonction <a href="../descrip.htm#capacit%E9s">GetLDVCapabilities</a>
|
||||
du LDV, il vous fournit un pointeur sur une structure de type <a href="struct.htm#VAPI">VAPI</a>. Sans entrer dans le d<>tail,
|
||||
cette structure rassemble les informations suivantes:</p>
|
||||
|
||||
<ul>
|
||||
<li>Un ent<6E>te de type <a href="struct.htm#VAPI_HEADER">VAPI_HEADER</a></li>
|
||||
<li>Une liste de fonctions "en vrac". Ces fonctions
|
||||
sont en fait rassembl<62>es par groupe (<28>galement appel<65>e
|
||||
interface). Chaque groupe <20>tant termin<69> par une zone
|
||||
m<>moire non utilis<69>e destin<69>e <20> recevoir d'autres
|
||||
fonctions du m<>me groupe. Si de nouveaux groupes sont
|
||||
cr<63>es, ils viendront <20> la fin de cette structure afin
|
||||
de garantir la compatibilit<69> ascendante.</li>
|
||||
</ul>
|
||||
|
||||
<p>Maintenant, pour utiliser une fonction de VAPI, c'est tr<74>s
|
||||
simple, imaginez que vous vouliez initialiser le raster image
|
||||
destination fourni pass<73> en param<61>tre dans la fonction Run,
|
||||
|
||||
avec la couleur blanche (en bit-plans ou True Color), il vous
|
||||
suffit d'ins<6E>rer la ligne suivante:</p>
|
||||
|
||||
<p><strong>Vapi->RaImgWhite( &out->Raster ) ;</strong></p>
|
||||
|
||||
<p>Cela suppose uniquement que vous avez r<>cup<75>r<EFBFBD> le pointeur
|
||||
Vapi fourni par <em><strong>VISION</strong></em> au travers de <a href="../descrip.htm#capacit%E9s">GetLDVCapabilities</a>
|
||||
(automatiquement fait par le squelette).</p>
|
||||
|
||||
<p>La liste de toutes des fonctions d<>finies par l'interface
|
||||
VAPI sont disponibles ici. D<>sol<6F>, mais toutes les interfaces
|
||||
et les noms de fonctions poss<73>dent des noms en anglais !</p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><a name="interfaces"></a><font size="4"><strong>4. Interfaces
|
||||
disponibles</strong></font></p>
|
||||
|
||||
<p><font size="3">Les interfaces regroupent des fonctions du
|
||||
m<EFBFBD>me centre d'int<6E>r<EFBFBD>t. Voici la liste (que j'esp<73>re
|
||||
non-exhaustive) des interfaces actuelles:</font></p>
|
||||
|
||||
<table border="1" width="90%">
|
||||
<tbody><tr>
|
||||
<td align="center" width="25%"><a href="pr.htm"><font size="3">Progress Interface</font></a></td>
|
||||
<td align="center" width="25%"><a href="ra.htm"><font size="3">Raster Interface</font></a></td>
|
||||
<td align="center" width="25%"><a href="co.htm">Configuration
|
||||
Interface</a></td>
|
||||
<td align="center" width="25%"><a href="in.htm">INI
|
||||
Interface</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><a href="me.htm">MEM Interface</a></td>
|
||||
<td align="center"><a href="lo.htm">Logging Interface</a> </td>
|
||||
<td align="center"> </td>
|
||||
<td align="center"> </td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<hr>
|
||||
<div align="center"><center>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tbody><tr>
|
||||
<td align="center" width="17%"><a href="index.htm"><img src="../images/csom.jpg" alt="Retour au sommaire" border="0" height="26" hspace="2" width="26"></a><a href="pr.htm"><img src="../images/csuiv.jpg" alt="Chapitre suivant" border="0" height="26" hspace="2" width="43"></a></td>
|
||||
<td rowspan="2" align="center" valign="top" width="8%"><p align="center"><img src="../images/icoprinc.gif" height="71" width="59"></p>
|
||||
</td>
|
||||
<td width="33%"><p align="center"><font color="#0000ff" size="5"><strong>Documentation </strong><em><strong>VISION
|
||||
(VAPI)</strong></em></font></p>
|
||||
</td>
|
||||
<td rowspan="2" align="center" valign="top" width="8%"><p align="center"><img src="../images/icointro.gif" height="71" width="59"></p>
|
||||
</td>
|
||||
<td valign="top" width="17%"><p align="left">Derni<EFBFBD>re
|
||||
mise <20> jour : <!--webbot bot="Timestamp" startspan
|
||||
s-type="EDITED" s-format="%d/%m/%y" -->18/03/18<!--webbot
|
||||
bot="Timestamp" i-checksum="12442" endspan --></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="17%"><p align="center"><a href="..%5C..%5Cdownload/dvldv.zip">T<EFBFBD>l<EFBFBD>charger la doc</a></p>
|
||||
</td>
|
||||
<td width="33%"><p align="center"><font size="4"><strong>V
|
||||
A P I</strong></font></p>
|
||||
</td>
|
||||
<td valign="top" width="17%"> </td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</center></div>
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user