Why does PPF become a straight line? When it becomes a curve?

When the PPF shifts parallelly? When it shifts clockwise or anti-clockwise?