AnyCAD SDK PRO  2020
The Professional Graphics SDK for .Net and C++ Developers
Public 成员函数 | 所有成员列表
AnyCAD::Platform::PickHelper类 参考

拾取辅助类. 更多...

Public 成员函数

void SetPickFlags (int nFlags)
 
void Initialize (Renderer^ renderer)
 
bool Pick (int cx, int cy)
 
bool Pick (Vector2^ mousePosition)
 
SceneNodeGetSceneNode ()
 
SceneNodeGetSubSceneNode ()
 
TopoShapeGetGeometry ()
 
TopoShapeGetSubGeometry ()
 
Vector3GetPointOnShape ()
 
SelectedShapeQueryGetQuery ()
 

详细描述

拾取辅助类.

TODO:

成员函数说明

TopoShape ^ AnyCAD::Platform::PickHelper::GetGeometry ( )

Get the selected geometry.

返回
the TopoShape.
Vector3 ^ AnyCAD::Platform::PickHelper::GetPointOnShape ( )

Get the point position of the selected shape..

返回
the global position.
SelectedShapeQuery ^ AnyCAD::Platform::PickHelper::GetQuery ( )

Get shape query.

返回
the shape query.
SceneNode ^ AnyCAD::Platform::PickHelper::GetSceneNode ( )

Get the selected node.

返回
the SceneNode.
TopoShape ^ AnyCAD::Platform::PickHelper::GetSubGeometry ( )

Get the selected sub geometry.

返回
the TopoShape.
SceneNode ^ AnyCAD::Platform::PickHelper::GetSubSceneNode ( )

Get the selected sub node.

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

初始化.

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

Perform the picking.

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

Perform the picking.

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

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

参数
nFlags过滤组合

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