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

拾取辅助类. 更多...

#include <APIPickHelper.h>

Public 成员函数

void SetPickFlags (int nFlags)
 
void Initialize (const Renderer &renderer)
 
bool Pick (int cx, int cy)
 
bool Pick (const Vector2 &mousePosition)
 
SceneNode GetSceneNode () const
 
SceneNode GetSubSceneNode () const
 
TopoShape GetGeometry () const
 
TopoShape GetSubGeometry () const
 
Vector3 GetPointOnShape () const
 
SelectedShapeQuery GetQuery () const
 

详细描述

拾取辅助类.

TODO:

成员函数说明

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

Get the selected geometry.

返回
the TopoShape.
Vector3 AnyCAD::API::PickHelper::GetPointOnShape ( ) const

Get the point position of the selected shape..

返回
the global position.
SelectedShapeQuery AnyCAD::API::PickHelper::GetQuery ( ) const

Get shape query.

返回
the shape query.
SceneNode AnyCAD::API::PickHelper::GetSceneNode ( ) const

Get the selected node.

返回
the SceneNode.
TopoShape AnyCAD::API::PickHelper::GetSubGeometry ( ) const

Get the selected sub geometry.

返回
the TopoShape.
SceneNode AnyCAD::API::PickHelper::GetSubSceneNode ( ) const

Get the selected sub node.

返回
the SceneNode.
void AnyCAD::API::PickHelper::Initialize ( const Renderer renderer)

初始化.

参数
rendererthe target renderer
bool AnyCAD::API::PickHelper::Pick ( int  cx,
int  cy 
)

Perform the picking.

参数
cxthe x of screen.
cythe y of screen.
返回
true if selecting something.
bool AnyCAD::API::PickHelper::Pick ( const Vector2 mousePosition)

Perform the picking.

参数
mousePositionthe mouse position on screen.
返回
true if selecting something.
void AnyCAD::API::PickHelper::SetPickFlags ( int  nFlags)

设置选择过滤, 从EnumRenderFlags中取值。

参数
nFlags过滤组合

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