Common

# Class: Shape Source Location: /common/BasicTypes.php
### Class Overview
    CwSerializable
       |
       --Shape
Abstract class for shapes #### Author(s): Sylvain Pasche <sylvain.pasche@camptocamp.com> | ### Methods getArea getCenter unserialize
### Child classes: Point A single point Line A (poly)line Bbox A bounding box (bbox) Polygon A closed polygon Circle A circle | ### Inherited Variables #### Class: CwSerializable CwSerializable::$className | ### Inherited Methods #### Class: CwSerializable CwSerializable::__construct() Constructor CwSerializable::copyAllVars() Copy all properties from one object to another (overwriting previous ones) CwSerializable::getValue() Returns structure's property value if property exists CwSerializable::guessClassName() Tries to guess the class to use from the property being unserialised. CwSerializable::unserialize() Unserializes from a stdClass structure CwSerializable::unserializeArray() Returns an array of typed values CwSerializable::unserializeObject() Returns an unserialized object from a stdClass structure CwSerializable::unserializeObjectMap() Returns an array of unserialized objects from a stdClass structure CwSerializable::unserializeStringArray() Returns an array of typed values from a string CwSerializable::unserializeValue() Returns a typed value from a structure property
### Class Details [line 106] Abstract class for shapes #### Tags:
abstract: |
author: | Sylvain Pasche <sylvain.pasche@camptocamp.com>
[ Top ] ### Class Methods ### method getArea [line 117]
`double getArea( )`
Computes the shape's area #### Tags:
return: | surface
access: | public
abstract: |
Overridden in child classes as: Point::getArea() Line::getArea() Bbox::getArea() Polygon::getArea() Circle::getArea() [ Top ] ### method getCenter [line 111]
`Point getCenter( )`
Computes the shape's center #### Tags:
return: | center
access: | public
abstract: |
Overridden in child classes as: Point::getCenter() Line::getCenter() Bbox::getCenter() Polygon::getCenter() Circle::getCenter() [ Top ] ### method unserialize [line 122]
`void unserialize( mixed $struct)`
#### Tags:
access: | public
see: | CwSerializable::unserialize()
Overridden in child classes as: Point::unserialize() Line::unserialize() Bbox::unserialize() Unserializes a Bbox Rectangle::unserialize() Polygon::unserialize() Circle::unserialize() Overrides CwSerializable::unserialize() (Unserializes from a stdClass structure) [ Top ] Documentation generated on Fri, 21 Sep 2007 13:30:31 +0200 by phpDocumentor 1.3.0RC3