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

Class: DhtmlSelectionParser

Source Location: /client/HttpRequestHandler.php

Class Overview


Parses dhtml HTTP Requests, and returns a shape for the drawn selection.


Constants

Methods



Class Details

[line 78]
Parses dhtml HTTP Requests, and returns a shape for the drawn selection.



[ Top ]


Class Methods


method coordsToPoints [line 139]

array coordsToPoints( string $selection_coords, Dimension $imageSize, Bbox $bbox)

Parses coords array data and converts it to an array of Point



Tags:

return:  array of Point in geographical coordinates
access:  private


Parameters:

string   $selection_coords   serialized pixel coordinates
Dimension   $imageSize   image size
Bbox   $bbox   current bbox in geographical coordinates

[ Top ]

method coordToPoint [line 119]

Point coordToPoint( string $coord, Dimension $imageSize, Bbox $bbox)

Parses coord data and converts it to Point



Tags:

return:  point in geographical coordinates
access:  private


Parameters:

string   $coord   serialized coordinates
Dimension   $imageSize   image size
Bbox   $bbox   current bbox in geographical coordinates

[ Top ]

method getCircleShape [line 227]

Circle getCircleShape( Dimension $imageSize, Bbox $bbox)

Parses coords array data stored in $_REQUEST and converts it to a Circle



Tags:

return:  circle in geographical coordinates
access:  private


Parameters:

Dimension   $imageSize   image size
Bbox   $bbox   current bbox in geographical coordinates

[ Top ]

method getLineShape [line 157]

Line getLineShape( Dimension $imageSize, Bbox $bbox)

Parses coords array data stored in $_REQUEST and converts it to a Line



Tags:

return:  line in geographical coordinates
access:  private


Parameters:

Dimension   $imageSize   image size
Bbox   $bbox   current bbox in geographical coordinates

[ Top ]

method getMainmapShape [line 257]

Shape getMainmapShape( CartoForm $cartoForm, Dimension $imageSize, Bbox $bbox)

Converts coords array data to a Shape



Tags:

return:  shape in geographical coordinates
access:  public


Parameters:

CartoForm   $cartoForm  
Dimension   $imageSize   image size
Bbox   $bbox   current bbox in geographical coordinates

[ Top ]

method getPointShape [line 102]

Point getPointShape( Dimension $imageSize, Bbox $bbox)

Parses coords array data stored in $_REQUEST and converts it to Point



Tags:

return:  point in geographical coordinates
access:  private


Parameters:

Dimension   $imageSize   image size
Bbox   $bbox   current bbox in geographical coordinates

[ Top ]

method getPolygonShape [line 204]

Polygon getPolygonShape( Dimension $imageSize, Bbox $bbox)

Parses coords array data stored in $_REQUEST and converts it to a Polygon



Tags:

return:  polygon in geographical coordinates
access:  private


Parameters:

Dimension   $imageSize   image size
Bbox   $bbox   current bbox in geographical coordinates

[ Top ]

method getRectangleShape [line 180]

Rectangle getRectangleShape( Dimension $imageSize, Bbox $bbox)

Parses coords array data stored in $_REQUEST and converts it to a Rectangle



Tags:

return:  rectangle in geographical coordinates
access:  private


Parameters:

Dimension   $imageSize   image size
Bbox   $bbox   current bbox in geographical coordinates

[ Top ]

method isMainmapClicked [line 87]

boolean isMainmapClicked( )

Returns true if main map was clicked



Tags:

static:  


[ Top ]


Class Constants

SELECTION_COORDS =  'selection_coords'

[line 81]


[ Top ]

SELECTION_TYPE =  'selection_type'

[line 80]


[ Top ]



Documentation generated on Thu, 04 Sep 2008 11:39:33 +0200 by phpDocumentor 1.3.0RC3