示例#1
0
        private void SearchDebug(object sender, BackEventArgs e)
        {
            IResultPanelModel   resultPanelModel = transform.GetComponent <ResultPanelController>().GETResultPanelModel();
            IMainMenuController menuController   = GetComponent <MainMenuController>();

            menuController.GETMainMenuModel().ChangeVisibility(false);
            view.setVisibility(false);
            resultPanelModel.renderDebugPicture();
            resultPanelModel.ChangeResultVisibility(true);
        }
示例#2
0
        public void accessPhotoQuery(string base64)
        {
            IResultPanelModel resultPanelModel = transform.GetComponent <ResultPanelController>().GETResultPanelModel();

            resultPanelModel.ChangeResultVisibility(true);

            var simq = QueryBuilder.BuildSimpleQbEQuery(base64);

            QueryCineastAndProcess(simq, true);
        }
示例#3
0
        private void HandleBack(object sender, ResultBackEventArgs e)
        {
            IMainMenuModel mainMenuModel = transform.GetComponent <MainMenuController>().GETMainMenuModel();

            model.ChangeResultVisibility(false);
            mainMenuModel.ChangeVisibility(true);
            IMainMenuView mainMenuView = transform.GetComponent <MainMenuController>().GETMainMenuView();

            mainMenuView.activateShow(true);

            Debug.Log("Search clicked");
        }
示例#4
0
        private void HandleSearchSelect(object sender, BackEventArgs e)
        {
            IResultPanelModel resultPanelModel = transform.GetComponent <ResultPanelController>().GETResultPanelModel();

            model.ChangeVisibility(false);
            //resultPanelModel.renderPicture();
            resultPanelModel.ChangeResultVisibility(true);
            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 + 1.3f);

            resultPanelView.setResultPosition(newpos);
        }
示例#5
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);
        }