Package pyscript :: Module arrowheads :: Class ArrowHead
[show private | hide private]
[frames | no frames]

Class ArrowHead

object --+        
         |        
     PsObj --+    
             |    
     AffineObj --+
                 |
                ArrowHead

Known Subclasses:
ArrowHead1, ArrowHead2, ArrowHead3, ArrowHead4

Arrow head object
Method Summary
  __init__(self, **options)
can pass a dict of atributes to set
  bbox(self)
Return the bounding box of the Path
  body(self)
Return the postscript body of the Path
    Inherited from AffineObj
self concat(self, t, p)
concat matrix t to tranformation matrix
P etoi(self, p_e)
convert external to internal co-ords
P itoe(self, p_i)
convert internal to external co-ords
self move(self, *args)
translate object by a certain amount
string postbody(self)
undo coordinate system transformation
string prebody(self)
set up transformation of coordinate system
self reflect(self, angle, p)
reflect object in mirror
self rotate(self, angle, p)
rotate object, the rotation is around p when supplied otherwise it's the objects origin
self scale(self, sx, sy, p)
scale object size (towards objects origin or p)
self shear(self, s, angle, p)
shear object
    Inherited from PsObj
self __call__(self, **options)
Set a whole lot of attributes in one go
string __repr__(self)
Return a representation of this object
string __str__(self)
return actual postscript string to generate object
self copy(self, **options)
return a copy of this object with listed attributes modified
    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
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Class Variable Summary
int angle: the direction to point
Color bg: fill color or None for no fill
int closed: whether to close the path or not
Color fg: line color of None for no line
int linejoin: 0=miter, 1=round, 2=bevel
float linewidth: linewidth
int miterlimit = 2                                                                     
  mitrelimit: length of mitre of corners
int pos = 1                                                                     
int reverse = 0                                                                     
int scaleh: scale height by this amount
int scalew: scale the width by this amount
list shape: list of tuples giving arguments to postscripts curveto operator
tuple start: tuple giving starting point for path
P tip: where to position the tip of the arrow head
    Inherited from AffineObj
P o = <class 'pyscript.vectors.P'>
Matrix T = <pyscript.vectors.Matrix instance at 0x40449cec>

Method Details

__init__(self, *param, **options)
(Constructor)

can pass a dict of atributes to set
Overrides:
pyscript.base.PsObj.__init__ (inherited documentation)

bbox(self)

Return the bounding box of the Path
Overrides:
pyscript.base.PsObj.bbox

body(self)

Return the postscript body of the Path
Overrides:
pyscript.base.PsObj.body

Class Variable Details

angle

the direction to point

Convenience variables modifying the head size:
Type:
int
Value:
0                                                                     

bg

fill color or None for no fill
Type:
Color
Value:
<class 'pyscript.base.Color'>                                          

closed

whether to close the path or not
Type:
int
Value:
1                                                                     

fg

line color of None for no line
Type:
Color
Value:
<class 'pyscript.base.Color'>                                          

linejoin

0=miter, 1=round, 2=bevel
Type:
int
Value:
2                                                                     

linewidth

linewidth
Type:
float
Value:
0.20000000000000001                                                   

miterlimit

Type:
int
Value:
2                                                                     

mitrelimit

length of mitre of corners

pos

Type:
int
Value:
1                                                                     

reverse

Type:
int
Value:
0                                                                     

scaleh

scale height by this amount

The actual shape of the arrowhead is defined by the following, distances are given in points
Type:
int
Value:
1                                                                     

scalew

scale the width by this amount
Type:
int
Value:
1                                                                     

shape

list of tuples giving arguments to postscripts curveto operator
Type:
list
Value:
[(0, 0, 1.5, -4.8540000000000001, 1.5, -4.8540000000000001),
 (1.5,
  -4.8540000000000001,
  -1.5,
  -4.8540000000000001,
  -1.5,
  -4.8540000000000001),
 (-1.5, -4.8540000000000001, 0, 0, 0, 0)]                              

start

tuple giving starting point for path
Type:
tuple
Value:
(0, 0)                                                                 

tip

where to position the tip of the arrow head
Type:
P
Value:
<class 'pyscript.vectors.P'>                                           

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