事件接收器
更多...
#include <APIEventListener.h>
|
virtual void | OnDocumentModified (const DocumentChangeArgs &args) |
|
virtual void | OnSelectionChanged (const SelectionChangeArgs &args) |
|
virtual void | OnDebugWarning (const String &msg) |
|
virtual Path | OnGetOpenFileName (const String &caption, const String &filter) |
|
virtual Path | OnGetSaveFileName (const String &caption, const String &defaultName, const String &filter) |
|
virtual int | OnGotExistingElement (const String &docId, const ElementId &newId, const ElementIdSet &exitingIds) |
|
virtual void | OnTraceEditor (const String &commandId, int status) |
|
virtual void | OnChangeCursor (const String &commandId, const String &cursorHint) |
|
virtual void | OnMousePositionChanged (const Vector3 &worldPos) |
|
virtual int | OnExecuteEventLoop (long loopId) |
|
virtual void | OnExitLoopEvent (long loopId, int code) |
|
virtual String | OnGetInput (const String &desciption, int valueType, const String &defaultValue, long id) |
|
virtual void | OnShowCommandContextUI (bool bShow, const View &pView) |
|
virtual void AnyCAD::API::EventListener::OnChangeCursor |
( |
const String & |
commandId, |
|
|
const String & |
cursorHint |
|
) |
| |
|
virtual |
virtual void AnyCAD::API::EventListener::OnDebugWarning |
( |
const String & |
msg | ) |
|
|
virtual |
virtual void AnyCAD::API::EventListener::OnDocumentModified |
( |
const DocumentChangeArgs & |
args | ) |
|
|
virtual |
virtual int AnyCAD::API::EventListener::OnExecuteEventLoop |
( |
long |
loopId | ) |
|
|
virtual |
virtual void AnyCAD::API::EventListener::OnExitLoopEvent |
( |
long |
loopId, |
|
|
int |
code |
|
) |
| |
|
virtual |
virtual String AnyCAD::API::EventListener::OnGetInput |
( |
const String & |
desciption, |
|
|
int |
valueType, |
|
|
const String & |
defaultValue, |
|
|
long |
id |
|
) |
| |
|
virtual |
Get the input.
- 参数
-
desciption | the description string. |
valueType | the value type. |
defaultValue | the default value. |
id | the id of the input. |
- 返回
- the value string.
virtual Path AnyCAD::API::EventListener::OnGetOpenFileName |
( |
const String & |
caption, |
|
|
const String & |
filter |
|
) |
| |
|
virtual |
virtual Path AnyCAD::API::EventListener::OnGetSaveFileName |
( |
const String & |
caption, |
|
|
const String & |
defaultName, |
|
|
const String & |
filter |
|
) |
| |
|
virtual |
调用保存文件对话框保存文件.
- 参数
-
caption | the Title |
defaultName | the flleName |
filter | the file filters |
- 返回
- file path name
被 AuMainFrame< TMainFrame > 重载.
virtual int AnyCAD::API::EventListener::OnGotExistingElement |
( |
const String & |
docId, |
|
|
const ElementId & |
newId, |
|
|
const ElementIdSet & |
exitingIds |
|
) |
| |
|
virtual |
handling existing element action.
- 返回
- the flags defined by EnumHandleExitingElement.
virtual void AnyCAD::API::EventListener::OnMousePositionChanged |
( |
const Vector3 & |
worldPos | ) |
|
|
virtual |
Notify the mouse position changed.
- 参数
-
worldPos | the position in the world space. |
virtual void AnyCAD::API::EventListener::OnSelectionChanged |
( |
const SelectionChangeArgs & |
args | ) |
|
|
virtual |
virtual void AnyCAD::API::EventListener::OnShowCommandContextUI |
( |
bool |
bShow, |
|
|
const View & |
pView |
|
) |
| |
|
virtual |
Show the command context ui.
- 参数
-
bShow | show the UI. |
pView | the active view. |
virtual void AnyCAD::API::EventListener::OnTraceEditor |
( |
const String & |
commandId, |
|
|
int |
status |
|
) |
| |
|
virtual |
Trace the state of the editor
- 参数
-
commandId | the id. |
status | 1: Enter editor. 2: Exist editor |
该类的文档由以下文件生成: