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 79]
Parses dhtml HTTP Requests, and returns a shape for the drawn selection.



[ Top ]


Class Methods


method coordsToPoints [line 119]

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 getLineShape [line 137]

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 223]

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 206]

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 183]

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 160]

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 88]

boolean isMainmapClicked( )

Returns true if main map was clicked



Tags:

static:  


[ Top ]

method pixelToPoint [line 104]

Point pixelToPoint( string $pixel_coord, Dimension $imageSize, Bbox $bbox)

Parses pixel data and converts it to Point



Tags:

return:  point in geographical coordinates
access:  private


Parameters:

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

[ Top ]


Class Constants

SELECTION_COORDS =  'selection_coords'

[line 82]


[ Top ]

SELECTION_TYPE =  'selection_type'

[line 81]


[ Top ]



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