PYME.LMVis.layers.ScaleBarOverlayLayer module¶
- class PYME.LMVis.layers.ScaleBarOverlayLayer.ScaleBarOverlayLayer(offset=None, color=None, **kwargs)¶
Bases:
OverlayLayer
This class creates a scale bar that indicate the size, depending on the zoom level
- render(gl_canvas)¶
- Parameters
- gl_canvas: GLCanvas
the scaleBarLength is currently used, but should be passed with a setter in the future xmin, xmax, ymin, ymax and Size is used to get the total size of the canvas and to calculate the real size of the scale bar
- Returns
- set_scale_bar_depth(depth)¶
- set_scale_bar_length(length)¶