M3D / M3D / Shapes / ViewHotSpot
Class: ViewHotSpot
Memberof
M3D.Shapes
Description
视图热点
Author
nhy
Date
2023-1-13
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Hierarchy
-
↳
ViewHotSpot
Table of contents
Constructors
Properties
Accessors
Methods
- addComText
- addEffect
- addImage
- addLine
- addOutFrame
- addPoint
- addPolyLine
- addText
- clear
- clearComText
- clearImage
- clearOutFrames
- clearPolyLines
- getAlpha
- getAuthor
- getBoundingBox
- getCameraPosition
- getCameraProjectionType
- getCameraRotation
- getCameraZoom
- getColor
- getComTexts
- getCreateId
- getCreateTime
- getDescription
- getDrawables
- getEffect
- getEvents
- getFirstParentPath
- getFirstPosition
- getFrameLineList
- getGuid
- getId
- getImage
- getImageList
- getIsFrontShow
- getLineList
- getLocalTransform
- getModelViewID
- getName
- getNeedClip
- getObjectId
- getPoint
- getPointList
- getPolyLineList
- getPosition
- getProperties
- getProto
- getRenderShapes
- getRotation
- getScene
- getSecondParentPath
- getSecondPosition
- getShapeType
- getTextValue
- getWorldBoundingBox
- getWorldTransform
- initAttributes
- isDirty
- isPreSelected
- isSelected
- isVisible
- markDirty
- post
- registerEvent
- removeEffect
- removeEvent
- removeLine
- removePoint
- send
- sendClipMessage
- sendEffectMessage
- setAlpha
- setAuthor
- setCameraPosition
- setCameraProjectionType
- setCameraRotation
- setCameraZoom
- setColor
- setCreateId
- setCreateTime
- setDescription
- setEffect
- setFirstParentPath
- setFirstPosition
- setFrontShow
- setGuid
- setId
- setImage
- setImagePosition
- setModelViewID
- setName
- setNeedClip
- setObjectId
- setPosition
- setScene
- setSecondParentPath
- setSecondPosition
- setSelected
- setShapeType
- setVisible
- setWorldTransform
- update
Constructors
constructor
• new ViewHotSpot(): ViewHotSpot
Returns
Description
构造函数
Overrides
• new ViewHotSpot(scene
, id
, name
, description
, position
, cameraPosition
, cameraRotation
, cameraZoom
, cameraProjectionType
, modelViewID
): ViewHotSpot
Parameters
Name | Type |
---|---|
scene | Scene |
id | number |
name | string |
description | string |
position | Vector3 |
cameraPosition | Vector3 |
cameraRotation | Vector4 |
cameraZoom | Vector3 |
cameraProjectionType | number |
modelViewID | number |
Returns
Description
构造函数
Overrides
HotSpot.constructor
Properties
id
• id: 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
HotSpot.isProto
• set
isProto(v
): void
Parameters
Name | Type |
---|---|
v | boolean |
Returns
void
Description
设置是否为原型对象
Inherited from
HotSpot.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
getCameraPosition
▸ getCameraPosition(): Vector4
Returns
Description
获取相机位置
Inherited from
getCameraProjectionType
▸ getCameraProjectionType(): number
Returns
number
Description
获取相机投影类型
Inherited from
HotSpot.getCameraProjectionType
getCameraRotation
▸ getCameraRotation(): Vector3
Returns
Description
获取相机旋转参数
Inherited from
getCameraZoom
▸ getCameraZoom(): Vector3
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
getDescription
▸ getDescription(): string
Returns
string
Description
获取热点描述
Inherited from
getDrawables
▸ getDrawables(): void
Returns
void
Description
获取渲染数据
Inherited from
getEffect
▸ getEffect(): number
Returns
number
Description
获取效果