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

Class: Shape

Source Location: /common/BasicTypes.php

Class Overview

Serializable
   |
   --Shape

Abstract class for shapes


Author(s):

Variables

Methods


Child classes:

Point
A single point
Line
A (poly)line
Bbox
A bounding box (bbox)
Polygon
A closed polygon

Inherited Variables

Inherited Methods

Class: Serializable

Serializable::__construct()
Constructor
Serializable::copyAllVars()
Copy all properties from one object to another (overwriting previous ones)
Serializable::getValue()
Returns structure's property value if property exists
Serializable::guessClassName()
Tries to guess the class to use from the property being unserialised.
Serializable::unserialize()
Unserializes from a stdClass structure
Serializable::unserializeArray()
Returns an array of typed values
Serializable::unserializeObject()
Returns an unserialized object from a stdClass structure
Serializable::unserializeObjectMap()
Returns an array of unserialized objects from a stdClass structure
Serializable::unserializeStringArray()
Returns an array of typed values from a string
Serializable::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 Variables

$label =

[line 110]



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


method getArea [line 122]

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()

[ Top ]

method getCenter [line 116]

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()

[ Top ]

method unserialize [line 127]

void unserialize( mixed $struct)



Tags:

access:  public
see:  Serializable::unserialize()


Overridden in child classes as:

Point::unserialize()
Line::unserialize()
Bbox::unserialize()
Unserializes a Bbox
Rectangle::unserialize()
Polygon::unserialize()

Overrides Serializable::unserialize() (Unserializes from a stdClass structure)

[ Top ]


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