/// <summary> /// Creates a view with a universe camera /// </summary> public IUniCameraView CreatePlanetView( IPlanet planet ) { IUniCameraView view = new UniCameraViewControl( ); // HACK: AP: Create a controller appropriate to the planet type if ( planet is ISpherePlanet ) { new SpherePlanetViewController( view, ( ISpherePlanet )planet ); } else { throw new NotSupportedException( "No view controller available for planet of type " + planet.GetType( ) ); } return view; }