AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::SelectedShapeQuery类 参考

The context to query the selected shape. 更多...

#include <APISelectedShapeQuery.h>

类 AnyCAD::API::SelectedShapeQuery 继承关系图:
AnyCAD::API::SelectedEntityQuery AnyCAD::API::SelectionQuery AnyCAD::API::SelectedElementQuery

Public 成员函数

TopoShape GetGeometry () const
 
TopoShape GetSubGeometry () const
 
bool HasPointOnGeometry () const
 
Vector3 GetIntersectPoint (const Ray &ray) const
 
Vector3 ToGloablePoint (const Vector3 &point) const
 
- Public 成员函数 继承自 AnyCAD::API::SelectedEntityQuery
bool IsEmpty () const
 
ElementId GetNodeId () const
 
int GetSubNodeId () const
 
SceneNode GetSubNode () const
 
SceneNode GetRootNode () const
 
RenderableEntity GetEntity () const
 
int GetSubEntityIndex () const
 
int GetSubEntityType () const
 
IntList GetIds () const
 
Matrix4 ComputeGlobalTransform () const
 

详细描述

The context to query the selected shape.

TODO:

成员函数说明

TopoShape AnyCAD::API::SelectedShapeQuery::GetGeometry ( ) const

Get the selected master TopoShape

返回
the TopoShape
Vector3 AnyCAD::API::SelectedShapeQuery::GetIntersectPoint ( const Ray ray) const

Compute the intersect point.

参数
raythe intersection ray.
返回
the nearest local point.
TopoShape AnyCAD::API::SelectedShapeQuery::GetSubGeometry ( ) const

Get the selected sub TopoShape

返回
the TopoShape
bool AnyCAD::API::SelectedShapeQuery::HasPointOnGeometry ( ) const

If has geometry selected.

返回
true if has.
Vector3 AnyCAD::API::SelectedShapeQuery::ToGloablePoint ( const Vector3 point) const

Transform local point to global point

参数
pointthe local point.
返回
the global point.

该类的文档由以下文件生成: