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

M3D / M3D / Shapes / MeasureDiameter

Class: MeasureDiameter

M3D.Shapes.MeasureDiameter

Memberof

M3D.Shapes

Description

ֱ������

Author

YW

Date

2022-1-12

Version

1.0

Copyright

All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new MeasureDiameter(): MeasureDiameter

Returns

MeasureDiameter

Description

构造函数

Inherited from

Measure.constructor

Properties

id

id: number

Inherited from

Measure.id


ANGLEMEASURE

Static ANGLEMEASURE: number[]

Inherited from

Measure.ANGLEMEASURE


DISTANCEMEASURE

Static DISTANCEMEASURE: number[]

Inherited from

Measure.DISTANCEMEASURE


count

Static count: number

Inherited from

Measure.count


isProto

Static isProto: string

Inherited from

Measure.isProto


pVertexHeader

Static pVertexHeader: string

Inherited from

Measure.pVertexHeader

Accessors

isProto

get isProto(): boolean

Returns

boolean

Description

获取是否为原型对象

Inherited from

Measure.isProto

set isProto(v): void

Parameters

NameType
vboolean

Returns

void

Description

设置是否为原型对象

Inherited from

Measure.isProto

Methods

addComText

addComText(comText): void

Parameters

NameType
comTextComText

Returns

void

Description

添加多文本对象

Inherited from

Measure.addComText


addEffect

addEffect(effectType): void

Parameters

NameType
effectTypenumber

Returns

void

Description

添加特效效果

Inherited from

Measure.addEffect


addImage

addImage(image): void

Parameters

NameType
imageImage

Returns

void

Description

添加图片对象

Inherited from

Measure.addImage


addLine

addLine(line): void

Parameters

NameType
lineLine

Returns

void

Description

添加线对象

Inherited from

Measure.addLine


addOutFrame

addOutFrame(polyLine): void

Parameters

NameType
polyLinePolyLine

Returns

void

Description

添加外框

Inherited from

Measure.addOutFrame


addPoint

addPoint(point): void

Parameters

NameType
pointPoint

Returns

void

Description

添加点对象

Inherited from

Measure.addPoint


addPolyLine

addPolyLine(polyLine): void

Parameters

NameType
polyLinePolyLine

Returns

void

Description

添加折线对象

Inherited from

Measure.addPolyLine


addText

addText(ct): void

Parameters

NameType
ctComText

Returns

void

Description

添加文字

Inherited from

Measure.addText


clear

clear(): void

Returns

void

Description

清空

Inherited from

Measure.clear


clearComText

clearComText(): void

Returns

void

Description

清空ComText

Inherited from

Measure.clearComText


clearImage

clearImage(): void

Returns

void

Description

清空图片

Inherited from

Measure.clearImage


clearOutFrames

clearOutFrames(): void

Returns

void

Description

清空外框

Inherited from

Measure.clearOutFrames


clearPolyLines

clearPolyLines(): void

Returns

void

Description

清空所有折线

Inherited from

Measure.clearPolyLines


getAlpha

getAlpha(): number

Returns

number

Description

获取透明度

Inherited from

Measure.getAlpha


getAuthor

getAuthor(): string

Returns

string

Description

获取创建者

Inherited from

Measure.getAuthor


getBoundingBox

getBoundingBox(): BoundingBox

Returns

BoundingBox

Description

获取包围盒

Inherited from

Measure.getBoundingBox


getColor

getColor(): Color

Returns

Color

Description

获取测量颜色

Inherited from

Measure.getColor


getComTexts

getComTexts(): ComText[]

Returns

ComText[]

Description

获取文字对象列表

Inherited from

Measure.getComTexts


getCreateId

getCreateId(): number

Returns

number

Description

获取createId

Inherited from

Measure.getCreateId


getCreateTime

getCreateTime(): string

Returns

string

Description

获取创建时间

Inherited from

Measure.getCreateTime


getDrawables

getDrawables(): void

