Class: HotSpot
Memberof
M3D.Shapes
Description
热点基类
Date
2022-1-12
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Hierarchy
-
↳
HotSpot
↳↳
AreaHotSpot
↳↳
ViewHotSpot
↳↳
VoiceHotSpot
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
- 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
- setName
- setNeedClip
- setObjectId
- setPosition
- setScene
- setSecondParentPath
- setSecondPosition
- setSelected
- setShapeType
- setVisible
- setWorldTransform
- update
Constructors
constructor
• new HotSpot(scene
, id
, name
, description
, position
, cameraPosition
, cameraRotation
, cameraZoom
, cameraProjectionType
): HotSpot
Parameters
Name | Type |
---|---|
scene | Scene |
id | number |
name | string |
description | string |
position | Vector3 |
cameraPosition | Vector3 |
cameraRotation | Vector4 |
cameraZoom | Vector3 |
cameraProjectionType | number |
Returns
Description
构造函数
Overrides
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
Note.isProto
• set
isProto(v
): void
Parameters
Name | Type |
---|---|
v | boolean |
Returns
void
Description
设置是否为原型对象
Inherited from
Note.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
清空所有折线