pyfeyn2.render.pyx.blobs.Ellipse

class pyfeyn2.render.pyx.blobs.Ellipse(x=None, y=None, center=None, xradius=None, yradius=None, fill=[<pyx.color.cmyk object>], stroke=[<pyx.color.cmyk object>], trafos=[], points=[], blob=None, labels=[], **kwargs)[source]

Bases: Blob

An elliptical blob

__init__(x=None, y=None, center=None, xradius=None, yradius=None, fill=[<pyx.color.cmyk object>], stroke=[<pyx.color.cmyk object>], trafos=[], points=[], blob=None, labels=[], **kwargs)[source]

Constructor.

Methods

__init__([x, y, center, xradius, yradius, ...])

Constructor.

addLabel(text[, displace, angle, size, ...])

Add a label.

addTrafo(trafo)

Add a transformation.

arg(otherpoint)

Return the angle between the x-axis and the straight line defined by this point and the argument (cf.

clearFillStyles()

Remove all the current fill styles.

clearLabels()

Remove all current labels.

clearStrokeStyles()

Remove all the current stroke styles.

clearTrafos()

Remove transformations.

distance(otherpoint)

Calculate the distance between this point and the argument.

draw(canvas)

Draw this blob on the given canvas.

getBlob()

Get the attached blob.

getDepth()

Return the depth at which this instance lives.

getPath()

Get the path for this blob.

getVisiblePath()

Return the visible path of this instance.

getX()

Return the x-coordinate of this point.

getXRadius()

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

getXY()

Return the x and y coordinates of this point as a 2-tuple.

getXYRadius()

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

getY()

Return the y-coordinate of this point.

getYRadius()

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

intercept(otherpoint)

Return the y-intercept of the straight line defined by this point and the argument.

isVisible()

Check if this instance is visible.

midpoint(otherpoint)

Return the point midway between this point and the argument.

removeLabels()

Remove all labels from this point.

setBlob(blob)

Set the attached blob.

setDepth(depth)

Set the depth at which this instance lives.

setFillStyle(fillstyle)

Set the fill style.

setPoints(points)

Set the points to which this blob is attached.

setStrokeStyle(strokestyle)

Set the stroke style.

setX(x)

Set the x-coordinate of this point.

setXRadius(xrad)

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

setXY(xpos, ypos)

Set the x and y coordinates of this point.

setXYRadius(xrad, yrad)

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

setY(y)

Set the y-coordinate of this point.

setYRadius(yrad)

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

tangent(otherpoint)

Return the tangent of the straight line defined by this point and the argument.

x()

Alias for getX().

xy()

Alias for getXY().

y()

Alias for getY().

Attributes

blobshape

addLabel(text, displace=-0.15, angle=0, size=<pyx.text.size object>, halign=<pyx.text.halign object>, valign=None)

Add a label.

addTrafo(trafo)

Add a transformation.

arg(otherpoint)

Return the angle between the x-axis and the straight line defined by this point and the argument (cf. complex numbers).

clearFillStyles()

Remove all the current fill styles.

clearLabels()

Remove all current labels.

clearStrokeStyles()

Remove all the current stroke styles.

clearTrafos()

Remove transformations.

distance(otherpoint)

Calculate the distance between this point and the argument.

draw(canvas)[source]

Draw this blob on the given canvas.

getBlob()

Get the attached blob.

getDepth()

Return the depth at which this instance lives.

getPath()[source]

Get the path for this blob.

getVisiblePath()

Return the visible path of this instance.

getX()

Return the x-coordinate of this point.

getXRadius()[source]

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

getXY()

Return the x and y coordinates of this point as a 2-tuple.

getXYRadius()[source]

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

getY()

Return the y-coordinate of this point.

getYRadius()[source]

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

intercept(otherpoint)

Return the y-intercept of the straight line defined by this point and the argument.

isVisible()

Check if this instance is visible.

midpoint(otherpoint)

Return the point midway between this point and the argument.

removeLabels()

Remove all labels from this point.

setBlob(blob)

Set the attached blob.

setDepth(depth)

Set the depth at which this instance lives.

setFillStyle(fillstyle)

Set the fill style.

setPoints(points)

Set the points to which this blob is attached.

setStrokeStyle(strokestyle)

Set the stroke style.

setX(x)

Set the x-coordinate of this point.

setXRadius(xrad)[source]

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

setXY(xpos, ypos)

Set the x and y coordinates of this point.

setXYRadius(xrad, yrad)[source]

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

setY(y)

Set the y-coordinate of this point.

setYRadius(yrad)[source]

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

tangent(otherpoint)

Return the tangent of the straight line defined by this point and the argument.

x()

Alias for getX().

xy()

Alias for getXY().

y()

Alias for getY().