public ViewportLayout InitViewport() { var displayModeSettingsRendered1 = new DisplayModeSettingsRendered(true, edgeColorMethodType.EntityColor, Color.Black, 1F, 2F, silhouettesDrawingType.LastFrame, false, shadowType.Realistic, null, false, true, 0.3F, realisticShadowQualityType.High); var backgroundSettings1 = new BackgroundSettings(backgroundStyleType.LinearGradient, Color.WhiteSmoke, Color.White, Color.FromArgb(102, 163, 210), 0.75D, null); var camera1 = new Camera(new Point3D(0D, 0D, 0D), 100D, new Quaternion(0.12940952255126034D, 0.22414386804201339D, 0.4829629131445341D, 0.83651630373780794D), projectionType.Perspective, 50D, 8D); var toolBarButton1 = new ToolBarButton(null, "Zoom Window", "Zoom Window", ToolBarButtonStyle.ToggleButton, true); var toolBarButton2 = new ToolBarButton(null, "Zoom", "Zoom", ToolBarButtonStyle.ToggleButton, true); var toolBarButton3 = new ToolBarButton(null, "Pan", "Pan", ToolBarButtonStyle.ToggleButton, true); var toolBarButton4 = new ToolBarButton(null, "Rotate", "Rotate", ToolBarButtonStyle.ToggleButton, true); var toolBarButton5 = new ToolBarButton(null, "Zoom Fit", "Zoom Fit", ToolBarButtonStyle.PushButton, true); var toolBar1 = new devDept.Eyeshot.ToolBar(toolBarPositionType.HorizontalTopRight, 32, 3, 4, Color.FromArgb(255, 146, 0), true, new[] { toolBarButton1, toolBarButton2, toolBarButton3, toolBarButton4, toolBarButton5 }); var legend1 = new Legend(0D, 100D, "Title", "Subtitle", new Point(24, 24), new Size(10, 30), true, false, false, "{0:0.##}", System.Drawing.Color.Transparent, System.Drawing.Color.Black, System.Drawing.Color.Black, new System.Drawing.Font("Tahoma", 10F, FontStyle.Bold), new Font("Tahoma", 8.25F), new[] { Color.FromArgb(0, 0, 255), Color.FromArgb(0, 63, 255), Color.FromArgb(0, 127, 255), Color.FromArgb(0, 191, 255), Color.FromArgb(0, 255, 255), Color.FromArgb(0, 255, 191), Color.FromArgb(0, 255, 127), Color.FromArgb(0, 255, 63), Color.FromArgb(0, 255, 0), Color.FromArgb(63, 255, 0), Color.FromArgb(127, 255, 0), Color.FromArgb(191, 255, 0), Color.FromArgb(255, 255, 0), Color.FromArgb(255, 191, 0), Color.FromArgb(255, 127, 0), Color.FromArgb(255, 63, 0), Color.FromArgb(255, 0, 0) }); var originSymbol1 = new OriginSymbol(2, originSymbolStyleType.CoordinateSystem, new Font("Tahoma", 8.25F), Color.Black, Color.Red, Color.Green, Color.Blue, "Origin", "X", "Y", "Z", true); var rotateSettings1 = new RotateSettings(new MouseButton(MouseButtons.Middle, ModifierKeys.None), 10D, true, 1D, rotationStyleType.Trackball, rotationCenterType.CursorLocation, new devDept.Geometry.Point3D(0D, 0D, 0D)); var zoomSettings1 = new ZoomSettings(new MouseButton(MouseButtons.Middle, ModifierKeys.Shift), 25, true, zoomStyleType.AtCursorLocation, false, 1D, Color.DeepSkyBlue, perspectiveFitType.Accurate); var viewport1 = new Viewport(new Point(0, 0), new Size(100, 10000), backgroundSettings1, camera1, toolBar1, new[] { legend1 }, displayType.Rendered, true, false, false, CreateGrid(10), originSymbol1, false, rotateSettings1, zoomSettings1, new PanSettings(new MouseButton(MouseButtons.Middle, ModifierKeys.Ctrl), 25, true)); _viewportLayout = new SingleViewportLayout(); _viewportLayout.Dock = DockStyle.Fill; _viewportLayout.Cursor = Cursors.Arrow; _viewportLayout.Name = "SingleViewPort"; _viewportLayout.Rendered = displayModeSettingsRendered1; _viewportLayout.Size = new Size(431, 405); _viewportLayout.TabIndex = 0; _viewportLayout.Viewports.Add(viewport1); return _viewportLayout; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { devDept.Eyeshot.CancelToolBarButton cancelToolBarButton1 = new devDept.Eyeshot.CancelToolBarButton("Cancel", devDept.Eyeshot.ToolBarButton.styleType.ToggleButton, true, true); devDept.Eyeshot.ProgressBar progressBar1 = new devDept.Eyeshot.ProgressBar(devDept.Eyeshot.ProgressBar.styleType.Circular, 0, "Idle", System.Drawing.Color.Red, System.Drawing.Color.Transparent, System.Drawing.Color.Green, 1D, true, cancelToolBarButton1, false, 0.1D, true); devDept.Graphics.BackgroundSettings backgroundSettings1 = new devDept.Graphics.BackgroundSettings(devDept.Graphics.backgroundStyleType.Solid, System.Drawing.Color.DeepSkyBlue, System.Drawing.Color.DodgerBlue, System.Drawing.Color.WhiteSmoke, 0.75D, null, devDept.Graphics.colorThemeType.Auto, 0.33D); devDept.Eyeshot.Camera camera1 = new devDept.Eyeshot.Camera(new devDept.Geometry.Point3D(0D, 0D, 50D), 600D, new devDept.Geometry.Quaternion(0.086824088833465166D, 0.15038373318043533D, 0.492403876506104D, 0.85286853195244339D), devDept.Graphics.projectionType.Perspective, 50D, 2.5761597103083274D, false, 0.001D); devDept.Eyeshot.HomeToolBarButton homeToolBarButton1 = new devDept.Eyeshot.HomeToolBarButton("Home", devDept.Eyeshot.ToolBarButton.styleType.PushButton, true, true); devDept.Eyeshot.MagnifyingGlassToolBarButton magnifyingGlassToolBarButton1 = new devDept.Eyeshot.MagnifyingGlassToolBarButton("Magnifying Glass", devDept.Eyeshot.ToolBarButton.styleType.ToggleButton, true, true); devDept.Eyeshot.ZoomWindowToolBarButton zoomWindowToolBarButton1 = new devDept.Eyeshot.ZoomWindowToolBarButton("Zoom Window", devDept.Eyeshot.ToolBarButton.styleType.ToggleButton, true, true); devDept.Eyeshot.ZoomToolBarButton zoomToolBarButton1 = new devDept.Eyeshot.ZoomToolBarButton("Zoom", devDept.Eyeshot.ToolBarButton.styleType.ToggleButton, true, true); devDept.Eyeshot.PanToolBarButton panToolBarButton1 = new devDept.Eyeshot.PanToolBarButton("Pan", devDept.Eyeshot.ToolBarButton.styleType.ToggleButton, true, true); devDept.Eyeshot.RotateToolBarButton rotateToolBarButton1 = new devDept.Eyeshot.RotateToolBarButton("Rotate", devDept.Eyeshot.ToolBarButton.styleType.ToggleButton, true, true); devDept.Eyeshot.ZoomFitToolBarButton zoomFitToolBarButton1 = new devDept.Eyeshot.ZoomFitToolBarButton("Zoom Fit", devDept.Eyeshot.ToolBarButton.styleType.PushButton, true, true); devDept.Eyeshot.ToolBar toolBar1 = new devDept.Eyeshot.ToolBar(devDept.Eyeshot.ToolBar.positionType.HorizontalTopCenter, true, new devDept.Eyeshot.ToolBarButton[] { ((devDept.Eyeshot.ToolBarButton)(homeToolBarButton1)), ((devDept.Eyeshot.ToolBarButton)(magnifyingGlassToolBarButton1)), ((devDept.Eyeshot.ToolBarButton)(zoomWindowToolBarButton1)), ((devDept.Eyeshot.ToolBarButton)(zoomToolBarButton1)), ((devDept.Eyeshot.ToolBarButton)(panToolBarButton1)), ((devDept.Eyeshot.ToolBarButton)(rotateToolBarButton1)), ((devDept.Eyeshot.ToolBarButton)(zoomFitToolBarButton1)) }); devDept.Eyeshot.Grid grid1 = new devDept.Eyeshot.Grid(new devDept.Geometry.Point3D(-50D, -50D, 0D), new devDept.Geometry.Point3D(100D, 100D, 0D), 10D, new devDept.Geometry.Plane(new devDept.Geometry.Point3D(0D, 0D, 0D), new devDept.Geometry.Vector3D(0D, 0D, 1D)), System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))), System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))), false, true, false, false, 10, 100, 10, System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(90)))), ((int)(((byte)(90)))), ((int)(((byte)(90))))), System.Drawing.Color.Transparent, false, System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))))); devDept.Eyeshot.RotateSettings rotateSettings1 = new devDept.Eyeshot.RotateSettings(new devDept.Eyeshot.MouseButton(devDept.Eyeshot.mouseButtonsZPR.Middle, devDept.Eyeshot.modifierKeys.None), 10D, true, 1D, devDept.Eyeshot.rotationType.Trackball, devDept.Eyeshot.rotationCenterType.CursorLocation, new devDept.Geometry.Point3D(0D, 0D, 0D), false); devDept.Eyeshot.ZoomSettings zoomSettings1 = new devDept.Eyeshot.ZoomSettings(new devDept.Eyeshot.MouseButton(devDept.Eyeshot.mouseButtonsZPR.Middle, devDept.Eyeshot.modifierKeys.Shift), 25, true, devDept.Eyeshot.zoomStyleType.AtCursorLocation, false, 1D, System.Drawing.Color.DeepSkyBlue, devDept.Eyeshot.Camera.perspectiveFitType.Accurate, false, 10, true); devDept.Eyeshot.PanSettings panSettings1 = new devDept.Eyeshot.PanSettings(new devDept.Eyeshot.MouseButton(devDept.Eyeshot.mouseButtonsZPR.Middle, devDept.Eyeshot.modifierKeys.Ctrl), 25, true); devDept.Eyeshot.NavigationSettings navigationSettings1 = new devDept.Eyeshot.NavigationSettings(devDept.Eyeshot.Camera.navigationType.Examine, new devDept.Eyeshot.MouseButton(devDept.Eyeshot.mouseButtonsZPR.Left, devDept.Eyeshot.modifierKeys.None), new devDept.Geometry.Point3D(-1000D, -1000D, -1000D), new devDept.Geometry.Point3D(1000D, 1000D, 1000D), 8D, 50D, 50D); devDept.Eyeshot.Viewport.SavedViewsManager savedViewsManager1 = new devDept.Eyeshot.Viewport.SavedViewsManager(8); devDept.Eyeshot.Viewport viewport1 = new devDept.Eyeshot.Viewport(new System.Drawing.Point(0, 0), new System.Drawing.Size(479, 389), backgroundSettings1, camera1, new devDept.Eyeshot.ToolBar[] { toolBar1 }, devDept.Eyeshot.displayType.Rendered, true, false, false, false, new devDept.Eyeshot.Grid[] { grid1 }, false, rotateSettings1, zoomSettings1, panSettings1, navigationSettings1, savedViewsManager1, devDept.Eyeshot.viewType.Trimetric); devDept.Eyeshot.CoordinateSystemIcon coordinateSystemIcon1 = new devDept.Eyeshot.CoordinateSystemIcon(System.Drawing.Color.Black, System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80))))), System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80))))), System.Drawing.Color.OrangeRed, "Origin", "X", "Y", "Z", true, devDept.Eyeshot.coordinateSystemPositionType.BottomLeft, 37, false); devDept.Eyeshot.Legend legend1 = new devDept.Eyeshot.Legend(0D, 100D, "Title", "Subtitle", new System.Drawing.Point(24, 24), new System.Drawing.Size(10, 30), true, false, false, "{0:0.##}", System.Drawing.Color.Transparent, System.Drawing.Color.Black, System.Drawing.Color.Black, new System.Drawing.Color[] { System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))), System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(63)))), ((int)(((byte)(255))))), System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(127)))), ((int)(((byte)(255))))), System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(191)))), ((int)(((byte)(255))))), System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))), System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(191))))), System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(127))))), System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(63))))), System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(191)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(127)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(63)))), ((int)(((byte)(0))))), System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))) }, false, false); devDept.Eyeshot.OriginSymbol originSymbol1 = new devDept.Eyeshot.OriginSymbol(10, devDept.Eyeshot.originSymbolStyleType.Ball, System.Drawing.Color.Black, System.Drawing.Color.Red, System.Drawing.Color.Green, System.Drawing.Color.Blue, "Origin", "X", "Y", "Z", true, null, false); devDept.Eyeshot.ViewCubeIcon viewCubeIcon1 = new devDept.Eyeshot.ViewCubeIcon(devDept.Eyeshot.coordinateSystemPositionType.TopRight, true, System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(69)))), ((int)(((byte)(0))))), true, "FRONT", "BACK", "LEFT", "RIGHT", "TOP", "BOTTOM", System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))), System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))), System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))), System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))), System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))), System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77))))), 'S', 'N', 'W', 'E', true, System.Drawing.Color.White, System.Drawing.Color.Black, 120, true, true, null, null, null, null, null, null, false); this.model1 = new devDept.Eyeshot.Model(); this.printDocument1 = new System.Drawing.Printing.PrintDocument(); this.printButton = new System.Windows.Forms.Button(); this.pageSetupButton = new System.Windows.Forms.Button(); this.exportToEMFButton = new System.Windows.Forms.Button(); this.comboBoxPrintMode = new System.Windows.Forms.ComboBox(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.model1)).BeginInit(); this.SuspendLayout(); // // model1 // this.model1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.model1.Cursor = System.Windows.Forms.Cursors.Default; this.model1.Location = new System.Drawing.Point(16, 14); this.model1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.model1.MinimumSize = new System.Drawing.Size(11, 9); this.model1.Name = "model1"; this.model1.ProgressBar = progressBar1; this.model1.Size = new System.Drawing.Size(479, 389); this.model1.TabIndex = 0; coordinateSystemIcon1.LabelFont = new System.Drawing.Font("���ו", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); viewport1.CoordinateSystemIcon = coordinateSystemIcon1; legend1.TextFont = null; legend1.TitleFont = null; viewport1.Legends = new devDept.Eyeshot.Legend[] { legend1 }; originSymbol1.LabelFont = new System.Drawing.Font("���ו", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); viewport1.OriginSymbol = originSymbol1; viewCubeIcon1.Font = null; viewCubeIcon1.InitialRotation = new devDept.Geometry.Quaternion(0D, 0D, 0D, 1D); viewport1.ViewCubeIcon = viewCubeIcon1; this.model1.Viewports.Add(viewport1); this.model1.WaitCursorMode = devDept.Eyeshot.waitCursorType.Never; this.model1.WorkCompleted += new devDept.Eyeshot.Environment.WorkCompletedEventHandler(this.model1_WorkCompleted); // // printDocument1 // this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage); // // printButton // this.printButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.printButton.Location = new System.Drawing.Point(502, 306); this.printButton.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.printButton.Name = "printButton"; this.printButton.Size = new System.Drawing.Size(100, 27); this.printButton.TabIndex = 6; this.printButton.Text = "Print"; this.printButton.UseVisualStyleBackColor = true; this.printButton.Click += new System.EventHandler(this.printButton_Click); // // pageSetupButton // this.pageSetupButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.pageSetupButton.Location = new System.Drawing.Point(503, 14); this.pageSetupButton.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.pageSetupButton.Name = "pageSetupButton"; this.pageSetupButton.Size = new System.Drawing.Size(100, 27); this.pageSetupButton.TabIndex = 34; this.pageSetupButton.Text = "Page Setup"; this.pageSetupButton.UseVisualStyleBackColor = true; this.pageSetupButton.Click += new System.EventHandler(this.pageSetupButton_Click); // // exportToEMFButton // this.exportToEMFButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.exportToEMFButton.Location = new System.Drawing.Point(503, 112); this.exportToEMFButton.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.exportToEMFButton.Name = "exportToEMFButton"; this.exportToEMFButton.Size = new System.Drawing.Size(100, 27); this.exportToEMFButton.TabIndex = 35; this.exportToEMFButton.Text = "Export"; this.exportToEMFButton.UseVisualStyleBackColor = true; this.exportToEMFButton.Click += new System.EventHandler(this.exportToEMFButton_Click); // // comboBoxPrintMode // this.comboBoxPrintMode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.comboBoxPrintMode.FormattingEnabled = true; this.comboBoxPrintMode.Items.AddRange(new object[] { "Vector", "Raster" }); this.comboBoxPrintMode.Location = new System.Drawing.Point(503, 47); this.comboBoxPrintMode.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.comboBoxPrintMode.Name = "comboBoxPrintMode"; this.comboBoxPrintMode.Size = new System.Drawing.Size(99, 23); this.comboBoxPrintMode.TabIndex = 36; this.comboBoxPrintMode.SelectedIndexChanged += new System.EventHandler(this.comboBoxPrintMode_SelectedIndexChanged); // // button1 // this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button1.Location = new System.Drawing.Point(506, 223); this.button1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(100, 27); this.button1.TabIndex = 37; this.button1.Text = "ImportStl"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.importButton_Click); // // button2 // this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button2.Location = new System.Drawing.Point(502, 157); this.button2.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(100, 27); this.button2.TabIndex = 38; this.button2.Text = "Open"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.openButton_Click); // // button3 // this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.button3.Location = new System.Drawing.Point(502, 190); this.button3.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(100, 27); this.button3.TabIndex = 39; this.button3.Text = "Save"; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.eyeSaveButton_Click); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(619, 417); this.Controls.Add(this.button3); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Controls.Add(this.comboBoxPrintMode); this.Controls.Add(this.exportToEMFButton); this.Controls.Add(this.pageSetupButton); this.Controls.Add(this.printButton); this.Controls.Add(this.model1); this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.Name = "Form1"; this.Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.model1)).EndInit(); this.ResumeLayout(false); }
public ViewportLayout InitViewport() { var displayModeSettingsRendered1 = new DisplayModeSettingsRendered(true, edgeColorMethodType.EntityColor, Color.Black, 1F, 2F, silhouettesDrawingType.LastFrame, false, shadowType.Realistic, null, false, true, 0.3F, realisticShadowQualityType.High); var backgroundSettings1 = new BackgroundSettings(backgroundStyleType.LinearGradient, Color.WhiteSmoke, Color.White, Color.FromArgb(102, 163, 210), 0.75D, null); var camera1 = new Camera(new Point3D(0D, 0D, 0D), 100D, new Quaternion(0.12940952255126034D, 0.22414386804201339D, 0.4829629131445341D, 0.83651630373780794D), projectionType.Perspective, 50D, 8D); var toolBarButton1 = new ToolBarButton(null, "Zoom Window", "Zoom Window", ToolBarButtonStyle.ToggleButton, true); var toolBarButton2 = new ToolBarButton(null, "Zoom", "Zoom", ToolBarButtonStyle.ToggleButton, true); var toolBarButton3 = new ToolBarButton(null, "Pan", "Pan", ToolBarButtonStyle.ToggleButton, true); var toolBarButton4 = new ToolBarButton(null, "Rotate", "Rotate", ToolBarButtonStyle.ToggleButton, true); var toolBarButton5 = new ToolBarButton(null, "Zoom Fit", "Zoom Fit", ToolBarButtonStyle.PushButton, true); var toolBar1 = new devDept.Eyeshot.ToolBar(toolBarPositionType.HorizontalTopRight, 32, 3, 4, Color.FromArgb(255, 146, 0), true, new[] { toolBarButton1, toolBarButton2, toolBarButton3, toolBarButton4, toolBarButton5 }); var legend1 = new Legend(0D, 100D, "Title", "Subtitle", new Point(24, 24), new Size(10, 30), true, false, false, "{0:0.##}", System.Drawing.Color.Transparent, System.Drawing.Color.Black, System.Drawing.Color.Black, new System.Drawing.Font("Tahoma", 10F, FontStyle.Bold), new Font("Tahoma", 8.25F), new[] { Color.FromArgb(0, 0, 255), Color.FromArgb(0, 63, 255), Color.FromArgb(0, 127, 255), Color.FromArgb(0, 191, 255), Color.FromArgb(0, 255, 255), Color.FromArgb(0, 255, 191), Color.FromArgb(0, 255, 127), Color.FromArgb(0, 255, 63), Color.FromArgb(0, 255, 0), Color.FromArgb(63, 255, 0), Color.FromArgb(127, 255, 0), Color.FromArgb(191, 255, 0), Color.FromArgb(255, 255, 0), Color.FromArgb(255, 191, 0), Color.FromArgb(255, 127, 0), Color.FromArgb(255, 63, 0), Color.FromArgb(255, 0, 0) }); var originSymbol1 = new OriginSymbol(2, originSymbolStyleType.CoordinateSystem, new Font("Tahoma", 8.25F), Color.Black, Color.Red, Color.Green, Color.Blue, "Origin", "X", "Y", "Z", true); var rotateSettings1 = new RotateSettings(new MouseButton(MouseButtons.Middle, ModifierKeys.None), 10D, true, 1D, rotationStyleType.Trackball, rotationCenterType.CursorLocation, new devDept.Geometry.Point3D(0D, 0D, 0D)); var zoomSettings1 = new ZoomSettings(new MouseButton(MouseButtons.Middle, ModifierKeys.Shift), 25, true, zoomStyleType.AtCursorLocation, false, 1D, Color.DeepSkyBlue, perspectiveFitType.Accurate); var viewport1 = new Viewport(new Point(0, 0), new Size(100, 10000), backgroundSettings1, camera1, toolBar1, new[] { legend1 }, displayType.Rendered, true, false, false, CreateGrid(10), originSymbol1, false, rotateSettings1, zoomSettings1, new PanSettings(new MouseButton(MouseButtons.Middle, ModifierKeys.Ctrl), 25, true)); _viewportLayout = new SingleViewportLayout(); _viewportLayout.Dock = DockStyle.Fill; _viewportLayout.Cursor = Cursors.Arrow; _viewportLayout.Name = "SingleViewPort"; _viewportLayout.Rendered = displayModeSettingsRendered1; _viewportLayout.Size = new Size(431, 405); _viewportLayout.TabIndex = 0; _viewportLayout.Viewports.Add(viewport1); return(_viewportLayout); }