Beispiel #1
0
        public override void Execute(IPamuxModel m, IPamuxView v, IPamuxViewModel vm)
        {
            var CVM = vm as GeneratorConfigViewModel;
            var CM  = m as GeneratorConfigModel;
            var CV  = v as GeneratorConfigPanel;

            var V = ViewModelLocator.FindSibling <Generators, GeneratorResultsPanel>(CV);

            var VM = V.VM as GeneratorResultsViewModel;
            var M  = VM.M as GeneratorResultsModel;

            var context = new BitmapManipulationContext();

            //context.FillRandomly(32,75);
            //context.FillRandomGrid(10, 10, 10, 10);
            context.PerlinNoise();
            VM.ImageSource = context.Create();
        }
Beispiel #2
0
        public override void Execute(IPamuxModel m, IPamuxView v, IPamuxViewModel vm)
        {
            var CVM = vm as NodeEditorToolBarViewModel;
            var CM  = m as NodeEditorToolBarModel;
            var CV  = v as NodeEditorToolBarPanel;

            var V = ViewModelLocator.FindSibling <NodeEditor, NodeEditorPanel>(CV);

            V.AddNode("Xyz");
            var VM = V.VM as NodeEditorViewModel;
            var M  = VM.M as NodeEditorModel;

            var context = new BitmapManipulationContext();
            //context.FillRandomly(32,75);
            //context.FillRandomGrid(10, 10, 10, 10);
            //context.PerlinNoise();
            //VM.ImageSource = context.Create();
        }