public MainForm() { InitializeComponent(); // create the scene book var sceneSpace = new DockSpace(_viewportAdapter.Viewport); _viewportAdapter.Viewport.RootScene = sceneSpace; var book = new DockBook(_viewportAdapter.Viewport); sceneSpace.Root = book; // create the cards scene var cards = new CardScene(_viewportAdapter.Viewport); book.Add(cards); // create the controls scene var controls = new ControlsScene(_viewportAdapter.Viewport); book.Add(controls); // create the 2D plotting scene var plot2D = new Plot2dScene(_viewportAdapter.Viewport); book.Add(plot2D); // create the 3D plotting scene var plot3D = new Plot3dScene(_viewportAdapter.Viewport); book.Add(plot3D); _viewportAdapter.ResizeGL(); }
public MainWindow() { InitializeComponent(); // create the scene book var sceneSpace = new DockSpace(viewportWrapper.Viewport); viewportWrapper.Viewport.RootScene = sceneSpace; var book = new DockBook(viewportWrapper.Viewport); sceneSpace.Root = book; // create the controls scene var controls = new ControlsScene(viewportWrapper.Viewport); book.Add(controls); // create the 2D plotting scene var plot2D = new Plot2dScene(viewportWrapper.Viewport); book.Add(plot2D); // create the 3D plotting scene var plot3D = new Plot3dScene(viewportWrapper.Viewport); book.Add(plot3D); }
/// <summary> /// Default constructor. /// </summary> public MainWindow() : base(gtk.WindowType.Toplevel) { Title = "MonoWorks Demo"; DeleteEvent += OnDeleteEvent; // create the viewport adapter var adapter = new ViewportAdapter(); Add(adapter); // create the scene space var sceneSpace = new SceneSpace(adapter.Viewport); adapter.Viewport.RootScene = sceneSpace; var book = new SceneBook(adapter.Viewport); sceneSpace.Root = book; // create the cards scene var cards = new CardScene(adapter.Viewport); book.Add(cards); // create the controls scene var controls = new ControlsScene(adapter.Viewport); book.Add(controls); // create the controls scene var mwx = new MwxScene(adapter.Viewport); book.Add(mwx); // create the 2D plotting scene var plot2d = new Plot2dScene(adapter.Viewport); book.Add(plot2d); // create the 3D plotting scene var plot3d = new Plot3dScene(adapter.Viewport); book.Add(plot3d); ShowAll(); }