Returns

void

Description

获取渲染数据

Inherited from

Measure.getDrawables


getEffect

getEffect(): number

Returns

number

Description

获取效果

Inherited from

Measure.getEffect


getEvents

getEvents(): M3DEvent[]

Returns

M3DEvent[]

Description

获得事件列表

Inherited from

Measure.getEvents


getFirstParentModel

getFirstParentModel(): Model

Returns

Model

Description

获取第一个父级模型

Inherited from

Measure.getFirstParentModel


getFirstParentPath

getFirstParentPath(): string

Returns

string

Description

获取FirstParent路径

Inherited from

Measure.getFirstParentPath


getFirstPosition

getFirstPosition(): Vector3

Returns

Vector3

Description

获取第一个点位置

Inherited from

Measure.getFirstPosition


getFrameLineList

getFrameLineList(): PolyLine[]

Returns

PolyLine[]

Description

获取边框线对象

Inherited from

Measure.getFrameLineList


getGuid

getGuid(): string

Returns

string

Description

获取guid

Inherited from

Measure.getGuid


getId

getId(): number

Returns

number

Description

获取id

Inherited from

Measure.getId


getImageList

getImageList(): Image[]

Returns

Image[]

Description

获取显示图片列表

Inherited from

Measure.getImageList


getIsFrontShow

getIsFrontShow(): boolean

Returns

boolean

Description

获取是否前端显示

Inherited from

Measure.getIsFrontShow


getLineList

getLineList(): Line[]

Returns

Line[]

Description

获取线对象

Inherited from

Measure.getLineList


getLocalTransform

getLocalTransform(): Matrix4

Returns

Matrix4

Description

获取shape的局部矩阵

Inherited from

Measure.getLocalTransform


getMeasureType

getMeasureType(): MeasureType

Returns

MeasureType

Description

获取测量类型

Inherited from

Measure.getMeasureType


getName

getName(): string

Returns

string

Description

获取实例名称

Inherited from

Measure.getName


getNeedClip

getNeedClip(): boolean

Returns

boolean

Description

获取是否需要剖切

Inherited from

Measure.getNeedClip


getObjectId

getObjectId(): number

Returns

number

Description

获取ObjectId

Inherited from

Measure.getObjectId


getPoint

getPoint(index): Point

Parameters

NameType
indexnumber

Returns

Point

Description

获取特定位置点

Inherited from

Measure.getPoint


getPointList

getPointList(): Point[]

Returns

Point[]

Description

获取点对象

Inherited from

Measure.getPointList


getPolyLineList

getPolyLineList(): PolyLine[]

Returns

PolyLine[]

Description

获取折线对象

Inherited from

Measure.getPolyLineList


getPosition

getPosition(): Vector3

Returns

Vector3

Description

获取位置

Inherited from

Measure.getPosition


getProperties

getProperties(): PropertySet

Returns

PropertySet

Description

获取属性管理器

Inherited from

Measure.getProperties


getProto

getProto(): Shape

Returns

Shape

Description

获取原型

Inherited from

Measure.getProto


getRenderShapes

getRenderShapes(): RenderableShape[]

Returns

RenderableShape[]

Description

获取可绘制对象

Inherited from

Measure.getRenderShapes


getRotation

getRotation(): Quaternion

Returns

Quaternion

Description

获取空间旋转信息

Inherited from

Measure.getRotation


getScene

getScene(): Scene

Returns

Scene

场景对象

Description

获取场景对象

Inherited from

Measure.getScene


getSecondParentModel

getSecondParentModel(): Model

Returns

Model

Description

获取第一个父级模型

Inherited from

Measure.getSecondParentModel


getSecondParentPath

getSecondParentPath(): string

Returns

string

Description

获取SecondParent路径

Inherited from

Measure.getSecondParentPath


getSecondPosition

getSecondPosition(): Vector3

Returns

Vector3

Description

获取第二个点位置

Inherited from

