private void addMultiplePointsToolStripMenuItem_Click(object sender, EventArgs e) { using (CountForm form = new CountForm()) { if (form.ShowDialog() == DialogResult.OK) { ModelEditorCore.AddPointBetweenSelectionPoints(this.editorWindow, form.Count); } } }
private void CreateConicCommon(GeometryConicType geometry) { using (GeometryConicForm form = new GeometryConicForm(geometry)) { if (form.ShowDialog() == DialogResult.OK) { switch (form.Geometry) { case GeometryConicType.Sphere: ModelEditorCore.CreateModelSphere(this.editorWindow, Math.Max(2, form.Rows), Math.Max(3, form.Cols)); break; case GeometryConicType.Cylinder: ModelEditorCore.CreateModelCylinder(this.editorWindow, Math.Max(1, form.Rows), Math.Max(3, form.Cols)); break; case GeometryConicType.Cone: ModelEditorCore.CreateModelCone(this.editorWindow, Math.Max(1, form.Rows), Math.Max(3, form.Cols)); break; } } } }
private void cubeToolStripMenuItem_Click(object sender, EventArgs e) { ModelEditorCore.CreateModelCube(this.editorWindow); }
private void lLocalAxisToolStripMenuItem_Click(object sender, EventArgs e) { ModelEditorCore.EditorAxisLocal(this.editorWindow); }
private void sScalingModeToolStripMenuItem_Click(object sender, EventArgs e) { ModelEditorCore.EditorModeScaling(this.editorWindow); }
private void rRotationModeToolStripMenuItem_Click(object sender, EventArgs e) { ModelEditorCore.EditorModeRotation(this.editorWindow); }
private void toolStripMenuItem2_Click(object sender, EventArgs e) { ModelEditorCore.EditorModeVertexSelection(this.editorWindow); }
private void resetToolStripMenuItem_Click(object sender, EventArgs e) { ModelEditorCore.ResetView(this.editorWindow); }
private void timerRenderer_Tick(object sender, EventArgs e) { ModelEditorCore.RenderEditorWindow(this.editorWindow); }
private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { ModelEditorCore.DestroyEditorWindow(this.editorWindow); this.editorWindow = IntPtr.Zero; }
private void MainForm_Load(object sender, EventArgs e) { this.workingDirectory = Path.GetDirectoryName(Application.ExecutablePath) + "\\"; this.editorWindow = ModelEditorCore.CreateEditorWindow(panelEditorWindow.Handle, this.workingDirectory); ModelEditorCore.RenderEditorWindow(this.editorWindow); }
private void pushVertexToolStripMenuItem_Click(object sender, EventArgs e) { ModelEditorCore.PushSelectedPoints(this.editorWindow); }
private void addPointToolStripMenuItem_Click(object sender, EventArgs e) { ModelEditorCore.AddPointBetweenSelectionPoints(this.editorWindow, 1); }
private void deleteLineToolStripMenuItem_Click(object sender, EventArgs e) { ModelEditorCore.DeleteSelectedLineBetweenSelectionPoints(this.editorWindow); }
private void deleteToolStripMenuItem_Click(object sender, EventArgs e) { ModelEditorCore.DeleteSelection(this.editorWindow); }