lsst.afw  13.0-73-gb2a4e38
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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__
 Construct a BoxGrid. More...
 
def numColRow
 
def __getitem__
 Return the box at the specified x,y index (a pair of ints) More...
 
def __len__
 
def __iter__
 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 46 of file testUtils.py.

Constructor & Destructor Documentation

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 50 of file testUtils.py.

Member Function Documentation

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 89 of file testUtils.py.

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

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

Definition at line 100 of file testUtils.py.

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

Definition at line 97 of file testUtils.py.

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

Definition at line 86 of file testUtils.py.

Member Data Documentation

lsst.afw.geom.testUtils.BoxGrid.boxClass

Definition at line 72 of file testUtils.py.

lsst.afw.geom.testUtils.BoxGrid.pointClass

Definition at line 76 of file testUtils.py.

lsst.afw.geom.testUtils.BoxGrid.stopDelta

Definition at line 73 of file testUtils.py.


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