Class vxlPicker

Picking in voxelent is based on colors. The vxlPicker class keeps track of the colors in the scene that are used to identify objects and cells. The picker contains a map that allows recognizing an object given a color.

Constructor

vxlPicker()

Author: Diego Cantor.

Fields

<static> vxlPicker.RESOLUTION

Methods

.color2decimal(color)

Parameters:

Type Name Description
color

.getColorFor(obj)

Parameters:

Type Name Description
Object obj

an object that can be either a vxlCell or a vxlActor

.query(p_color)
Checks if the color passed as a parameter correspond to any UID (object,cell) assigned in the picker If so, it returns an object with the results If not, it returns null indicating the query was unsuccessful.

Parameters:

Type Name Description
Array p_color