Self-consistent calculation of nuclear rotations: The complete yrast line of 24Mg