![]() | NXMapLayerVectorEditorCreateNewOBJ Method (eXvcObjType, ArrayList) |
Namespace: Pixoneer.NXDL.NXMap
public XvcObj CreateNewOBJ( eXvcObjType type, ArrayList vertexList )
private void pointToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.POINT, null); } private void lineToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.LINE, null); } private void ellipseToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.ELLIPSE, null); } private void rectangleToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.RECTANGLE, null); } private void polylineToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.POLYLINE, null); } private void textToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.TEXT, null); } private void polygonToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.POLYGON, null); } private void textBoxToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.TEXTBOX, null); } private void measurePointToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.MEASURE_POINT, null); } private void measureDistanceToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.MEASURE_DIST, null); } private void measureAreaToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.MEASURE_AREA, null); } private void measureAngleToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.MEASURE_ANGLE, null); } private void bitmapToolStripMenuItem_Click(object sender, EventArgs e) { XvcObj obj = nxMapLayerVectorEditor1.CreateNewOBJ(Pixoneer.NXDL.NVC.eXvcObjType.BITMAP, null); if (obj != null) { string strError = string.Empty; string strFilePath = Xfn.GetResourcePath() + "\\indexmap.bmp"; ((XvcBitmap)obj).BitmapName = "INDEX_MAP"; ((XvcBitmap)obj).SetImage(strFilePath, ref strError); } } ///
private void rectangleToolStripMenuItem_Click(object sender, EventArgs e) { System.Collections.ArrayList vertexList = new System.Collections.ArrayList(); vertexList.Add(new XVertex3d(10, 10, 0)); vertexList.Add(new XVertex3d(30, 30, 0)); XvcObj obj = nxMapLayerVectorEditor.CreateNewOBJ(eXvcObjType.Rectangle, vertexList); obj.IsFixed = true; nxMapLayerVectorEditor.SelectNone(); } ///