@@ -26,12 +26,22 @@ discard block |
||
26 | 26 | // timeout value it will be overwritten with a newer version. |
27 | 27 | // If timeout is set to 0 this is the same as infinite large timeout and if |
28 | 28 | // timeout is set to -1 this is the same as infinite small timeout |
29 | + |
|
30 | + /** |
|
31 | + * @param integer $aTimeout |
|
32 | + */ |
|
29 | 33 | public function SetTimeout($aTimeout) |
30 | 34 | { |
31 | 35 | $this->timeout = $aTimeout; |
32 | 36 | } |
33 | 37 | |
34 | 38 | // Output image to browser and also write it to the cache |
39 | + |
|
40 | + /** |
|
41 | + * @param Image $aImage |
|
42 | + * @param boolean $aInline |
|
43 | + * @param string $aStrokeFileName |
|
44 | + */ |
|
35 | 45 | public function PutAndStream($aImage, $aCacheFileName, $aInline, $aStrokeFileName) |
36 | 46 | { |
37 | 47 | |
@@ -169,6 +179,11 @@ discard block |
||
169 | 179 | // Check if a given image is in cache and in that case |
170 | 180 | // pass it directly on to web browser. Return false if the |
171 | 181 | // image file doesn't exist or exists but is to old |
182 | + |
|
183 | + /** |
|
184 | + * @param Image $aImage |
|
185 | + * @param string $aCacheFileName |
|
186 | + */ |
|
172 | 187 | public function GetAndStream($aImage, $aCacheFileName) |
173 | 188 | { |
174 | 189 | if ($this->Isvalid($aCacheFileName)) { |
@@ -181,6 +196,10 @@ discard block |
||
181 | 196 | //--------------- |
182 | 197 | // PRIVATE METHODS |
183 | 198 | // Create all necessary directories in a path |
199 | + |
|
200 | + /** |
|
201 | + * @param string $aFile |
|
202 | + */ |
|
184 | 203 | public function MakeDirs($aFile) |
185 | 204 | { |
186 | 205 | $dirs = array(); |
@@ -220,6 +220,10 @@ |
||
220 | 220 | // * $aBorder, if set to anything besides false this will draw a |
221 | 221 | // a border of the speciied color around the image |
222 | 222 | // -------------------------------------------------------------------- |
223 | + |
|
224 | + /** |
|
225 | + * @param integer $aDir |
|
226 | + */ |
|
223 | 227 | public function Skew3D($aHorizon = 120, $aSkewDist = 150, $aDir = SKEW3D_DOWN, $aHiQuality = false, $aMinSize = true, $aFillColor = '#FFFFFF', $aBorder = false) |
224 | 228 | { |
225 | 229 | return $this->_Skew3D($this->gdImg, $aHorizon, $aSkewDist, $aDir, $aHiQuality, |
@@ -136,10 +136,10 @@ discard block |
||
136 | 136 | /** |
137 | 137 | * Determine if the specified isobar crosses the horizontal edge specified by its row and column |
138 | 138 | * |
139 | - * @param $aRow Row index of edge to be checked |
|
140 | - * @param $aCol Col index of edge to be checked |
|
139 | + * @param integer $aRow Row index of edge to be checked |
|
140 | + * @param integer $aCol Col index of edge to be checked |
|
141 | 141 | * @param $aIsobar Isobar value |
142 | - * @return true if the isobar is crossing this edge |
|
142 | + * @return boolean if the isobar is crossing this edge |
|
143 | 143 | */ |
144 | 144 | public function isobarHCrossing($aRow, $aCol, $aIsobar) |
145 | 145 | { |
@@ -161,10 +161,10 @@ discard block |
||
161 | 161 | /** |
162 | 162 | * Determine if the specified isobar crosses the vertical edge specified by its row and column |
163 | 163 | * |
164 | - * @param $aRow Row index of edge to be checked |
|
165 | - * @param $aCol Col index of edge to be checked |
|
164 | + * @param integer $aRow Row index of edge to be checked |
|
165 | + * @param integer $aCol Col index of edge to be checked |
|
166 | 166 | * @param $aIsobar Isobar value |
167 | - * @return true if the isobar is crossing this edge |
|
167 | + * @return boolean if the isobar is crossing this edge |
|
168 | 168 | */ |
169 | 169 | public function isobarVCrossing($aRow, $aCol, $aIsobar) |
170 | 170 | { |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | * Determine all edges, horizontal and vertical that the specified isobar crosses. The crossings |
188 | 188 | * are recorded in the two edge matrices. |
189 | 189 | * |
190 | - * @param $aIsobar The value of the isobar to be checked |
|
190 | + * @param integer $aIsobar The value of the isobar to be checked |
|
191 | 191 | */ |
192 | 192 | public function determineIsobarEdgeCrossings($aIsobar) |
193 | 193 | { |
@@ -214,9 +214,9 @@ discard block |
||
214 | 214 | * isobar- The crossing is simpy detrmined with a linear interpolation between the two vertices |
215 | 215 | * on each side of the edge and the value of the isobar |
216 | 216 | * |
217 | - * @param $aRow Row of edge |
|
218 | - * @param $aCol Column of edge |
|
219 | - * @param $aEdgeDir Determine if this is a horizontal or vertical edge |
|
217 | + * @param integer $aRow Row of edge |
|
218 | + * @param integer $aCol Column of edge |
|
219 | + * @param integer $aEdgeDir Determine if this is a horizontal or vertical edge |
|
220 | 220 | * @param $ib The isobar value |
221 | 221 | * @return unknown_type |
222 | 222 | */ |
@@ -28,6 +28,9 @@ discard block |
||
28 | 28 | $this->img = $img; |
29 | 29 | } |
30 | 30 | |
31 | + /** |
|
32 | + * @param integer $aNum |
|
33 | + */ |
|
31 | 34 | public function SetNumColors($aNum) |
32 | 35 | { |
33 | 36 | $this->numcolors = $aNum; |
@@ -328,6 +331,11 @@ discard block |
||
328 | 331 | // Please note that this is NOT a generic gradient polygon fill |
329 | 332 | // routine. It assumes that the bottom is flat (like a drawing |
330 | 333 | // of a mountain) |
334 | + |
|
335 | + /** |
|
336 | + * @param string $from_color |
|
337 | + * @param string $to_color |
|
338 | + */ |
|
331 | 339 | public function FilledFlatPolygon($pts, $from_color, $to_color) |
332 | 340 | { |
333 | 341 | if (count($pts) == 0) { |
@@ -167,6 +167,10 @@ |
||
167 | 167 | return $this->_Stroke($dummy, null, null, true); |
168 | 168 | } |
169 | 169 | |
170 | + /** |
|
171 | + * @param double $x |
|
172 | + * @param double $y |
|
173 | + */ |
|
170 | 174 | public function _Stroke($aImg, $x = null, $y = null, $aReturnWidthHeight = false) |
171 | 175 | { |
172 | 176 | if ($this->iFile != '' && $this->iCountryFlag != '') { |
@@ -144,6 +144,11 @@ discard block |
||
144 | 144 | return $this->csimareas; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param integer $i |
|
149 | + * @param double $xc |
|
150 | + * @param double $yc |
|
151 | + */ |
|
147 | 152 | public function AddSliceToCSIM($i, $xc, $yc, $radius, $sa, $ea) |
148 | 153 | { |
149 | 154 | //Slice number, ellipse centre (x,y), height, width, start angle, end angle |
@@ -1007,6 +1012,9 @@ discard block |
||
1007 | 1012 | } |
1008 | 1013 | } |
1009 | 1014 | |
1015 | + /** |
|
1016 | + * @param double $yc |
|
1017 | + */ |
|
1010 | 1018 | public function StrokeAllLabels($img, $xc, $yc, $radius) |
1011 | 1019 | { |
1012 | 1020 | // First normalize all angles for labels |
@@ -87,6 +87,15 @@ discard block |
||
87 | 87 | } |
88 | 88 | } |
89 | 89 | |
90 | + /** |
|
91 | + * @param integer $i |
|
92 | + * @param double $xc |
|
93 | + * @param double $yc |
|
94 | + * @param double $height |
|
95 | + * @param double $width |
|
96 | + * @param double $sa |
|
97 | + * @param double $ea |
|
98 | + */ |
|
90 | 99 | public function Add3DSliceToCSIM($i, $xc, $yc, $height, $width, $thick, $sa, $ea) |
91 | 100 | { |
92 | 101 | //Slice number, ellipse centre (x,y), height, width, start angle, end angle |
@@ -201,6 +210,10 @@ discard block |
||
201 | 210 | } |
202 | 211 | |
203 | 212 | // Draw one 3D pie slice at position ($xc,$yc) with height $z |
213 | + |
|
214 | + /** |
|
215 | + * @param double $h |
|
216 | + */ |
|
204 | 217 | public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65) |
205 | 218 | { |
206 | 219 | |
@@ -413,6 +426,13 @@ discard block |
||
413 | 426 | } |
414 | 427 | |
415 | 428 | // Draw a 3D Pie |
429 | + |
|
430 | + /** |
|
431 | + * @param integer $aaoption |
|
432 | + * @param double $yc |
|
433 | + * @param integer $angle |
|
434 | + * @param double $z |
|
435 | + */ |
|
416 | 436 | public function Pie3D($aaoption, $img, $data, $colors, $xc, $yc, $d, $angle, $z, |
417 | 437 | $shadow = 0.65, $startangle = 0, $edgecolor = "", $edgeweight = 1) |
418 | 438 | { |
@@ -746,6 +766,13 @@ discard block |
||
746 | 766 | $img->PopColor(); |
747 | 767 | } |
748 | 768 | |
769 | + /** |
|
770 | + * @param double $sa |
|
771 | + * @param double $ea |
|
772 | + * @param double $h |
|
773 | + * @param string $edgecolor |
|
774 | + * @param boolean $fulledge |
|
775 | + */ |
|
749 | 776 | public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge) |
750 | 777 | { |
751 | 778 | $step = 0.02; |
@@ -905,6 +932,12 @@ discard block |
||
905 | 932 | // PRIVATE METHODS |
906 | 933 | |
907 | 934 | // Position the labels of each slice |
935 | + |
|
936 | + /** |
|
937 | + * @param double $a |
|
938 | + * @param double $xp |
|
939 | + * @param double $yp |
|
940 | + */ |
|
908 | 941 | public function StrokeLabels($label, $img, $a, $xp, $yp, $z) |
909 | 942 | { |
910 | 943 | $this->value->halign = "left"; |
@@ -186,6 +186,11 @@ |
||
186 | 186 | } |
187 | 187 | } |
188 | 188 | |
189 | + /** |
|
190 | + * @param double $xc |
|
191 | + * @param double $yc |
|
192 | + * @param double $r |
|
193 | + */ |
|
189 | 194 | public function AddMiddleCSIM($xc, $yc, $r) |
190 | 195 | { |
191 | 196 | $xc = round($xc); |
@@ -188,6 +188,9 @@ |
||
188 | 188 | $this->legendcsimalt = $aCSIMAlt; |
189 | 189 | } |
190 | 190 | |
191 | + /** |
|
192 | + * @param integer $aWeight |
|
193 | + */ |
|
191 | 194 | public function SetWeight($aWeight) |
192 | 195 | { |
193 | 196 | $this->weight = $aWeight; |