pyfeyn2.render.pyx.points.DecoratedPoint

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

Bases: Point, Visible

Class for a point drawn with a marker

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

Constructor.

Methods

__init__([x, y, center, mark, fill, stroke, ...])

Constructor.

addFillstyle(style)

Add a fillstyle to the marker or blob attached to this point.

addFillstyles(styles)

Add fillstyles to the marker or blob attached to this point.

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

Add a LaTeX label to this point, either via parameters or actually as a PointLable object.

addStrokestyle(style)

Add a stroke style to the marker or blob attached to this point.

addStrokestyles(styles)

Add stroke styles to the marker or blob attached to this point.

arg(otherpoint)

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

distance(otherpoint)

Calculate the distance between this point and the argument.

draw(canvas)

Draw the marker or blob attached to this point.

getBlob()

Return the blob attached to this point.

getDepth()

Return the depth at which this instance lives.

getFillstyles()

Return the fillstyles for the marker or blob attached to this point.

getMark()

Return the marker attached to this point.

getPath()

Return the path belonging to the blob or marker attached to this point, if any.

getStrokestyles()

Return the stroke styles for the marker or blob attached to this point.

getVisiblePath()

Return the visible path of this instance.

getX()

Return the x-coordinate of this point.

getXY()

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

getY()

Return the y-coordinate of this point.

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 blob attached to this point.

setDepth(depth)

Set the depth at which this instance lives.

setFillstyles(styles)

Set the fillstyles for the marker or blob attached to this point.

setMark(mark)

Set the marker attached to this point.

setStrokestyles(styles)

Set the stroke styles for the marker or blob attached to this point.

setX(x)

Set the x-coordinate of this point.

setXY(xpos, ypos)

Set the x and y coordinates of this point.

setY(y)

Set the y-coordinate of this point.

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().

addFillstyle(style)[source]

Add a fillstyle to the marker or blob attached to this point.

addFillstyles(styles)[source]

Add fillstyles to the marker or blob attached to this point.

addLabel(text, displace=0.3, angle=0, size=<pyx.text.size object>)

Add a LaTeX label to this point, either via parameters or actually as a PointLable object.

addStrokestyle(style)[source]

Add a stroke style to the marker or blob attached to this point.

addStrokestyles(styles)[source]

Add stroke styles to the marker or blob attached to this point.

arg(otherpoint)

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

distance(otherpoint)

Calculate the distance between this point and the argument.

draw(canvas)[source]

Draw the marker or blob attached to this point.

getBlob()[source]

Return the blob attached to this point.

getDepth()

Return the depth at which this instance lives.

getFillstyles()[source]

Return the fillstyles for the marker or blob attached to this point.

getMark()[source]

Return the marker attached to this point.

getPath()[source]

Return the path belonging to the blob or marker attached to this point, if any.

getStrokestyles()[source]

Return the stroke styles for the marker or blob attached to this point.

getVisiblePath()

Return the visible path of this instance.

getX()

Return the x-coordinate of this point.

getXY()

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

getY()

Return the y-coordinate of this point.

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)[source]

Set the blob attached to this point.

setDepth(depth)

Set the depth at which this instance lives.

setFillstyles(styles)[source]

Set the fillstyles for the marker or blob attached to this point.

setMark(mark)[source]

Set the marker attached to this point.

setStrokestyles(styles)[source]

Set the stroke styles for the marker or blob attached to this point.

setX(x)

Set the x-coordinate of this point.

setXY(xpos, ypos)

Set the x and y coordinates of this point.

setY(y)

Set the y-coordinate of this point.

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().