Home | Trees | Index | Help |
|
---|
Package pyscript :: Module groups :: Class Group |
|
object
--+ |PsObj
--+ |AffineObj
--+ |Area
--+ | Group
Align
,
Assemble
,
Box
,
Box_1
,
Boxed
,
Boxed
,
BSBox
,
BSLine
,
Capacitor
,
Circled
,
Circled
,
CodeBox
,
ColumnBox
,
Detector
,
Detector
,
Eps
,
FreeSpace
,
Gate
,
Gate
,
LambdaPlate
,
Laser
,
Lens
,
Meter
,
Mirror
,
Modulator
,
NoWire
,
Page
,
Pages
,
PhaseShifter
,
Resistor
,
TeXArea
,
TeXBox
Method Summary | |
---|---|
Initialisation of Group object | |
Get an item from the list of objects | |
Get a slice of items from the list of objects | |
Returns the length of the object list | |
append object(s) to group | |
self |
apply attributes to all objects |
Bbox |
Gather together common bounding box for group Don't use Area's bbox as transformations may mean a tighter bbox (eg a circle) |
Returns the body postscript of the object | |
Clear all the elements and reset group to an empty group | |
insert object | |
recalculate internal container size based on objects within | |
Reverse the order of objects in the list of objects in the group | |
make sure this object can be inserted into group | |
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 | |
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 |
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 | |
---|---|
Inherited from Area | |
c | |
e | |
n | |
ne | |
nw | |
s | |
se | |
sw | |
w |
Class Variable Summary | |
---|---|
Inherited from Area | |
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 |
---|
__init__(self,
*objects,
**options)
Initialisation of Group object
|
__getitem__(self,
i)
Get an item from the list of objects
|
__getslice__(self,
i,
j)
Get a slice of items from the list of objects
|
__len__(self)
Returns the length of the object list
|
append(self, *objs, **options)append object(s) to group
|
apply(self, **options)apply attributes to all objects
|
bbox(self)Gather together common bounding box for group Don't use Area's bbox as transformations may mean a tighter bbox (eg a circle)
|
body(self)Returns the body postscript of the object
|
clear(self)Clear all the elements and reset group to an empty group |
insert(self, idx, obj)insert object
|
recalc_size(self)recalculate internal container size based on objects within |
reverse(self)Reverse the order of objects in the list of objects in the group |
validate(self, obj)make sure this object can be inserted into group
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Apr 24 17:02:37 2006 | http://epydoc.sf.net |