Complete the basement work of camera control.

Need to add it to the GUI and test it.
Fix a bug that seting display window fail.