Add the continuous collection mode. Currently only horizontal or
vertical line path is supported. (And the code has not been tested.)