跳到主要内容
版本:v10.0

M3D / M3D / Actions / RaypickFunction

Class: RaypickFunction

M3D.Actions.RaypickFunction

Memberof

M3D.Actions

Description

拾取方法封装类

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new RaypickFunction(): RaypickFunction

Returns

RaypickFunction

Properties

frameRaypickOptions

Static frameRaypickOptions: Map<ShapeType, any>


getImagerIntersectPnts

Static getImagerIntersectPnts: any

Description

获取与图片的交点

Param

Param


isInited

Static isInited: boolean


options

Static options: Map<ShapeType, any>

Methods

addFrameRaypickActionFun

addFrameRaypickActionFun(shapeType, fun): void

Parameters

NameTypeDescription
shapeTypeShapeTypeshape类型
funany对应框选方法

Returns

void

Description

设置基本图形对应的框选方法


addRaypickActionFun

addRaypickActionFun(shapeType, fun): void

Parameters

NameTypeDescription
shapeTypeShapeTypeshape类型
funany对应拾取方法

Returns

void

Description

设置基本图形对应的拾取方法


frameRayPick

frameRayPick(pAction, pShape?): boolean

Parameters

NameType
pActionRaypickAction
pShape?Shape

Returns

boolean

Description

执行框选接口


frameRayPickComtextFastTemp

frameRayPickComtextFastTemp(raypickAction, shape, matrix): void

Parameters

NameType
raypickActionRaypickAction
shapeShape
matrixMatrix3x4

Returns

void


frameRayPickFaceFastTemp

frameRayPickFaceFastTemp(raypickAction, pShape): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape

Returns

void

Description

面框选处理接口,有相交的部分即判定为相交


frameRayPickFaceTemp

frameRayPickFaceTemp(raypickAction, pShape): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape

Returns

void

Description

面框选处理接口,全部包含在框选范围才算相交


frameRayPickModel

frameRayPickModel(raypickAction, pShape): boolean

Parameters

NameType
raypickActionRaypickAction
pShapeShape

Returns

boolean

是否选中模型

Description

模型框选处理接口


frameRayPickPMI

frameRayPickPMI(raypickAction, shape): boolean

Parameters

NameType
raypickActionRaypickAction
shapeShape

Returns

boolean

Description

PMI框选


frameRayPickPolyLineFastTemp

frameRayPickPolyLineFastTemp(raypickAction, shape, matrix): void

Parameters

NameType
raypickActionRaypickAction
shapeShape
matrixMatrix3x4

Returns

void

Description

PMI折线框选处理接口,有相交的部分即判定为相交


getFrameRaypickActionFun

getFrameRaypickActionFun(shapeType): any

Parameters

NameType
shapeTypeShapeType

Returns

any

当前Shape类型对应框选方法

Description

获取对象框选方法


getRaypickActionFun

getRaypickActionFun(shapeType): any

Parameters

NameType
shapeTypeShapeType

Returns

any

当前Shape类型对应拾取方法

Description

获取对象拾取方法


rayPick

rayPick(pAction, shape, parentShape?): void

Parameters

NameType
pActionRaypickAction
shapeShape
parentShape?Shape

Returns

void

Description

执行拾取接口


raypickComText

raypickComText(raypickAction, shape, parentShape?): void

Parameters

NameType
raypickActionRaypickAction
shapeShape
parentShape?Shape

Returns

void

Description

文本拾取


raypickDragger

raypickDragger(raypickAction, pShape): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape

Returns

void

Description

拾取拖拽器


raypickEdge

raypickEdge(raypickAction, pShape): Edge

Parameters

NameTypeDescription
raypickActionRaypickAction射线拾取Action对象
pShapeShape形状对象

Returns

Edge

Description

拾取Edge


raypickFace

raypickFace(raypickAction, pShape): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape

Returns

void

Description

拾取Face


raypickImage

raypickImage(raypickAction, pShape, parentShape?): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape
parentShape?Shape

Returns

void

Description

拾取图片


raypickLine

raypickLine(raypickAction, pShape, parentShape?): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape
parentShape?Shape

Returns

void

Description

拾取线


raypickModel

raypickModel(raypickAction, pShape): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape

Returns

void

Description

模型拾取处理接口


raypickNote

raypickNote(raypickAction, pShape): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape

Returns

void

Description

拾取折线


raypickPMI

raypickPMI(raypickAction, shape): void

Parameters

NameType
raypickActionRaypickAction
shapeShape

Returns

void

Description

拾取PMI


raypickPoint

raypickPoint(raypickAction, pShape, parentShape?): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape
parentShape?Shape

Returns

void

Description

拾取点


raypickPolyLine

raypickPolyLine(raypickAction, pShape, parentShape?): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape
parentShape?Shape

Returns

void

Description

拾取折线


raypickSectionEdge

raypickSectionEdge(raypickAction, pShape): void

Parameters

NameTypeDescription
raypickActionRaypickAction射线拾取Action对象
pShapeShape形状对象

Returns

void

Description

拾取Edge


raypickSectionPlane

raypickSectionPlane(raypickAction, pShape): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape

Returns

void

Description

拾取剖面接口


raypickSurface

raypickSurface(raypickAction, pShape): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape

Returns

void

Description

拾取Surface(未完成)


raypickTriangle

raypickTriangle(raypickAction, pShape): void

Parameters

NameType
raypickActionRaypickAction
pShapeShape

Returns

void

Description

拾取三角形(未实现)