wx.lib.floatcanvas.FCObjects.DotGrid¶
An example of a Grid Object – it is set on the FloatCanvas with one of:
FloatCanvas.GridUnder = Grid
FloatCanvas.GridOver = Grid
It will be drawn every time, regardless of the viewport.
In its _Draw method, it computes what to draw, given the ViewPortBB of the Canvas it’s being drawn on.
Class Hierarchy¶
Methods Summary¶
Initialize self. See help(type(self)) for accurate signature. |
|
Class API¶
- class DotGrid¶
An example of a Grid Object – it is set on the FloatCanvas with one of:
FloatCanvas.GridUnder = Grid FloatCanvas.GridOver = Grid
It will be drawn every time, regardless of the viewport.
In its _Draw method, it computes what to draw, given the ViewPortBB of the Canvas it’s being drawn on.
Methods¶
- __init__(self, Spacing, Size=2, Color='Black', Cross=False, CrossThickness=1)¶
Initialize self. See help(type(self)) for accurate signature.
- CalcPoints(self, Canvas)¶