pyfeyn is hosted by Hepforge, IPPP Durham

Package pyfeyn :: Module blobs :: Class Ellipse
[hide private]
[frames] | no frames]

Class Ellipse




An elliptical blob

Instance Methods [hide private]
  __init__(self, x=None, y=None, center=None, xradius=None, yradius=None, fill=[pyx.color.rgb.white], stroke=[pyx.color.rgb.black], points=None)
Constructor.
  getXRadius(self)
Get the component of the radius in the x-direction.
  setXRadius(self, xrad)
Set the component of the radius in the x-direction.
  getYRadius(self)
Get the component of the radius in the y-direction.
  setYRadius(self, yrad)
Set the component of the radius in the y-direction.
  getXYRadius(self)
Get the components of the radius in the x and y directions at the same time.
  setXYRadius(self, xrad, yrad)
Get the components of the radius in the x and y directions at the same time.
  getPath(self)
Get the path for this blob.
  draw(self, canvas)
Draw this blob on the given canvas.

Inherited from Blob: addLabel, addTrafo, clearFillStyles, clearLabels, clearStrokeStyles, clearTrafos, setFillStyle, setPoints, setStrokeStyle

Inherited from points.Point: arg, distance, getBlob, getX, getXY, getY, intercept, midpoint, removeLabels, setBlob, setX, setXY, setY, tangent, x, xy, y

Inherited from utils.Visible: __cmp__, getDepth, getVisiblePath, isVisible, setDepth


Class Variables [hide private]
  blobshape = 'ellipse'

Method Details [hide private]

__init__(self, x=None, y=None, center=None, xradius=None, yradius=None, fill=[pyx.color.rgb.white], stroke=[pyx.color.rgb.black], points=None)
(Constructor)

 
Constructor.
Overrides: Blob.__init__

getXRadius(self)

 
Get the component of the radius in the x-direction.

setXRadius(self, xrad)

 
Set the component of the radius in the x-direction.

getYRadius(self)

 
Get the component of the radius in the y-direction.

setYRadius(self, yrad)

 
Set the component of the radius in the y-direction.

getXYRadius(self)

 
Get the components of the radius in the x and y directions at the same time.

setXYRadius(self, xrad, yrad)

 
Get the components of the radius in the x and y directions at the same time.

getPath(self)

 
Get the path for this blob.
Overrides: points.Point.getPath

draw(self, canvas)

 
Draw this blob on the given canvas.
Overrides: points.Point.draw

Class Variable Details [hide private]

blobshape

None
Value:
'ellipse'