Home | Trees | Index | Help |
|
---|
Package pyscript :: Module objects :: Class Area |
|
object
--+ |PsObj
--+ |AffineObj
--+ | Area
Boxed
,
Circled
,
Epsf
,
Group
,
Paper
,
Rectangle
,
TeX
,
Text
A Rectangular area defined by sw corner and width and height.
defines the following compass points that can be set and retrived:nw--n--ne | | w c e | | sw--s--se
The origin is the sw corner and the others are calculated from the width and height attributes.
If a subclass should have the origin somewhere other than sw then overide the sw attribute to make it a functionMethod Summary | |
---|---|
Return the bounding box of the object | |
Get the "centre" point | |
Get the "east" point | |
Get the "north" point | |
Get the "north-east" point | |
Get the "north-west" point | |
Get the "south" point | |
Get the "south-east" point | |
Get the "south-west" point | |
Get the "west" point | |
Set the "centre" point | |
Set the "east" point | |
Set the "north" point | |
Set the "north-east" point | |
Set the "north-west" point | |
Set the "south" point | |
Set the "south-east" point | |
Set the "south-west" point | |
Set the "west" point | |
Inherited from AffineObj | |
self |
concat matrix t to tranformation matrix |
P |
convert external to internal co-ords |
P |
convert internal to external co-ords |
self |
translate object by a certain amount |
string |
undo coordinate system transformation |
string |
set up transformation of coordinate system |
self |
reflect object in mirror |
self |
rotate object, the rotation is around p when supplied otherwise it's the objects origin |
self |
scale object size (towards objects origin or p) |
self |
shear object |
Inherited from PsObj | |
can pass a dict of atributes to set | |
self |
Set a whole lot of attributes in one go |
string |
Return a representation of this object |
string |
return actual postscript string to generate object |
string |
subclasses should overide this for generating postscipt code |
self |
return a copy of this object with listed attributes modified |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Property Summary | |
---|---|
c | |
e | |
n | |
ne | |
nw | |
s | |
se | |
sw | |
w |
Class Variable Summary | |
---|---|
c = pyscript.objects.Area.c | |
int |
height : the height |
P |
isw = <class 'pyscript.vectors.P'>
|
int |
width : the width |
Inherited from AffineObj | |
P |
o = <class 'pyscript.vectors.P'>
|
Matrix |
T = <pyscript.vectors.Matrix instance at 0x40449cec>
|
Method Details |
---|
bbox(self)Return the bounding box of the object
|
_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_sw(self)Get the "south-west" point |
_get_w(self)Get the "west" point |
_set_c(self, pe)Set the "centre" point |
_set_e(self, pe)Set the "east" point |
_set_n(self, pe)Set the "north" point |
_set_ne(self, pe)Set the "north-east" point |
_set_nw(self, pe)Set the "north-west" point |
_set_s(self, pe)Set the "south" point |
_set_se(self, pe)Set the "south-east" point |
_set_sw(self, pe)Set the "south-west" point |
_set_w(self, pe)Set the "west" point |
Property Details |
---|
c |
e |
n |
ne |
nw |
s |
se |
sw |
w |
Class Variable Details |
---|
heightthe height
|
isw
|
widththe width
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Apr 24 17:02:36 2006 | http://epydoc.sf.net |