Miniplot shows sum of counts in detectors covered by shapes.

Refactored 2d shape classes to work with multiple selections. Re #7222