Beispiel #1
0
        public MainPage()
        {
            this.InitializeComponent();

            canvasController = new rMindCanvasController(canvas, scroll);
            rootController   = new HLSLNodeController(canvasController);

            canvasController.SetController(rootController);
            CreateMaterialNode();

            canvasController.Draw();
            dx.StartRenderLoop();

            tree.SetRoot(HLSL.Editor.TreeBuilder.Build());
            tree.OnSelectItem += (item) => {
                var it = item as TreeSelectorItem;
                if (it != null)
                {
                    rootController.CreateItem(it.Type);
                }
            };

            var a = Assembly.GetExecutingAssembly();
            var c = a.GetTypes();
        }
Beispiel #2
0
 public void SetupLogic(Canvas canvas, ScrollViewer scroll)
 {
     m_logic_controller = new rMindCanvasController(canvas, scroll)
     {
         NodeName = "logic"
     };
     Elements.rMindBaseController controller = new Elements.rMindBaseController(m_logic_controller);
     m_logic_controller.SetController(controller);
 }
Beispiel #3
0
 public void SetupDevice(Canvas canvas, ScrollViewer scroll)
 {
     m_device_controller = new rMindCanvasController(canvas, scroll)
     {
         NodeName = "device"
     };
     Elements.rMindBaseController controller = new rMindDeviceController(m_device_controller);
     m_device_controller.SetController(controller);
 }