def _bytescan_rectangle(alg, top): return chart( "bytescan", data=_bytescan_data(top.width + 2 * alg.margin, top.height + 2 * alg.margin), topology=_scantop.rectangle, margin=alg.margin, )
def _bytescan_projective_plane(alg, top): return chart( "bytescan", data=_bytescan_data(top.width + 2 * alg.margin, top.height + 2 * alg.margin), topology=_scantop.projective_plane, margin=alg.margin, )
def _bytescan_torus(alg, top): return chart( "bytescan", data=_bytescan_data(top.width + 2 * alg.margin, top.height + 2 * alg.margin), topology=_scantop.torus, margin=alg.margin, )
def _complexscan_projective_plane(alg, top): return chart('complexscan', data=_complexscan_data(top.width + 2*alg.margin, top.height + 2*alg.margin, getattr(alg, 'planes', 1)), topology=_scantop.projective_plane, margin=alg.margin )
def _complexscan_torusfall(alg, top): return chart('complexscan', data=_complexscan_data(top.width + 2*alg.margin, top.height + 2*alg.margin, getattr(alg, 'planes', 1)), topology=_scantop.torusfall(top.fall), margin=alg.margin )
def _floatscan_rectangle(alg, top): return chart('floatscan', data=_floatscan_data(top.width + 2*alg.margin, top.height + 2*alg.margin, getattr(alg, 'planes', 1)), topology=_scantop.rectangle, margin=alg.margin )
def _bytescan_to_projective_plane(c, top): return chart("bytescan", data=c.data, topology=_scantop.projective_plane, margin=c.margin)
def _bytescan_to_rectangle(c, top): return chart("bytescan", data=c.data, topology=_scantop.rectangle, margin=c.margin)
def _bytescan_to_torus(c, top): return chart("bytescan", data=c.data, topology=_scantop.torus, margin=c.margin)
def _complexscan_to_projective_plane(c, top): return chart('complexscan', data=c.data, topology=_scantop.projective_plane, margin=c.margin )
def _complexscan_to_rectangle(c, top): return chart('complexscan', data=c.data, topology=_scantop.rectangle, margin=c.margin )
def _complexscan_to_torus(c, top): return chart('complexscan', data=c.data, topology=_scantop.torus, margin=c.margin )
def _floatscan_to_rectangle(c, top): return chart('floatscan', data=c.data, topology=_scantop.rectangle, margin=c.margin )
def _floatscan_to_torus(c, top): return chart('floatscan', data=c.data, topology=_scantop.torus, margin=c.margin )