コード例 #1
0
 protected override void OnTrackingFound()
 {
     _rm.gameObject.SetActive(true);
     _options = new List <string> {
         "Clear All Vis", "Clear One Vis", "Clear Vis Axis", "Clear Filter"
     };
     _rm.SetRadialOptions(_options);
 }
コード例 #2
0
    private void GetWWWText(string base64str)
    {
        string[]      datasets       = base64str.Split(',');
        List <string> datasetOptions = new List <string>(datasets.ToList());

        _rm.SetRadialOptions(datasetOptions);
    }
コード例 #3
0
    protected override void OnTrackingFound()
    {
        base.OnTrackingFound();

        bool activeVis = _m.HasActiveVis();

        // 1. Has Active Vis On Scene?
        if (!activeVis)
        {
            blocker.SetActive(true);
            Debug.LogError("Error3: Please, select some one chart before configure axis!");
            instrutor.text = "PLEASE SELECT SOME VIS BEFORE!" + "\nPLEASE SELECT SOME VIS BEFORE!";
            return;
        }

        //2. If Yes, get List of visualizations
        blocker.SetActive(false);
        List <string> allVisualizations = _m.GetVisOnScene();

        _rm.SetRadialOptions(allVisualizations);
        instrutor.text = _instrutorSteps[0] + "\n" + _instrutorSteps[1] + "\n" + _instrutorSteps[2];
    }
コード例 #4
0
    protected override void OnTrackingFound()
    {
        base.OnTrackingFound();
        _rm.gameObject.SetActive(true);

        foreach (GameObject f in _filter)
        {
            f.SetActive(false);
        }

        if (_m.GetDatasetStatus())
        {
            blocker.SetActive(false);
            _attributeTypes = _m.GetTypeOfAttributes().ToList();
            _databaseLabels = _m.GetAttributes().ToList();
            _rm.gameObject.SetActive(true);
            _rm.SetRadialOptions(_m.GetAttributes().ToList());
            UpdateListOfFilters();
            GenerateFilter();
            return;
        }
        blocker.SetActive(true);
        Debug.LogError("Error 6: Select some dataset before, please!");
    }