Module fig :: Class ArcBase

Class ArcBase




Base class of Arc-like objects (PieArc, OpenArc).

Instance Methods
 
__init__(self, center=None, point1=None, point2=None, angle1=None, angle2=None, radius=None, direction=0)
 
angles(self)
Return start- and end-angle (in radians).
 
radius(self)
Return distance of first point from center
 
changeType(self, arcType)
Change type of this Arc.
 
__str__(self)
str(x)
 
bounds(self)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Properties
  center
  direction
  points

Inherited from Object: backwardArrow, capStyle, comment, depth, fillColor, fillStyle, forwardArrow, joinStyle, lineStyle, lineWidth, penColor, penStyle, styleValue

Inherited from object: __class__

Method Details

__init__(self, center=None, point1=None, point2=None, angle1=None, angle2=None, radius=None, direction=0)
(Constructor)

 
Overrides: Object.__init__

angles(self)

 
Return start- and end-angle (in radians). The second angle is smaller than the first iff direction is adClockwise.

changeType(self, arcType)

 
Change type of this Arc. arcType may be one of atPie or atOpen

__str__(self)
(Informal representation operator)

 
str(x)
Overrides: object.__str__
(inherited documentation)