NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import PickingProxy from 'ngl/src/controls/picking-proxy.js'
public class | source

PickingProxy

Picking proxy class.

Constructor Summary

Public Constructor
public

constructor(pickingData: PickingData, stage: Stage)

Create picking proxy object

Member Summary

Public Members
public get

If the alt key was pressed

public get
public get
public get
public get
public get
public get

Position of the mouse on the canvas

public get
public get

The atom of a picked bond that is closest to the mouse

public get

The component the picked data is part of

public get
public get
public
public get

If the ctrl key was pressed

public get
public get
public get
public
public get
public get

If the meta key was pressed

public
public get

The picked object data

public get
public
public

pid

public get

The 3d position in the scene of the picked object

public get

If the shift key was pressed

public get
public get
public
public get
public get
public get
public get

Kind of the picked data

public get
public get
public get

Method Summary

Public Methods
public
Private Methods
private

Public Constructors

public constructor(pickingData: PickingData, stage: Stage) source

Create picking proxy object

Params:

NameTypeAttributeDescription
pickingData PickingData

picking data

stage Stage

stage object

Public Members

public get altKey: Boolean source

If the alt key was pressed

public get arrow: Object source

public get atom: AtomProxy source

public get axes: Object source

public get bond: BondProxy source

public get box: Object source

public get canvasPosition: Vector2 source

Position of the mouse on the canvas

public get clash: Object source

public get closestBondAtom: AtomProxy source

The atom of a picked bond that is closest to the mouse

public get component: Component source

The component the picked data is part of

public get cone: Object source

public get contact: BondProxy source

public controls: ViewerControls source

public get ctrlKey: Boolean source

If the ctrl key was pressed

public get cylinder: Object source

public get distance: BondProxy source

public get ellipsoid: Object source

public instance: Object source

public get mesh: Object source

public get metaKey: Boolean source

If the meta key was pressed

public mouse: MouseObserver source

public get object: Object source

The picked object data

public get octahedron: Object source

public picker source

public pid source

public get position: Vector3 source

The 3d position in the scene of the picked object

public get shiftKey: Boolean source

If the shift key was pressed

public get slice: Object source

public get sphere: Object source

public stage: Stage source

public get surface: Object source

public get tetrahedron: Object source

public get torus: Object source

public get type: String source

Kind of the picked data

public get unitcell: Object source

public get unknown: Object source

public get volume: Object source

Public Methods

public getLabel() source

Private Methods

private _objectIfType() source