/// <summary> /// Create all hotspot buttons that allow to add nodes /// </summary> public void CreateInsertNodeHotSpots() { if (_hotSpotNewNodes != null) // already created { return; } ShapeCollection vertices = this.ChildCollection; int iCount = vertices.Count; _hotSpotNewNodes = new List <HotSpotAddVolumeVertex>(iCount); HotSpotAddVolumeVertex hs; for (int i = 0; i < iCount; i++) { if (vertices[i] is CustomVolumeVertex) { // insert hot spots in between the nodes hs = new HotSpotAddVolumeVertex(this, i); EditorManager.ActiveView.HotSpots.Add(hs); _hotSpotNewNodes.Add(hs); } } }
/// <summary> /// Create all hotspot buttons that allow to add nodes /// </summary> public void CreateInsertNodeHotSpots() { if (_hotSpotNewNodes != null) // already created return; ShapeCollection vertices = this.ChildCollection; int iCount = vertices.Count; _hotSpotNewNodes = new List<HotSpotAddVolumeVertex>(iCount); HotSpotAddVolumeVertex hs; for (int i = 0; i < iCount; i++) { if (vertices[i] is CustomVolumeVertex) { // insert hot spots in between the nodes hs = new HotSpotAddVolumeVertex(this, i); EditorManager.ActiveView.HotSpots.Add(hs); _hotSpotNewNodes.Add(hs); } } }