Measure.getSecondPosition


getShapeType

getShapeType(): ShapeType

Returns

ShapeType

Description

获取Shape类型

Inherited from

Measure.getShapeType


getText

getText(): string

Returns

string

Description

获取测量文本

Inherited from

Measure.getText


getTextValue

getTextValue(): string

Returns

string

Description

获取文本string类型数据

Inherited from

Measure.getTextValue


getWorldBoundingBox

getWorldBoundingBox(): BoundingBox

Returns

BoundingBox

Description

获取世界包围盒

Inherited from

Measure.getWorldBoundingBox


getWorldTransform

getWorldTransform(): Matrix4

Returns

Matrix4

Description

获取shape的世界矩阵

Inherited from

Measure.getWorldTransform


initAttributes

initAttributes(): void

Returns

void

Description

添加创建时间创建人信息

Inherited from

Measure.initAttributes


initializeColor

initializeColor(color): void

Parameters

NameType
colorColor

Returns

void

Description

初始化测量颜色

Inherited from

Measure.initializeColor


isDirty

isDirty(): boolean

Returns

boolean

Description

获取脏标记

Inherited from

Measure.isDirty


isPreSelected

isPreSelected(): boolean

Returns

boolean

Description

是否预选中

Inherited from

Measure.isPreSelected


isSelected

isSelected(): boolean

Returns

boolean

Description

是否被选中

Inherited from

Measure.isSelected


isVisible

isVisible(orginVisible?): boolean

Parameters

NameTypeDescription
orginVisible?boolean是否获取原始可见性

Returns

boolean

Description

获取可见性

Inherited from

Measure.isVisible


markDirty

markDirty(): void

Returns

void

Description

设置脏标记

Inherited from

Measure.markDirty


post

post(msg): void

Parameters

NameTypeDescription
msgM3DMessage消息信息

Returns

void

Description

发送消息

Inherited from

Measure.post


registerEvent

registerEvent(event): void

Parameters

NameTypeDescription
eventM3DEventM3D事件

Returns

void

Description

注册事件

Inherited from

Measure.registerEvent


removeEffect

removeEffect(effectType): void

Parameters

NameType
effectTypeEffectType

Returns

void

Description

移除效果

Inherited from

Measure.removeEffect


removeEvent

removeEvent(): void

Returns

void

Description

删除事件

Inherited from

Measure.removeEvent


removeLine

removeLine(line): void

Parameters

NameType
lineLine

Returns

void

Description

清除指定线

Inherited from

Measure.removeLine


removePoint

removePoint(point): void

Parameters

NameType
pointPoint

Returns

void

Description

清除指定点

Inherited from

Measure.removePoint


send

send(msg): void

Parameters

NameTypeDescription
msgM3DMessage消息信息

Returns

void

Description

发送消息

Inherited from

Measure.send


sendClipMessage

sendClipMessage(): void

Returns

void

Description

发送剖切更新消息

Inherited from

Measure.sendClipMessage


sendEffectMessage

sendEffectMessage(): void

Returns

void

Description

发送特效更新消息

Inherited from

Measure.sendEffectMessage


setAlpha

setAlpha(alpha): void

Parameters

NameType
alphanumber

Returns

void

Description

设置透明度

Inherited from

Measure.setAlpha


setAuthor

setAuthor(author): void

Parameters

NameType
authorstring

Returns

void

Description

设置创建者

Inherited from

Measure.setAuthor


setColor

setColor(color): void

Parameters

NameType
colorColor

Returns

void

Description

设置颜色

Inherited from

Measure.setColor


setCreateId

setCreateId(createId): void

Parameters

NameType
createIdnumber

Returns

void

Description

设置createId

Inherited from

Measure.setCreateId


setCreateTime

setCreateTime(createtime): void

Parameters

NameType
createtimestring

Returns

void

Description

设置创建时间

Inherited from

Measure.setCreateTime


setEffect

setEffect(effectType): void

