场景管理器 更多...
#include <APISceneManager.h>
Public 成员函数 | |
AABox | GetBBox () const |
void | ComputeBBox () |
SceneNodeIterator | NewSceneNodeIterator () const |
void | AddNode (const SceneNode &pNode) |
void | AddNode2d (const SceneNode &pNode) |
void | ClearNodes () |
void | ClearNodes2d () |
void | RemoveNode (const SceneNode &pNode) |
void | RemoveNode2d (const SceneNode &pNode) |
SceneNode | FindNode (const ElementId &nId) const |
SceneNode | FindNode2d (const ElementId &nId) const |
void | SelectNode (const SceneNode &pNode) |
void | SelectNodeById (const ElementId &id) |
void | SelectChildNodeById (const ElementIdList &idChain) |
SceneNode | GetSelectedNode () const |
void | QuerySelection (const SelectionQuery &context) const |
void | QueryHighlight (const SelectionQuery &context) const |
void | ClearSelection () |
SnapNodeManager | GetSnapNodeManager () const |
Public 成员函数 继承自 AnyCAD::API::Object | |
String | GetObjectClassId () const |
StringList | ListParentClassIds () const |
场景管理器
管理场景里的节点。
void AnyCAD::API::SceneManager::AddNode | ( | const SceneNode & | pNode | ) |
添加一个节点。
pNode | 节点。 |
void AnyCAD::API::SceneManager::AddNode2d | ( | const SceneNode & | pNode | ) |
添加一个2D的节点。
pNode | 节点。 |
void AnyCAD::API::SceneManager::ClearNodes | ( | ) |
清空3D场景。
void AnyCAD::API::SceneManager::ClearNodes2d | ( | ) |
清空所有的2D对象。
void AnyCAD::API::SceneManager::ClearSelection | ( | ) |
清空选择集。
void AnyCAD::API::SceneManager::ComputeBBox | ( | ) |
根据场景里的SceneNode重新计算场景的包围盒。
AABox AnyCAD::API::SceneManager::GetBBox | ( | ) | const |
获取场景的包围盒。
SnapNodeManager AnyCAD::API::SceneManager::GetSnapNodeManager | ( | ) | const |
获取SnapNodeManager
SceneNodeIterator AnyCAD::API::SceneManager::NewSceneNodeIterator | ( | ) | const |
创建遍历场景里节点的迭代器。
void AnyCAD::API::SceneManager::QueryHighlight | ( | const SelectionQuery & | context | ) | const |
查询与选择集中高亮的对象。
context | 选择集查询器. |
void AnyCAD::API::SceneManager::QuerySelection | ( | const SelectionQuery & | context | ) | const |
查询选择集中的对象。
context | 选择集查询器。 |
void AnyCAD::API::SceneManager::RemoveNode | ( | const SceneNode & | pNode | ) |
移除一个3D的SceneNode。
pNode | SceneNode对象。 |
void AnyCAD::API::SceneManager::RemoveNode2d | ( | const SceneNode & | pNode | ) |
移除一个2D对象
pNode | 对象。 |
void AnyCAD::API::SceneManager::SelectChildNodeById | ( | const ElementIdList & | idChain | ) |
根据ID链来选择节点的子节点对象。
idChain | the id chain from root to leaf node. |
void AnyCAD::API::SceneManager::SelectNode | ( | const SceneNode & | pNode | ) |
选择指定的场景节点对象。
pNode | 对象。 |
void AnyCAD::API::SceneManager::SelectNodeById | ( | const ElementId & | id | ) |
根据ID选择场景节点对象。
id | the id. |