Quantum Dots in Gated Nanowires and Nanotubes