OnSectionEvent
event SectionEventHandler OnSectionEvent
단면 업데이트 이벤트
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
vizcore3d.Section.OnSectionEvent += Section_OnSectionEvent;
}
private void Section_OnSectionEvent(object sender, Event.EventManager.SectionEventArgs e)
{
switch (e.EventType)
{
// 생성 이벤트
case VIZCore3D.NET.Manager.SectionManager.EventTypes.ADD:
break;
// 삭제 이벤트
case VIZCore3D.NET.Manager.SectionManager.EventTypes.DELETE:
break;
// 전체 삭제 이벤트
case VIZCore3D.NET.Manager.SectionManager.EventTypes.CLEAR:
break;
// 선택 이벤트
case VIZCore3D.NET.Manager.SectionManager.EventTypes.SELECT:
break;
// 이동 및 회전 이벤트
case VIZCore3D.NET.Manager.SectionManager.EventTypes.TRANSFORM:
break;
// 이동 완료
case VIZCore3D.NET.Manager.SectionManager.EventTypes.RESIZED:
break;
default:
break;
}
// 단면 정보 없음
if (e.Section == null)
return;
switch (e.Section.SectionType)
{
// 단면
case VIZCore3D.NET.Manager.SectionManager.SectionTypes.SECTION:
break;
// 상자
case VIZCore3D.NET.Manager.SectionManager.SectionTypes.SECTION_BOX:
break;
// 인박스
case VIZCore3D.NET.Manager.SectionManager.SectionTypes.SECTION_INBOX:
break;
default:
break;
}
}