Manual Reference Source
import CommentManager from 'modelo3d/doc/View/tool/Comment.js'
public class | source

CommentManager

Extends:

Tool → CommentManager

Constructor Summary

Public Constructor
public

Constructor of CommentManager

Method Summary

Public Methods
public

Delete all resources in CommentManager object.

public

setEnabled(enabled: boolean)

Enable/Disable CommentManager

public

setFocusedComment(comment: Object, isVrEnabled: boolean): *

public

Set the speed of the camera during animation.

public

update()

Update all comments positions and visibility

Inherited Summary

From class Tool
public

addInput(input: *)

Add input to the tool

public

Destroy the tool and release all internal resources

public
public

setEnabled(enabled: boolean)

Enable/Disable the tool

Public Constructors

public constructor(viewer: Viewer3D) source

Constructor of CommentManager

Override:

Tool#constructor

Params:

NameTypeAttributeDescription
viewer Viewer3D

Public Methods

public destroy() source

Delete all resources in CommentManager object.

Override:

Tool#destroy

public setEnabled(enabled: boolean) source

Enable/Disable CommentManager

Override:

Tool#setEnabled

Params:

NameTypeAttributeDescription
enabled boolean

public setFocusedComment(comment: Object, isVrEnabled: boolean): * source

Params:

NameTypeAttributeDescription
comment Object
isVrEnabled boolean

Return:

*

True the rendering needs refreshing.

public setTransitionSpeed(speed: number) source

Set the speed of the camera during animation.

Params:

NameTypeAttributeDescription
speed number

public update() source

Update all comments positions and visibility