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

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