AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APICustomEditor.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APICustomEditor_H_
4 #define _APICustomEditor_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIDocViewEditor.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class InputEvent;
13  class Document;
14  class Renderer;
15  class SceneNode;
24  : public DocViewEditor
25  {
27  public:
32  Renderer GetRenderer () ;
37  Document GetDocument () ;
42  virtual void OnButtonDownEvent (const InputEvent& evt) ;
47  virtual void OnButtonUpEvent (const InputEvent& evt) ;
52  virtual void OnMouseMoveEvent (const InputEvent& evt) ;
56  virtual void OnStartEvent () ;
60  virtual void OnExitEvent () ;
65  void Exit (int exitCode) ;
71  Vector3 ToWorldPoint (const Vector2& screenPt) ;
76  void ShowTempNode (const SceneNode& node) ;
81  void RemoveTempNode (const ElementId& id) ;
85  void RemoveAllTempNodes () ;
90  void NotifyMousePosition (const Vector3& pos) ;
91  };//CustomEditor;
92 }}//API
93 
94 #endif //_APICustomEditor_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
鼠标和键盘输入信息
Definition: APIInputEvent.h:17
Point or vector.
Definition: APIMath.h:16
The id.
Definition: APIElementId.h:16
场景的节点的基类。
Definition: APISceneNode.h:22
The view editor base class.
Definition: APIDocViewEditor.h:22
文档类。
Definition: APIDocument.h:25
用户定义的编辑器基类
Definition: APICustomEditor.h:23
Point or vector.
Definition: APIMath.h:37
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33
渲染器。
Definition: APIRenderer.h:25