60 |
jpm |
1 |
<html>
|
|
|
2 |
<head>
|
|
|
3 |
<title>Documentation</title>
|
|
|
4 |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
|
|
|
5 |
<link rel='stylesheet' href='style.css' />
|
|
|
6 |
</head>
|
|
|
7 |
|
|
|
8 |
<body>
|
|
|
9 |
<div align='center'>
|
|
|
10 |
<table cellpadding='0' cellspacing='0' id='contenu' class='round' style='width: 80%; margin-bottom: 20px'>
|
|
|
11 |
<tr>
|
|
|
12 |
<td class='borderhg'> </td>
|
|
|
13 |
<td class='borderh'> </td>
|
|
|
14 |
<td class='cornerhd'></td>
|
|
|
15 |
</tr>
|
|
|
16 |
<tr>
|
|
|
17 |
<td class='borderg'> </td>
|
|
|
18 |
<td><a id="top"></a><h2> Class Polygon</h2><div class="extends"><ul>
|
|
|
19 |
<li><a href="Shape.html">Shape</a></li>
|
|
|
20 |
<ul><li>Polygon</li></ul>
|
|
|
21 |
</ul></div><div class="description">
|
|
|
22 |
<p>
|
|
|
23 |
Un polygone est une succcession de points.
|
|
|
24 |
</p>
|
|
|
25 |
</div><ul class="links"><li><a href="index.html">Retourner voir la liste de toutes les classes</a></li></ul><h2>Méthodes et propriétés</h2><ul class="properties"><li>
|
|
|
26 |
<span class="access">protected</span> <span class="type">array</span> <a href="Polygon.html#property.points"><span class="argument">$points</span></a>
|
|
|
27 |
</li></ul><ul class="methods">
|
|
|
28 |
<li>
|
|
|
29 |
<span class="access">public</span> <a href="Polygon.html#method.set">set</a>(<span class="type">int</span> <span class="argument">$pos</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$point</span>)
|
|
|
30 |
</li>
|
|
|
31 |
<li>
|
|
|
32 |
<span class="access">public</span> <a href="Point.html"><span class="type">Point</span></a> <a href="Polygon.html#method.get">get</a>(<span class="type">int</span> <span class="argument">$pos</span>)
|
|
|
33 |
</li>
|
|
|
34 |
<li>
|
|
|
35 |
<span class="access">public</span> <a href="Polygon.html#method.append">append</a>(<a href="Point.html"><span class="type">Point</span></a> <span class="argument">$point</span>)
|
|
|
36 |
</li>
|
|
|
37 |
<li>
|
|
|
38 |
<span class="access">public</span> <span class="type">int</span> <a href="Polygon.html#method.count">count</a>()
|
|
|
39 |
</li>
|
|
|
40 |
<li>
|
|
|
41 |
<span class="access">public</span> <span class="type">array</span> <a href="Polygon.html#method.all">all</a>()
|
|
|
42 |
</li>
|
|
|
43 |
<li>
|
|
|
44 |
<span class="access">public</span> <span class="type">array</span> <a href="Polygon.html#method.getLines">getLines</a>()
|
|
|
45 |
</li>
|
|
|
46 |
<li>
|
|
|
47 |
<span class="access">public</span> <span class="type">array</span> <a href="Polygon.html#method.getBoxPoints">getBoxPoints</a>()
|
|
|
48 |
</li>
|
|
|
49 |
<li>
|
|
|
50 |
<span class="access">public</span> <span class="type">array</span> <a href="Polygon.html#method.getBoxYRange">getBoxYRange</a>()
|
|
|
51 |
</li>
|
|
|
52 |
<li>
|
|
|
53 |
<span class="access">public</span> <span class="type">array</span> <a href="Polygon.html#method.getBoxXRange">getBoxXRange</a>()
|
|
|
54 |
</li>
|
|
|
55 |
</ul><h2>Documentation</h2><ul class="doc">
|
|
|
56 |
<li class="property">
|
|
|
57 |
<a id="property.points"></a><span class="access">protected</span> <span class="type">array</span> <a href="Polygon.html#property.points"><span class="argument">$points</span></a><div class="description">
|
|
|
58 |
Stocke tous les points du polygone.
|
|
|
59 |
</div>
|
|
|
60 |
<div class="description-bottom"><a href="Polygon.html#top">Remonter</a></div>
|
|
|
61 |
</li>
|
|
|
62 |
<li class="method">
|
|
|
63 |
<a id="method.set"></a><span class="access">public</span> <a href="Polygon.html#method.set">set</a>(<span class="type">int</span> <span class="argument">$pos</span>, <a href="Point.html"><span class="type">Point</span></a> <span class="argument">$point</span>)
|
|
|
64 |
<div class="description">
|
|
|
65 |
Ajoute ou remplace un point $point dans le polygon à la position $pos.
|
|
|
66 |
Cette méthode accepte la valeur NULL pour spécifier que ce point doit être ignoré.
|
|
|
67 |
</div>
|
|
|
68 |
<div class="description-bottom"><a href="Polygon.html#top">Remonter</a></div>
|
|
|
69 |
</li>
|
|
|
70 |
<li class="method">
|
|
|
71 |
<a id="method.get"></a><span class="access">public</span> <a href="Point.html"><span class="type">Point</span></a> <a href="Polygon.html#method.get">get</a>(<span class="type">int</span> <span class="argument">$pos</span>)
|
|
|
72 |
<div class="description">
|
|
|
73 |
Retourne le point du polygone à la position $pos.
|
|
|
74 |
</div>
|
|
|
75 |
<div class="description-bottom"><a href="Polygon.html#top">Remonter</a></div>
|
|
|
76 |
</li>
|
|
|
77 |
<li class="method">
|
|
|
78 |
<a id="method.append"></a><span class="access">public</span> <a href="Polygon.html#method.append">append</a>(<a href="Point.html"><span class="type">Point</span></a> <span class="argument">$point</span>)
|
|
|
79 |
<div class="description">
|
|
|
80 |
Ajoute un point $point à la fin du polygone.
|
|
|
81 |
Cette méthode accepte la valeur NULL pour spécifier que ce point doit être ignoré.
|
|
|
82 |
</div>
|
|
|
83 |
<div class="description-bottom"><a href="Polygon.html#top">Remonter</a></div>
|
|
|
84 |
</li>
|
|
|
85 |
<li class="method">
|
|
|
86 |
<a id="method.count"></a><span class="access">public</span> <span class="type">int</span> <a href="Polygon.html#method.count">count</a>()
|
|
|
87 |
<div class="description">
|
|
|
88 |
Retourne le nombre de points contenus dans le polygone.
|
|
|
89 |
</div>
|
|
|
90 |
<div class="description-bottom"><a href="Polygon.html#top">Remonter</a></div>
|
|
|
91 |
</li>
|
|
|
92 |
<li class="method">
|
|
|
93 |
<a id="method.all"></a><span class="access">public</span> <span class="type">array</span> <a href="Polygon.html#method.all">all</a>()
|
|
|
94 |
<div class="description">
|
|
|
95 |
Permet de récupérer tous les points du polygone.
|
|
|
96 |
</div>
|
|
|
97 |
<div class="description-bottom"><a href="Polygon.html#top">Remonter</a></div>
|
|
|
98 |
</li>
|
|
|
99 |
<li class="method">
|
|
|
100 |
<a id="method.getLines"></a><span class="access">public</span> <span class="type">array</span> <a href="Polygon.html#method.getLines">getLines</a>()
|
|
|
101 |
<ul class="version"><li>
|
|
|
102 |
Disponible depuis Artichow 1.0.9</li></ul>
|
|
|
103 |
<div class="description">
|
|
|
104 |
Renvoie un tableau contenant toutes les lignes formant le polygone.
|
|
|
105 |
</div>
|
|
|
106 |
<div class="description-bottom"><a href="Polygon.html#top">Remonter</a></div>
|
|
|
107 |
</li>
|
|
|
108 |
<li class="method">
|
|
|
109 |
<a id="method.getBoxPoints"></a><span class="access">public</span> <span class="type">array</span> <a href="Polygon.html#method.getBoxPoints">getBoxPoints</a>()
|
|
|
110 |
<ul class="version"><li>
|
|
|
111 |
Disponible depuis Artichow 1.0.9</li></ul>
|
|
|
112 |
<div class="description">
|
|
|
113 |
Renvoie un tableau contenant les points supérieur droit et inférieur gauche du rectangle encadrant le polygone.
|
|
|
114 |
</div>
|
|
|
115 |
<div class="description-bottom"><a href="Polygon.html#top">Remonter</a></div>
|
|
|
116 |
</li>
|
|
|
117 |
<li class="method">
|
|
|
118 |
<a id="method.getBoxYRange"></a><span class="access">public</span> <span class="type">array</span> <a href="Polygon.html#method.getBoxYRange">getBoxYRange</a>()
|
|
|
119 |
<ul class="version"><li>
|
|
|
120 |
Disponible depuis Artichow 1.0.9</li></ul>
|
|
|
121 |
<div class="description">
|
|
|
122 |
Renvoie un tableau contenant les ordonnées minimales et maximales de n'importe quel point appartenant au polygone (c'est à dire l'étendue du polygone le long de l'axe des ordonnées).
|
|
|
123 |
</div>
|
|
|
124 |
<div class="description-bottom"><a href="Polygon.html#top">Remonter</a></div>
|
|
|
125 |
</li>
|
|
|
126 |
<li class="method">
|
|
|
127 |
<a id="method.getBoxXRange"></a><span class="access">public</span> <span class="type">array</span> <a href="Polygon.html#method.getBoxXRange">getBoxXRange</a>()
|
|
|
128 |
<ul class="version"><li>
|
|
|
129 |
Disponible depuis Artichow 1.0.9</li></ul>
|
|
|
130 |
<div class="description">
|
|
|
131 |
Renvoie un tableau contenant les abscisses minimales et maximales de n'importe quel point appartenant au polygone (c'est à dire l'étendue du polygone le long de l'axe des abscisses).
|
|
|
132 |
</div>
|
|
|
133 |
<div class="description-bottom"><a href="Polygon.html#top">Remonter</a></div>
|
|
|
134 |
</li>
|
|
|
135 |
</ul>
|
|
|
136 |
</td>
|
|
|
137 |
<td class='borderd'> </td>
|
|
|
138 |
</tr>
|
|
|
139 |
<tr>
|
|
|
140 |
<td class='cornerbg'></td>
|
|
|
141 |
<td class='borderb'> </td>
|
|
|
142 |
<td class='cornerbd'></td>
|
|
|
143 |
</tr>
|
|
|
144 |
</table>
|
|
|
145 |
</div>
|
|
|
146 |
</body>
|
|
|
147 |
</html>
|