Package pyscript :: Module vectors :: Class Bbox
[show private | hide private]
[frames | no frames]

Class Bbox

object --+
         |
        Bbox


A Rectangular area defined by sw corner and width and height. which specifies a boundingbox.

Has the same attributes (but read only) as Area:
     nw--n--ne
     |       |
     w   c   e
     |       |
     sw--s--se

Method Summary
  __init__(self, **options)
can pass a dict of atributes to set
  is_set(self)
Is the bounding box set with a value?
  union(self, bbox, itoe)
Expand this boundingbox to include bbox, passing bbox through itoe if supplied
  _get_c(self)
Get the "centre" point
  _get_e(self)
Get the "east" point
  _get_n(self)
Get the "north" point
  _get_ne(self)
Get the "north-east" point
  _get_nw(self)
Get the "north-west" point
  _get_s(self)
Get the "south" point
  _get_se(self)
Get the "south-east" point
  _get_w(self)
Get the "west" point
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Property Summary
  c
  e
  n
  ne
  nw
  s
  se
  w

Class Variable Summary
int height = 0                                                                     
NoneType sw = None                                                                  
int width = 0                                                                     

Method Details

__init__(self, **options)
(Constructor)

can pass a dict of atributes to set
Overrides:
__builtin__.object.__init__

is_set(self)

Is the bounding box set with a value?

union(self, bbox, itoe=<function Identity at 0x404fded4>)

Expand this boundingbox to include bbox, passing bbox through itoe if supplied

_get_c(self)

Get the "centre" point

_get_e(self)

Get the "east" point

_get_n(self)

Get the "north" point

_get_ne(self)

Get the "north-east" point

_get_nw(self)

Get the "north-west" point

_get_s(self)

Get the "south" point

_get_se(self)

Get the "south-east" point

_get_w(self)

Get the "west" point

Property Details

c

Get Method:
_get_c(self)

e

Get Method:
_get_e(self)

n

Get Method:
_get_n(self)

ne

Get Method:
_get_ne(self)

nw

Get Method:
_get_nw(self)

s

Get Method:
_get_s(self)

se

Get Method:
_get_se(self)

w

Get Method:
_get_w(self)

Class Variable Details

height

Type:
int
Value:
0                                                                     

sw

Type:
NoneType
Value:
None                                                                  

width

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.0 on Mon Apr 24 17:02:35 2006 http://epydoc.sf.net