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

SelectElement

Extends:

Tool → SelectElement

Constructor Summary

Public Constructor
public

Constructor of the selectElement tool

Method Summary

Public Methods
public

addInput(input: Mouse)

Add input to the selectElement tool

public

Delete all resources in the selectElement tool

public

pick(elementNames: *)

Pick elements by specifying their names.

public

Enable/Disable moving camera to a close up view after elements selected.

public

setEnabled(enabled: *)

Enable/Disable the selectElement tool

public

Enable/Disable multiSelect

public

Enable/Disable region select.

public

Change the color of selection rectangluar gizmo color and transparency.

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 the selectElement tool

Override:

Tool#constructor

Params:

NameTypeAttributeDescription
viewer Viewer3D

Viewer that this tool will be added to.

Public Methods

public addInput(input: Mouse) source

Add input to the selectElement tool

Override:

Tool#addInput

Params:

NameTypeAttributeDescription
input Mouse

Currently the tool can only be a mouse object.

public destroy() source

Delete all resources in the selectElement tool

Override:

Tool#destroy

public pick(elementNames: *) source

Pick elements by specifying their names.

Params:

NameTypeAttributeDescription
elementNames *

The names/ids of elements

public setCloseUpEnabled(enabled: boolean) source

Enable/Disable moving camera to a close up view after elements selected.

Params:

NameTypeAttributeDescription
enabled boolean

True to enable

public setEnabled(enabled: *) source

Enable/Disable the selectElement tool

Override:

Tool#setEnabled

Params:

NameTypeAttributeDescription
enabled *

public setMultiselectEnabled(enabled: boolean) source

Enable/Disable multiSelect

Params:

NameTypeAttributeDescription
enabled boolean

public setRegionSelectEnabled(enabled: boolean) source

Enable/Disable region select. Region select will disable itself after picking.

Params:

NameTypeAttributeDescription
enabled boolean

public setSelectionRectangleColor(color: Array<number>) source

Change the color of selection rectangluar gizmo color and transparency.

Params:

NameTypeAttributeDescription
color Array<number>

Color to be set. The 3 numbers in the array indicates the rgb component range from 0-1.