AnyCAD SDK PRO
2020
The Professional Graphics SDK for .Net and C++ Developers
|
用户定义的编辑器基类 更多...
Public 成员函数 | |
Renderer^ | GetRenderer () |
Document^ | GetDocument () |
virtual void | OnButtonDownEvent (InputEvent^ evt) |
virtual void | OnButtonUpEvent (InputEvent^ evt) |
virtual void | OnMouseMoveEvent (InputEvent^ evt) |
virtual void | OnStartEvent () |
virtual void | OnExitEvent () |
void | Exit (int exitCode) |
Vector3^ | ToWorldPoint (Vector2^ screenPt) |
void | ShowTempNode (SceneNode^ node) |
void | RemoveTempNode (ElementId^ id) |
void | RemoveAllTempNodes () |
void | NotifyMousePosition (Vector3^ pos) |
![]() | |
ParameterValueSet^ | GetParameterSet () |
bool | ParseParameters (String^ str) |
![]() | |
void | SetId (String^ id) |
String^ | GetId () |
bool | ParseParameters (String^ str) |
![]() | |
String^ | GetObjectClassId () |
StringList^ | ListParentClassIds () |
用户定义的编辑器基类
用于扩展用户自定义编辑器。
void AnyCAD::Platform::CustomEditor::Exit | ( | int | exitCode | ) |
退出Editor.
exitCode | the exiting code. |
void AnyCAD::Platform::CustomEditor::NotifyMousePosition | ( | Vector3^ | pos | ) |
Notify to change the mouse position.
pos | the world position. |
|
virtual |
当鼠标键按下的时候调用.
evt | the mouse/key event. |
|
virtual |
当鼠标键松起的时候调用.
evt | the mouse/key event. |
|
virtual |
退出Editor的时候调用.
|
virtual |
当鼠标移动的时候调用。
evt | the mouse/key event. |
|
virtual |
启动Editor的时候调用.
void AnyCAD::Platform::CustomEditor::RemoveAllTempNodes | ( | ) |
Remove all the temporary nodes.
void AnyCAD::Platform::CustomEditor::RemoveTempNode | ( | ElementId^ | id | ) |
Remove the temporary node by id.
id | the id of the temporary node. |
void AnyCAD::Platform::CustomEditor::ShowTempNode | ( | SceneNode^ | node | ) |
Show the node temporarily. The node will be removed after exiting the editor.
node | the temporary node. |
Convert screen point to 3d point.
screenPt | the screen point. |