示例#1
0
        protected override void OnProcessOutputSchema(MutableObject newSchema)
        {
            var entries = Entries.GetEntries(newSchema);

            foreach (var entry in entries)
            {
                XAxisTarget.SetValue(0, entry);
                ZAxisTarget.SetValue(0, entry);
            }

            Router.TransmitAllSchema(newSchema);
        }
示例#2
0
        protected override MutableObject Mutate(MutableObject mutable)
        {
            var metaEntries = Entries.GetEntries(mutable);

            //metaEntries = metaEntries.OrderBy( lMut => SortCriterion.GetValue( lMut ) ).ToList();

            int index = 0;

            foreach (var metaEntry in metaEntries)
            {
                XAxisTarget.SetValue(index % GridWidth.GetValue(metaEntry), metaEntry);
                ZAxisTarget.SetValue(index / GridWidth.GetValue(metaEntry), metaEntry);

                index++;
            }
            return(mutable);
        }
示例#3
0
        public override IEnumerator ReceivePayload(VisualPayload payload)
        {
            var entries = IndexValue.GetEntries(payload.Data);

            foreach (var entry in entries)
            {
                var location = ComputeXYPosition(IndexValue.GetValue(entry));
                XAxisTarget.SetValue(location.x, entry);
                YAxisTarget.SetValue(location.y, entry);
            }

            var iterator = Router.TransmitAll(payload);

            while (iterator.MoveNext())
            {
                yield return(null);
            }
        }