Table Of Contents

Previous topic

ColorOnlyMixin

Next topic

DrawObject

This Page

phoenix_title 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 Inheritance Diagram

Inheritance diagram for class DotGrid

Inheritance diagram of DotGrid


method_summary Methods Summary

__init__  
CalcPoints  

api 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)


CalcPoints(self, Canvas)