Object3DManagerOnObject3DSelecting Event |
Namespace: VIZCore3D.NET.Manager
public event Object3DSelectingEventHandler OnObject3DSelecting
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { vizcore3d.Object3D.OnObject3DSelecting += Object3D_OnObject3DSelecting; } private void Object3D_OnObject3DSelecting(object sender, Event.EventManager.Object3DSelectingEventArgs e) { // 선택된 모델 이름에 "PIPE" 이름이 포함된 경우에 if(e.Node.NodeName.Contains("PIPE") == true) { // 선택 가능 e.Cancel = false; } else { // 선택 취소 e.Cancel = true; } }