Magnetism and rotation in relativistic field theory