/** * Graphics API * @param id String * @param name * @param graphicsType * @param parentEntity * @constructor */ R3.D3.API.Graphics = function ( parentEntity ) { R3.Component.call( this, R3.Component.COMPONENT_GRAPHICS, null, null, parentEntity ); }; R3.D3.API.Graphics.prototype = Object.create(R3.Component.prototype); R3.D3.API.Graphics.prototype.constructor = R3.D3.API.Graphics; /** * Object to R3.D3.API.Graphics * @param objectComponent * @constructor */ R3.D3.API.Graphics.FromObjectComponent = function(objectComponent) { return new R3.D3.API.Graphics( objectComponent.id, objectComponent.name, objectComponent.graphicsType, objectComponent.parentEntity ); };