Home Reference Source Repository
import Selection from 'awv3-next/plugin/selection.js'
public class | source

Selection

Constructor Summary

Public Constructor
public

constructor(integration: *, options: *)

Member Summary

Public Members
public

element: *

public
public

items: *

public
public

options: *

public
public
public
public

view: *

Method Summary

Public Methods
public

activate(element: *)

public

add(data: RayCast-Hit): *

Add material to the set of selected elements

public

deactivate(element: *, keep: boolean)

public

hover(data: *, selected: *)

public

isSelected(material: *): *

Check if material object is already selected

public

remove(data: RayCast-Hit)

Remove material from the set of selected elements

public

removeAll(keepLocals: Boolean)

Remove all items (Material) from the set of selected elements

public

restoreMaterial(material: *, time: *)

Restores the color and opacity of a material from the map.

public

select(data: *)

public

storeMaterial(material: *)

Stores color and opacity of a material into a map.

public

switch(current: *, data: *)

public

toggle(element: *, flag: *)

public

unhover(data: *, selected: *)

public

unselect(data: *)

Public Constructors

public constructor(integration: *, options: *) source

Params:

NameTypeAttributeDescription
integration *
options *

Public Members

public element: * source

public integration: * source

public items: * source

public materialMap: * source

public options: * source

public selectedSet: * source

public shiftHandler: * source

public tempHandler: * source

public view: * source

Public Methods

public activate(element: *) source

Params:

NameTypeAttributeDescription
element *
  • optional

public add(data: RayCast-Hit): * source

Add material to the set of selected elements

Params:

NameTypeAttributeDescription
data RayCast-Hit

Object generated by the raycaster inluding the hit object, material and meta-information

Return:

*

public deactivate(element: *, keep: boolean) source

Params:

NameTypeAttributeDescription
element *
  • optional
keep boolean
  • optional
  • default: false

public hover(data: *, selected: *) source

Params:

NameTypeAttributeDescription
data *
selected *

public isSelected(material: *): * source

Check if material object is already selected

Params:

NameTypeAttributeDescription
material *

Return:

*

TRUE if selected, FALSE otherwise

public remove(data: RayCast-Hit) source

Remove material from the set of selected elements

Params:

NameTypeAttributeDescription
data RayCast-Hit

Object generated by the raycaster inluding the hit object, material and meta-information

public removeAll(keepLocals: Boolean) source

Remove all items (Material) from the set of selected elements

Params:

NameTypeAttributeDescription
keepLocals Boolean

todo

public restoreMaterial(material: *, time: *) source

Restores the color and opacity of a material from the map.

Params:

NameTypeAttributeDescription
material *

THREE.material

time *

Animation duration in ms

public select(data: *) source

Params:

NameTypeAttributeDescription
data *

public storeMaterial(material: *) source

Stores color and opacity of a material into a map.

Params:

NameTypeAttributeDescription
material *

THREE.Material

public switch(current: *, data: *) source

Params:

NameTypeAttributeDescription
current *
data *

public toggle(element: *, flag: *) source

Params:

NameTypeAttributeDescription
element *
  • optional
flag *

public unhover(data: *, selected: *) source

Params:

NameTypeAttributeDescription
data *
selected *

public unselect(data: *) source

Params:

NameTypeAttributeDescription
data *