AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIPickHelper.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIPickHelper_H_
4 #define _APIPickHelper_H_
5 
6 #include "APIObjectDef.h"
7 
8 namespace AnyCAD{ namespace API
9 {
10  class TopoShape;
11  class SelectedShapeQuery;
12  class Renderer;
13  class SceneNode;
22  {
24  public:
29  void SetPickFlags (int nFlags) ;
34  void Initialize (const Renderer& renderer) ;
41  bool Pick (int cx, int cy) ;
47  bool Pick (const Vector2& mousePosition) ;
52  SceneNode GetSceneNode () const;
57  SceneNode GetSubSceneNode () const;
62  TopoShape GetGeometry () const;
67  TopoShape GetSubGeometry () const;
72  Vector3 GetPointOnShape () const;
77  SelectedShapeQuery GetQuery () const;
78  };//PickHelper;
79 }}//API
80 
81 #endif //_APIPickHelper_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
拾取辅助类.
Definition: APIPickHelper.h:21
Point or vector.
Definition: APIMath.h:16
场景的节点的基类。
Definition: APISceneNode.h:22
拓扑对象
Definition: APITopoShape.h:18
The context to query the selected shape.
Definition: APISelectedShapeQuery.h:20
#define DECLARE_APIOBJECT(className)
Definition: APIObjectDef.h:10
Point or vector.
Definition: APIMath.h:37
渲染器。
Definition: APIRenderer.h:25