AnyCAD SDK PRO  2020
The Professional Graphics SDK for .Net and C++ Developers
Public 成员函数 | 所有成员列表
AnyCAD::Platform::EventListener类 参考

事件接收器 更多...

类 AnyCAD::Platform::EventListener 继承关系图:
AnyCAD::Platform::DefaultEventListener

Public 成员函数

virtual void OnDocumentModified (DocumentChangeArgs^ args)
 
virtual void OnSelectionChanged (SelectionChangeArgs^ args)
 
virtual void OnDebugWarning (String^ msg)
 
virtual PathOnGetOpenFileName (String^ caption, String^ filter)
 
virtual PathOnGetSaveFileName (String^ caption, String^ defaultName, String^ filter)
 
virtual int OnGotExistingElement (String^ docId, ElementId^ newId, ElementIdSet^ exitingIds)
 
virtual void OnTraceEditor (String^ commandId, int status)
 
virtual void OnChangeCursor (String^ commandId, String^ cursorHint)
 
virtual void OnMousePositionChanged (Vector3^ worldPos)
 
virtual int OnExecuteEventLoop (long loopId)
 
virtual void OnExitLoopEvent (long loopId, int code)
 
virtual String^ OnGetInput (String^ desciption, int valueType, String^ defaultValue, long id)
 
virtual void OnShowCommandContextUI (bool bShow, View^ pView)
 

详细描述

事件接收器

用于接收平台产生的事件。

成员函数说明

virtual void AnyCAD::Platform::EventListener::OnChangeCursor ( String^  commandId,
String^  cursorHint 
)
virtual

Notify to change the cursor.

参数
commandIdthe id.
cursorHintwhich cursor to use.

AnyCAD::Platform::DefaultEventListener 重载.

virtual void AnyCAD::Platform::EventListener::OnDebugWarning ( String^  msg)
virtual

产生了Debug警告信息。

参数
msgthe message

AnyCAD::Platform::DefaultEventListener 重载.

virtual void AnyCAD::Platform::EventListener::OnDocumentModified ( DocumentChangeArgs^  args)
virtual

文档被修改的时候调用。

参数
argsthe arguments.

AnyCAD::Platform::DefaultEventListener 重载.

virtual int AnyCAD::Platform::EventListener::OnExecuteEventLoop ( long  loopId)
virtual

Execute the event loop

参数
loopIdthe loop id.
返回
the exit code.

AnyCAD::Platform::DefaultEventListener 重载.

virtual void AnyCAD::Platform::EventListener::OnExitLoopEvent ( long  loopId,
int  code 
)
virtual

Exit the event loop.

参数
loopIdthe loop id.
codethe exit code.

AnyCAD::Platform::DefaultEventListener 重载.

virtual String ^ AnyCAD::Platform::EventListener::OnGetInput ( String^  desciption,
int  valueType,
String^  defaultValue,
long  id 
)
virtual

Get the input.

参数
desciptionthe description string.
valueTypethe value type.
defaultValuethe default value.
idthe id of the input.
返回
the value string.
virtual Path ^ AnyCAD::Platform::EventListener::OnGetOpenFileName ( String^  caption,
String^  filter 
)
virtual

调用打开文件对话框获取需要打开的文件.

参数
captionthe Title
filterthe file filters
返回
file path name
virtual Path ^ AnyCAD::Platform::EventListener::OnGetSaveFileName ( String^  caption,
String^  defaultName,
String^  filter 
)
virtual

调用保存文件对话框保存文件.

参数
captionthe Title
defaultNamethe flleName
filterthe file filters
返回
file path name
virtual int AnyCAD::Platform::EventListener::OnGotExistingElement ( String^  docId,
ElementId newId,
ElementIdSet^  exitingIds 
)
virtual

handling existing element action.

返回
the flags defined by EnumHandleExitingElement.
virtual void AnyCAD::Platform::EventListener::OnMousePositionChanged ( Vector3 worldPos)
virtual

Notify the mouse position changed.

参数
worldPosthe position in the world space.

AnyCAD::Platform::DefaultEventListener 重载.

virtual void AnyCAD::Platform::EventListener::OnSelectionChanged ( SelectionChangeArgs args)
virtual

选择集变化的时候调用。

参数
argsthe arguments

AnyCAD::Platform::DefaultEventListener 重载.

virtual void AnyCAD::Platform::EventListener::OnShowCommandContextUI ( bool  bShow,
View pView 
)
virtual

Show the command context ui.

参数
bShowshow the UI.
pViewthe active view.
virtual void AnyCAD::Platform::EventListener::OnTraceEditor ( String^  commandId,
int  status 
)
virtual

Trace the state of the editor

参数
commandIdthe id.
status1: Enter editor. 2: Exist editor

AnyCAD::Platform::DefaultEventListener 重载.


该类的文档由以下文件生成: