NGL@0.10.4 Home Manual Reference Source GalleryRepository
import {ShapePicker} from 'ngl/src/utils/picker.js'
public interface | source

ShapePicker

Extends:

Picker → ShapePicker

Direct Subclass:

src/utils/picker.js~ArrowPicker, src/utils/picker.js~ConePicker, src/utils/picker.js~CylinderPicker, src/utils/picker.js~EllipsoidPicker, src/utils/picker.js~MeshPicker, src/utils/picker.js~SpherePicker

Shape picker class

Constructor Summary

Public Constructor
public

constructor(shape: Shape)

Inherited Summary

From class Picker
public

Get the index for the given picking id

public abstract

Get object data

public

getPosition(pid: Integer, instance: Object, component: Component): Vector3

Get position for the given picking id

Public Constructors

public constructor(shape: Shape) source

Override:

Picker#constructor

Params:

NameTypeAttributeDescription
shape Shape

shape object