Note: ParticleTreeElement::getParticles() now takes a QVector<const Particle*> argument which it fills with the particles that it finds.  This saves us from copying the QVector in the context that calls this function.