Ejemplo n.º 1
0
        private void SearchClicked(object sender, BackEventArgs e)
        {
            Debug.Log(myLocation);

            if (!alreadyfetched)
            {
                var query = CineastUnityInterface.Runtime.Vitrivr.UnityInterface.CineastApi.Utils.QueryBuilder
                            .BuildSpatialSimilarityQuery(myLocation.getLat(), myLocation.getLon());
                QueryCineastAndProcess(query, false);
                alreadyfetched = true;
            }
            else
            {
                setFetchedActiveList();
            }
            IResultPanelModel   resultPanelModel = transform.GetComponent <ResultPanelController>().GETResultPanelModel();
            IMainMenuController menuController   = GetComponent <MainMenuController>();

            IResultPanelView resultPanelView = transform.GetComponent <ResultPanelController>().GETResultPanelView();
            Vector3          newpos          = new Vector3(Camera.main.transform.position.x, Camera.main.transform.position.y, Camera.main.transform.position.z);

            resultPanelView.setResultPosition(newpos);

            menuController.GETMainMenuModel().ChangeVisibility(false);
            view.setVisibility(false);
            resultPanelModel.ChangeResultVisibility(true);

            IMapController mapController = GetComponent <MapController>();

            mapController.GETMapView().setGameObjectVisibility(false);

            IMapMenuController mapMenuController = GetComponent <MapMenuController>();

            mapMenuController.GETMapMenuView().MenuVisibility(false);

            ITemporalController temporalController = GetComponent <TemporalController>();

            temporalController.GETItTemporalView().MenuVisibility(false);
        }
Ejemplo n.º 2
0
        private void SendPOIListToMapMenu(object sender, GetPOILocationListEventArgs e)
        {
            IMapMenuView mapMenuModel = mapMenuController.GETMapMenuView();

            mapMenuModel.setPOIList(e.poiLocations);
        }