Parameters

NameType
effectTypenumber

Returns

void

Description

设置效果,包括高亮、轮廓等

Inherited from

Measure.setEffect


setFirstParentModel

setFirstParentModel(parentModel): void

Parameters

NameType
parentModelModel

Returns

void

Description

设置第一个父级模型

Inherited from

Measure.setFirstParentModel


setFirstParentPath

setFirstParentPath(path): void

Parameters

NameType
pathstring

Returns

void

Description

设置FirstParent路径

Inherited from

Measure.setFirstParentPath


setFirstPosition

setFirstPosition(position): void

Parameters

NameType
positionVector3

Returns

void

Description

设置第一个点位置

Inherited from

Measure.setFirstPosition


setFrontShow

setFrontShow(frontShow): void

Parameters

NameType
frontShowboolean

Returns

void

Description

设置是否前端显示

Inherited from

Measure.setFrontShow


setGuid

setGuid(guid): void

Parameters

NameType
guidstring

Returns

void

Description

设置guid

Inherited from

Measure.setGuid


setId

setId(v): void

Parameters

NameTypeDescription
vnumberShapeId

Returns

void

Description

设置id

Inherited from

Measure.setId


setImagePosition

setImagePosition(position): void

Parameters

NameType
positionVector3

Returns

void

Description

设置图片位置

Inherited from

Measure.setImagePosition


setMeasureType

setMeasureType(type): void

Parameters

NameType
typeMeasureType

Returns

void

Description

设置测量类型

Inherited from

Measure.setMeasureType


setName

setName(name): void

Parameters

NameTypeDescription
namestring名称

Returns

void

Description

设置实例名称

Inherited from

Measure.setName


setNeedClip

setNeedClip(isClip): void

Parameters

NameType
isClipboolean

Returns

void

Description

设置是否需要剖切

Inherited from

Measure.setNeedClip


setObjectId

setObjectId(id): void

Parameters

NameType
idnumber

Returns

void

Description

设置ObjectId

Inherited from

Measure.setObjectId


setPosition

setPosition(postion): void

Parameters

NameTypeDescription
postionVector3位置

Returns

void

Description

设置位置

Inherited from

Measure.setPosition


setScene

setScene(scene): void

Parameters

NameType
sceneScene

Returns

void

Description

设置场景

Inherited from

Measure.setScene


setSecondParentModel

setSecondParentModel(parentModel): void

Parameters

NameType
parentModelModel

Returns

void

Description

设置第一个父级模型

Inherited from

Measure.setSecondParentModel


setSecondParentPath

setSecondParentPath(path): void

Parameters

NameType
pathstring

Returns

void

Description

设置SecondParent路径

Inherited from

Measure.setSecondParentPath


setSecondPosition

setSecondPosition(position): void

Parameters

NameType
positionVector3

Returns

void

Description

设置第二个点位置

Inherited from

Measure.setSecondPosition


setSelected

setSelected(selected): void

Parameters

NameType
selectedboolean

Returns

void

Description

设置是否被选中

Inherited from

Measure.setSelected


setShapeType

setShapeType(v): void

Parameters

NameTypeDescription
vShapeType类型

Returns

void

Description

设置类型

Inherited from

Measure.setShapeType


setText

setText(text): void

Parameters

NameType
textstring

Returns

void

Description

设置测量文本

Inherited from

Measure.setText


setVisible

setVisible(visible, originVisible?): void

Parameters

NameTypeDescription
visibleboolean是否可见 boolean类型
originVisible?boolean-

Returns

void

Description

设置是否可见

Inherited from

Measure.setVisible


setWorldTransform

setWorldTransform(matrix): void

Parameters

NameType
matrixMatrix4

Returns

void

Description

设置世界矩阵

Inherited from

Measure.setWorldTransform


update

update(msg): void

Parameters

NameTypeDescription
msgM3DMessage消息信息

Returns

void

Description

更新消息

Inherited from

Measure.update