AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APISceneManager.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APISceneManager_H_
4 #define _APISceneManager_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIObject.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class SelectionQuery;
13  class SnapNodeManager;
14  class SceneNodeIterator;
15  class SceneNode;
24  : public Object
25  {
27  public:
32  AABox GetBBox () const;
37  void ComputeBBox () ;
42  SceneNodeIterator NewSceneNodeIterator () const;
48  void AddNode (const SceneNode& pNode) ;
54  void AddNode2d (const SceneNode& pNode) ;
59  void ClearNodes () ;
64  void ClearNodes2d () ;
70  void RemoveNode (const SceneNode& pNode) ;
76  void RemoveNode2d (const SceneNode& pNode) ;
82  SceneNode FindNode (const ElementId& nId) const;
88  SceneNode FindNode2d (const ElementId& nId) const;
94  void SelectNode (const SceneNode& pNode) ;
99  void SelectNodeById (const ElementId& id) ;
104  void SelectChildNodeById (const ElementIdList& idChain) ;
109  SceneNode GetSelectedNode () const;
114  void QuerySelection (const SelectionQuery& context) const;
119  void QueryHighlight (const SelectionQuery& context) const;
123  void ClearSelection () ;
128  SnapNodeManager GetSnapNodeManager () const;
129  };//SceneManager;
130 }}//API
131 
132 #endif //_APISceneManager_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
AABox.
Definition: APIMath.h:281
The SnapeNode manager.
Definition: APISnapNodeManager.h:20
The selection context interface.
Definition: APISelectionQuery.h:17
节点遍历器。
Definition: APISceneNodeIterator.h:18
The id.
Definition: APIElementId.h:16
场景的节点的基类。
Definition: APISceneNode.h:22
平台基类
Definition: APIObject.h:17
场景管理器
Definition: APISceneManager.h:23
std::vector< ElementId > ElementIdList
Definition: APIElementId.h:54
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33