def ellipse(): o = EllipseI() populate_shape(o) o.cx = rdouble(1.0) o.cy = rdouble(2.0) o.rx = rdouble(3.0) o.ry = rdouble(4.0) o.id = rlong(1L) return o
def ellipse_with_annotations(): o = EllipseI() populate_shape(o) add_annotations(o) o.cx = rdouble(1.0) o.cy = rdouble(2.0) o.rx = rdouble(3.0) o.ry = rdouble(4.0) o.id = rlong(1L) return o
def ellipse(): o = EllipseI() populate_shape(o) if SCHEMA_VERSION == "2015-01": o.cx = rdouble(1.0) o.cy = rdouble(2.0) o.rx = rdouble(3.0) o.ry = rdouble(4.0) else: o.x = rdouble(1.0) o.y = rdouble(2.0) o.radiusX = rdouble(3.0) o.radiusY = rdouble(4.0) o.id = rlong(1L) return o
def ellipse(): o = EllipseI() populate_shape(o) if SCHEMA_VERSION == '2015-01': o.cx = rdouble(1.0) o.cy = rdouble(2.0) o.rx = rdouble(3.0) o.ry = rdouble(4.0) else: o.x = rdouble(1.0) o.y = rdouble(2.0) o.radiusX = rdouble(3.0) o.radiusY = rdouble(4.0) o.id = rlong(1L) return o