/** * Selected Objects * @param graphics R3.D3.Graphics * @param object * @param helper * @param lastUpdate * @constructor */ R3.D3.SelectedObject = function SelectedObject( graphics, object, helper, lastUpdate ) { this.graphics = graphics; this.graphics.isNotThreeThrow(); if (R3.Utils.UndefinedOrNull(object)) { console.warn('Cannot select no object'); throw new Error('Cannot select no object'); } this.object = object; if (R3.Utils.UndefinedOrNull(helper)) { helper = new R3.D3.Helper( this.graphics, null, null, object ) } this.helper = helper; if (R3.Utils.UndefinedOrNull(lastUpdate)) { lastUpdate = Date.now(); } this.lastUpdate = lastUpdate; };