CorePlugins

# Class: LocationCalculator Source Location: /coreplugins/location/server/ServerLocation.php
### Class Overview
Base abstract class for classes used to calculate bbox's and scales #### Author(s): | ### Variables $locationPlugin $log $requ | ### Methods __construct getBbox getScale
### Child classes: BboxLocationCalculator Location calculator for BboxLocationRequest PanLocationCalculator Location calculator for PanLocationRequest ZoomPointLocationCalculator Location calculator for ZoomPointLocationRequest RecenterLocationCalculator Location calculator for RecenterLocationRequest
### Class Details [line 41] Base abstract class for classes used to calculate bbox's and scales There is a one to one mapping between LocationRequests and these LocationCalculator's. #### Tags:
abstract: |
[ Top ] ### Class Variables #### $locationPlugin = [line 51] #### Tags:
access: | public
Type: | ServerLocation
[ Top ] #### $log = [line 46] #### Tags:
access: | private
Type: | Logger
[ Top ] #### $requ = [line 56] #### Tags:
access: | public
Type: | LocationRequest
[ Top ] ### Class Methods ### constructor __construct [line 63]
`LocationCalculator __construct( ServerLocation $locationPlugin, LocationRequest $requ)`
Constructor #### Tags:
access: | public
Overridden in child classes as: BboxLocationCalculator::__construct() Constructor PanLocationCalculator::__construct() Constructor ZoomPointLocationCalculator::__construct() Constructor RecenterLocationCalculator::__construct() Constructor #### Parameters:
ServerLocation | $locationPlugin |
LocationRequest | $requ |
[ Top ] ### method getBbox [line 73]
`Bbox getBbox( )`
Computes new Bbox #### Tags:
abstract: |
Overridden in child classes as: BboxLocationCalculator::getBbox() PanLocationCalculator::getBbox() ZoomPointLocationCalculator::getBbox() RecenterLocationCalculator::getBbox() [ Top ] ### method getScale [line 79]
`double getScale( )`
Computes new scale #### Tags:
abstract: |
Overridden in child classes as: BboxLocationCalculator::getScale() PanLocationCalculator::getScale() ZoomPointLocationCalculator::getScale() RecenterLocationCalculator::getScale() [ Top ] Documentation generated on Fri, 21 Sep 2007 13:31:03 +0200 by phpDocumentor 1.3.0RC3