Abstraction for generating sampling patterns, and a regular grid pattern generator.