lsst.afw  14.0-58-g91bfccb15
Public Member Functions | Public Attributes | List of all members
lsst.afw.geom.testUtils.BoxGrid Class Reference

Divide a box into nx by ny sub-boxes that tile the region. More...

Inheritance diagram for lsst.afw.geom.testUtils.BoxGrid:

Public Member Functions

def __init__ (self, box, numColRow)
 Construct a BoxGrid. More...
 
def numColRow (self)
 
def __getitem__ (self, indXY)
 Return the box at the specified x,y index (a pair of ints) More...
 
def __len__ (self)
 
def __iter__ (self)
 Return an iterator over all boxes, where column varies most quickly. More...
 

Public Attributes

 boxClass
 
 stopDelta
 
 pointClass
 

Detailed Description

Divide a box into nx by ny sub-boxes that tile the region.

Definition at line 48 of file testUtils.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.afw.geom.testUtils.BoxGrid.__init__ (   self,
  box,
  numColRow 
)

Construct a BoxGrid.

The sub-boxes will be of the same type as box and will exactly tile box; they will also all be the same size, to the extent possible (some variation is inevitable for integer boxes that cannot be evenly divided.

Parameters
[in]boxbox (an lsst.afw.geom.Box2I or Box2D); the boxes in the grid will be of the same type
[in]numColRownumber of columns and rows (a pair of ints)

Definition at line 52 of file testUtils.py.

Member Function Documentation

◆ __getitem__()

def lsst.afw.geom.testUtils.BoxGrid.__getitem__ (   self,
  indXY 
)

Return the box at the specified x,y index (a pair of ints)

Definition at line 91 of file testUtils.py.

◆ __iter__()

def lsst.afw.geom.testUtils.BoxGrid.__iter__ (   self)

Return an iterator over all boxes, where column varies most quickly.

Definition at line 102 of file testUtils.py.

◆ __len__()

def lsst.afw.geom.testUtils.BoxGrid.__len__ (   self)

Definition at line 99 of file testUtils.py.

◆ numColRow()

def lsst.afw.geom.testUtils.BoxGrid.numColRow (   self)

Definition at line 88 of file testUtils.py.

Member Data Documentation

◆ boxClass

lsst.afw.geom.testUtils.BoxGrid.boxClass

Definition at line 74 of file testUtils.py.

◆ pointClass

lsst.afw.geom.testUtils.BoxGrid.pointClass

Definition at line 78 of file testUtils.py.

◆ stopDelta

lsst.afw.geom.testUtils.BoxGrid.stopDelta

Definition at line 75 of file testUtils.py.


The documentation for this class was generated from the following file: