Refactor input connection in tvtk.