You took all three photos at f/3.5?
Yes, all three images were taken with the same aperture (wide open at f3.5), same shutter speed (1/10 sec), same ISO (800), same lens (24mm f3.5 TSE MkII) on the same camera (Canon 1DMk3) and from the same subject distance. All three shots were taken within minutes of each other.
How was it done:
The first image was a straight shot of a row of batteries at an angle to the camera's position with a 24mm tilt/shift lens set up for left/right tilt (commonly known as swing). The lens tilt position was set at neutral and the lens was focused on the 3rd battery from the right.
The second image was taken from a similar position but the lens was tilted as far as possible away from the line of the batteries (swung to the left) this made the plane of focus almost at right angles to the line of the batteries and thus when the lens was focused again on the 3rd battery from the right the minimal DOF at f3.5 ensured it did not even encapsulate the batteries on either side of the battery that was in focus.
The third image was again taken from a similar position but this time the lens was tilted to extend the plane of focus along the line of the batteries (swung to the right) and in this position the minimal DOF was sufficient to cover the front of the line of batteries (giving the impression of a great DOF) but if you look carefully you can actually see that the limited DOF at f3.5 has not covered the rear edge of the right most battery, this should have helped give the game away.
If these batteries were being shot as a product shot then the technique used in image 3 would normally be used but using a smaller aperture to ensure that the DOF was sufficient to fully cover the front battery too.
Hope this helps.
Took me so long to write this pgriz had already explained the situation. Unfortunately I no longer have the Canon kit with which I took these images a couple of years ago, but I do now have a pair of Fuji GX680s (a MkII and a MkIII) and these cameras allow a greater range of movements (than the Canon TSE lenses) with all of the lenses in the GX and GX-M range.