NativeMapper

class ginga.canvas.coordmap.NativeMapper(viewer)[source]

Bases: ginga.canvas.coordmap.BaseMapper

A coordinate mapper that maps to the viewer’s canvas in the viewer’s canvas coordinates.

Methods Summary

data_to(self, data_pts[, viewer])

offset_pt(self, pts, offset)

Offset a point specified by pt, by the offsets offset.

rotate_pt(self, pts, theta, offset)

Rotate a point specified by pt by the angle theta (in degrees) around the point indicated by offset.

to_data(self, cvs_pts[, viewer])

Methods Documentation

data_to(self, data_pts, viewer=None)[source]
offset_pt(self, pts, offset)[source]

Offset a point specified by pt, by the offsets offset. Coordinates are assumed to be in the space defined by this mapper.

rotate_pt(self, pts, theta, offset)[source]

Rotate a point specified by pt by the angle theta (in degrees) around the point indicated by offset. Coordinates are assumed to be in the space defined by this mapper.

to_data(self, cvs_pts, viewer=None)[source]