Selection
Constructor Summary
| Public Constructor | ||
| public |
constructor(integration: *, options: *) |
|
Member Summary
| Public Members | ||
| public |
element: * |
|
| public |
integration: * |
|
| public |
items: * |
|
| public |
materialMap: * |
|
| public |
options: * |
|
| public |
selectedSet: * |
|
| public |
shiftHandler: * |
|
| public |
tempHandler: * |
|
| 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 |
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:
| Name | Type | Attribute | Description |
| 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:
| Name | Type | Attribute | Description |
| element | * |
|
public add(data: RayCast-Hit): * source
Add material to the set of selected elements
Params:
| Name | Type | Attribute | Description |
| data | RayCast-Hit | Object generated by the raycaster inluding the hit object, material and meta-information |
Return:
| * |
public deactivate(element: *, keep: boolean) source
Params:
| Name | Type | Attribute | Description |
| element | * |
|
|
| keep | boolean |
|
public hover(data: *, selected: *) source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| selected | * |
public isSelected(material: *): * source
Check if material object is already selected
Params:
| Name | Type | Attribute | Description |
| material | * |
Return:
| * | TRUE if selected, FALSE otherwise |
public remove(data: RayCast-Hit) source
Remove material from the set of selected elements
Params:
| Name | Type | Attribute | Description |
| 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:
| Name | Type | Attribute | Description |
| keepLocals | Boolean | todo |
public restoreMaterial(material: *, time: *) source
Restores the color and opacity of a material from the map.
Params:
| Name | Type | Attribute | Description |
| material | * | THREE.material |
|
| time | * | Animation duration in ms |
public select(data: *) source
Params:
| Name | Type | Attribute | Description |
| data | * |
public storeMaterial(material: *) source
Stores color and opacity of a material into a map.
Params:
| Name | Type | Attribute | Description |
| material | * | THREE.Material |
public switch(current: *, data: *) source
Params:
| Name | Type | Attribute | Description |
| current | * | ||
| data | * |
public toggle(element: *, flag: *) source
Params:
| Name | Type | Attribute | Description |
| element | * |
|
|
| flag | * |
public unhover(data: *, selected: *) source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| selected | * |
public unselect(data: *) source
Params:
| Name | Type | Attribute | Description |
| data | * |