The diode prevents voltage dropping below 0V. The Capacitor pushes the voltage up. So the waveform is identical but has a DC offset equal to the input amplitude. In other words: the input oscillates between -240V and +240V, while the output signal oscillates between -0V and +480V.