Exemplo n.º 1
0
        public MemorialData Create()
        {
            var data = new MemorialData();

            _dataSet.Add(data);
            _loadDataMap.Add(data, false);
            return(data);
        }
Exemplo n.º 2
0
        void CreateDataset(MemorialData data)
        {
            if (_loadDataMap[data])
            {
                return;
            }

            var dataset = _tracker.CreateDataSet();
            var type    = data.DataType == DataType.Asset ?
                          VuforiaUnity.StorageType.STORAGE_APP :
                          VuforiaUnity.StorageType.STORAGE_APPRESOURCE;

            if (dataset.Load(data.ModelData, type))
            {
                _tracker.ActivateDataSet(dataset);
            }

            _trackables.AddRange(dataset.GetTrackables());

            _loadDataMap[data] = true;
        }
Exemplo n.º 3
0
        public override Widget Build(BuildContext context = null)
        {
            if (!Data)
            {
                Data = _collection.Create();
            }

            return(new Scaffold(
                       appBar: new AppBar(
                           leading: new IconButton(
                               icon: new Icon(Icons.arrow_back),
                               onPressed: () => Navigator.of(context).pop()
                               ),
                           title: new Text(_title)
                           ),
                       body: new Container(
                           padding: EdgeInsets.all(24f),
                           child: new AddMemorial(Data)
                           )
                       ));
        }
Exemplo n.º 4
0
 public TextEditWidget(MemorialData data)
 {
     _data = data;
 }
Exemplo n.º 5
0
 public AddMemorialState(MemorialData data)
 {
     _stateKey = new StateKey();
     _data     = data;
 }
Exemplo n.º 6
0
 public AddMemorial(MemorialData data) => _data = data;