Plugins
[ class tree: Plugins ] [ index: Plugins ] [ all elements ]

Class: ServerOutline

Source Location: /plugins/outline/server/ServerOutline.php

Class Overview

PluginBase
   |
   --ServerPlugin
      |
      --ClientResponderAdapter
         |
         --ServerOutline

Server Outline class


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 28]
Server Outline class



[ Top ]


Class Variables

$log =

[line 33]



Tags:

access:  private

Type:   Logger
Overrides:   Array


[ Top ]



Class Methods


constructor __construct [line 38]

ServerOutline __construct( )

Constructor



Tags:

access:  public


Overrides ServerPlugin::__construct() (Constructor)

[ Top ]

method convertPolygon [line 160]

MsPolygonObj convertPolygon( Polygon $polygon)

Converts a Polygon to a Mapserver polygon object



Tags:

access:  private


Parameters:

Polygon   $polygon  

[ Top ]

method draw [line 263]

double draw( array $shapes, [boolean $maskMode = false], [mixed $labelMode = false])

Handles shapes drawing and area computation



Tags:

return:  area
access:  public


Parameters:

array   $shapes   array of shapes
boolean   $maskMode   mask mode

[ Top ]

method drawLine [line 105]

void drawLine( MsMapObj $msMapObj, line $line, mixed $labelMode)

Adds a line to Mapserver layer



Tags:

access:  private


Parameters:

MsMapObj   $msMapObj   Mapserver Map object
line   $line  

[ Top ]

method drawMap [line 248]

void drawMap( MsMapObj $msMapObj)

Draws map using drawQuery() or draw()



Tags:

access:  private


Parameters:

MsMapObj   $msMapObj   Mapserver Map object

[ Top ]

method drawPoint [line 72]

void drawPoint( MsMapObj $msMapObj, Point $point, mixed $labelMode)

Adds a point to Mapserver layer

If point layer is not defined in configuration file, tries with polygon layer.




Tags:

access:  private


Parameters:

MsMapObj   $msMapObj   Mapserver Map object
Point   $point  

[ Top ]

method drawPolygon [line 188]

void drawPolygon( MsMapObj $msMapObj, Polygon $polygon, boolean $labelMode, mixed $maskMode)

Adds a polygon to Mapserver layer

If not in mask mode, simply draws Polygon.

If in mask mode, uses MapScript pasteImage function to simulate a mask. This function doesn't include transparency handling. Mask color is set in configuration file, key maskColor.




Tags:

access:  private


Parameters:

MsMapObj   $msMapObj   Mapserver Map object
Polygon   $polygon  
boolean   $labelMode   mask mode on/off

[ Top ]

method drawRectangle [line 141]

void drawRectangle( MsMapObj $msMapObj, Rectangle $rectangle, boolean $labelMode, mixed $maskMode)

Adds a rectangle to Mapserver layer



Tags:

access:  private
see:  ServerOutline::drawPolygon()


Parameters:

MsMapObj   $msMapObj   Mapserver Map object
Rectangle   $rectangle  
boolean   $labelMode   mask mode on/off

[ Top ]

method getLayer [line 49]

MsLayer getLayer( MsMapObj $msMapObj, string $layerName)

Returns outline layer if it was defined



Tags:

return:  Mapserver Layer object
access:  private


Parameters:

MsMapObj   $msMapObj   Mapserver Map object
string   $layerName   layer name

[ Top ]

method handleDrawing [line 314]

OutlineResult handleDrawing( OutlineRequest $requ)

Handles shapes drawing and area computation



Tags:

access:  public


Overrides ClientResponderAdapter::handleDrawing() (parent method not documented)

Parameters:

OutlineRequest   $requ  

[ Top ]


Documentation generated on Wed, 6 Apr 2005 12:06:59 +0200 by phpDocumentor 1.3.0RC3