M3D / M3D / Shapes / MeasureDistance
Class: MeasureDistance
Memberof
M3D.Shapes
Description
�������
Author
YW
Date
2022-1-12
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Hierarchy
-
↳
MeasureDistance
Table of contents
Constructors
Properties
Accessors
Methods
- addComText
- addEffect
- addImage
- addLine
- addOutFrame
- addPoint
- addPolyLine
- addText
- clear
- clearComText
- clearImage
- clearOutFrames
- clearPolyLines
- getAlpha
- getAuthor
- getBoundingBox
- getColor
- getComTexts
- getCreateId
- getCreateTime
- getDrawables
- getEffect
- getEvents
- getFirstParentModel
- getFirstParentPath
- getFirstPosition
- getFrameLineList
- getGuid
- getId
- getImageList
- getIsFrontShow
- getLineList
- getLocalTransform
- getMeasureType
- getName
- getNeedClip
- getObjectId
- getPoint
- getPointList
- getPolyLineList
- getPosition
- getProperties
- getProto
- getRenderShapes
- getRotation
- getScene
- getSecondParentModel
- getSecondParentPath
- getSecondPosition
- getShapeType
- getText
- getTextValue
- getWorldBoundingBox
- getWorldTransform
- initAttributes
- initializeColor
- isDirty
- isPreSelected
- isSelected
- isVisible
- markDirty
- post
- registerEvent
- removeEffect
- removeEvent
- removeLine
- removePoint
- send
- sendClipMessage
- sendEffectMessage
- setAlpha
- setAuthor
- setColor
- setCreateId
- setCreateTime
- setEffect
- setFirstParentModel
- setFirstParentPath
- setFirstPosition
- setFrontShow
- setGuid
- setId
- setImagePosition
- setMeasureType
- setName
- setNeedClip
- setObjectId
- setPosition
- setScene
- setSecondParentModel
- setSecondParentPath
- setSecondPosition
- setSelected
- setShapeType
- setText
- setVisible
- setWorldTransform
- update
Constructors
constructor
• new MeasureDistance(): MeasureDistance
Returns
Description
构造函数
Inherited from
Properties
id
• id: number
Inherited from
ANGLEMEASURE
▪ Static
ANGLEMEASURE: number
[]
Inherited from
DISTANCEMEASURE
▪ Static
DISTANCEMEASURE: number
[]
Inherited from
count
▪ Static
count: number
Inherited from
isProto
▪ Static
isProto: string
Inherited from
pVertexHeader
▪ Static
pVertexHeader: string
Inherited from
Accessors
isProto
• get
isProto(): boolean
Returns
boolean
Description
获取是否为原型对象
Inherited from
Measure.isProto
• set
isProto(v
): void
Parameters
Name | Type |
---|---|
v | boolean |
Returns
void
Description
设置是否为原型对象
Inherited from
Measure.isProto
Methods
addComText
▸ addComText(comText
): void
Parameters
Name | Type |
---|---|
comText | ComText |
Returns
void
Description
添加多文本对象
Inherited from
addEffect
▸ addEffect(effectType
): void
Parameters
Name | Type |
---|---|
effectType | number |
Returns
void
Description
添加特效效果
Inherited from
addImage
▸ addImage(image
): void
Parameters
Name | Type |
---|---|
image | Image |
Returns
void
Description
添加图片对象
Inherited from
addLine
▸ addLine(line
): void
Parameters
Name | Type |
---|---|
line | Line |
Returns
void
Description
添加线对象
Inherited from
addOutFrame
▸ addOutFrame(polyLine
): void
Parameters
Name | Type |
---|---|
polyLine | PolyLine |
Returns
void
Description
添加外框
Inherited from
addPoint
▸ addPoint(point
): void
Parameters
Name | Type |
---|---|
point | Point |
Returns
void
Description
添加点对象
Inherited from
addPolyLine
▸ addPolyLine(polyLine
): void
Parameters
Name | Type |
---|---|
polyLine | PolyLine |
Returns
void
Description
添加折线对象
Inherited from
addText
▸ addText(ct
): void
Parameters
Name | Type |
---|---|
ct | ComText |
Returns
void
Description
添加文字
Inherited from
clear
▸ clear(): void
Returns
void
Description
清空
Inherited from
clearComText
▸ clearComText(): void
Returns
void
Description
清空ComText
Inherited from
clearImage
▸ clearImage(): void
Returns
void
Description
清空图片
Inherited from
clearOutFrames
▸ clearOutFrames(): void
Returns
void
Description
清空外框
Inherited from
clearPolyLines
▸ clearPolyLines(): void
Returns
void
Description
清空所有折线
Inherited from
getAlpha
▸ getAlpha(): number
Returns
number
Description
获取透明度
Inherited from
getAuthor
▸ getAuthor(): string
Returns
string
Description
获取创建者
Inherited from
getBoundingBox
▸ getBoundingBox(): BoundingBox
Returns
Description
获取包围盒
Inherited from
getColor
▸ getColor(): Color
Returns
Description
获取测量颜色
Inherited from
getComTexts
▸ getComTexts(): ComText
[]
Returns
ComText
[]
Description
获取文字对象列表
Inherited from
getCreateId
▸ getCreateId(): number
Returns
number
Description
获取createId
Inherited from
getCreateTime
▸ getCreateTime(): string
Returns
string
Description
获取创建时间
Inherited from
getDrawables
▸ getDrawables(): void
Returns
void
Description
获取渲染数据
Inherited from
getEffect
▸ getEffect(): number
Returns
number
Description
获取效果
Inherited from
getEvents
▸ getEvents(): M3DEvent
[]
Returns
M3DEvent
[]
Description
获得事件列表
Inherited from
getFirstParentModel
▸ getFirstParentModel(): Model
Returns
Description
获取第一个父级模型
Inherited from
getFirstParentPath
▸ getFirstParentPath(): string
Returns
string
Description
获取FirstParent路径
Inherited from
getFirstPosition
▸ getFirstPosition(): Vector3
Returns
Description
获取第一个点位置
Inherited from
getFrameLineList
▸ getFrameLineList(): PolyLine
[]
Returns
PolyLine
[]
Description
获取边框线对象
Inherited from
getGuid
▸ getGuid(): string
Returns
string
Description
获取guid
Inherited from
getId
▸ getId(): number
Returns
number
Description
获取id
Inherited from
getImageList
▸ getImageList(): Image
[]
Returns
Image
[]
Description
获取显示图片列表
Inherited from
getIsFrontShow
▸ getIsFrontShow(): boolean
Returns
boolean
Description
获取是否前端显示
Inherited from
getLineList
▸ getLineList(): Line
[]
Returns
Line
[]
Description
获取线对象
Inherited from
getLocalTransform
▸ getLocalTransform(): Matrix4
Returns
Description
获取shape的局部矩阵
Inherited from
getMeasureType
▸ getMeasureType(): MeasureType
Returns
Description
获取测量类型
Inherited from
getName
▸ getName(): string
Returns
string
Description
获取实例名称
Inherited from
getNeedClip
▸ getNeedClip(): boolean
Returns
boolean
Description
获取是否需要剖切
Inherited from
getObjectId
▸ getObjectId(): number
Returns
number
Description
获取ObjectId
Inherited from
getPoint
▸ getPoint(index
): Point
Parameters
Name | Type |
---|---|
index | number |
Returns
Description
获取特定位置点
Inherited from
getPointList
▸ getPointList(): Point
[]
Returns
Point
[]
Description
获取点对象
Inherited from
getPolyLineList
▸ getPolyLineList(): PolyLine
[]
Returns
PolyLine
[]
Description
获取折线对象
Inherited from
getPosition
▸ getPosition(): Vector3
Returns
Description
获取位置
Inherited from
getProperties
▸ getProperties(): PropertySet
Returns
Description
获取属性管理器
Inherited from
getProto
▸ getProto(): Shape
Returns
Description
获取原型
Inherited from
getRenderShapes
▸ getRenderShapes(): RenderableShape
[]
Returns
Description
获取可绘制对象
Inherited from
getRotation
▸ getRotation(): Quaternion
Returns
Description
获取空间旋转信息
Inherited from
getScene
▸ getScene(): Scene
Returns
场景对象
Description
获取场景对象
Inherited from
getSecondParentModel
▸ getSecondParentModel(): Model
Returns
Description
获取第一个父级模型
Inherited from
getSecondParentPath
▸ getSecondParentPath(): string
Returns
string
Description
获取SecondParent路径
Inherited from
getSecondPosition
▸ getSecondPosition(): Vector3
Returns
Description
获取第二个点位置
Inherited from
getShapeType
▸ getShapeType(): ShapeType
Returns
Description
获取Shape类型
Inherited from
getText
▸ getText(): string
Returns
string
Description
获取测量文本
Inherited from
getTextValue
▸ getTextValue(): string
Returns
string
Description
获取文本string类型数据
Inherited from
getWorldBoundingBox
▸ getWorldBoundingBox(): BoundingBox
Returns
Description
获取世界包围盒
Inherited from
getWorldTransform
▸ getWorldTransform(): Matrix4
Returns
Description
获取shape的世界矩阵
Inherited from
initAttributes
▸ initAttributes(): void
Returns
void
Description
添加创建时间创建人信息
Inherited from
initializeColor
▸ initializeColor(color
): void
Parameters
Name | Type |
---|---|
color | Color |
Returns
void
Description
初始化测量颜色
Inherited from
isDirty
▸ isDirty(): boolean
Returns
boolean
Description
获取脏标记
Inherited from
isPreSelected
▸ isPreSelected(): boolean
Returns
boolean
Description
是否预选中
Inherited from
isSelected
▸ isSelected(): boolean
Returns
boolean
Description
是否被选中
Inherited from
isVisible
▸ isVisible(orginVisible?
): boolean
Parameters
Name | Type | Description |
---|---|---|
orginVisible? | boolean | 是否获取原始可见性 |
Returns
boolean
Description
获取可见性
Inherited from
markDirty
▸ markDirty(): void
Returns
void
Description
设置脏标记