123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- define([
- '../Core/defaultValue',
- '../Core/defined',
- '../Core/defineProperties',
- '../Core/DeveloperError',
- '../Core/Event',
- './createPropertyDescriptor'
- ], function(
- defaultValue,
- defined,
- defineProperties,
- DeveloperError,
- Event,
- createPropertyDescriptor) {
- "use strict";
-
- var ModelGraphics = function() {
- this._show = undefined;
- this._showSubscription = undefined;
- this._scale = undefined;
- this._scaleSubscription = undefined;
- this._minimumPixelSize = undefined;
- this._minimumPixelSizeSubscription = undefined;
- this._uri = undefined;
- this._uriSubscription = undefined;
- this._definitionChanged = new Event();
- };
- defineProperties(ModelGraphics.prototype, {
-
- definitionChanged : {
- get : function() {
- return this._definitionChanged;
- }
- },
-
- show : createPropertyDescriptor('show'),
-
- scale : createPropertyDescriptor('scale'),
-
- minimumPixelSize : createPropertyDescriptor('minimumPixelSize'),
-
- uri : createPropertyDescriptor('uri')
- });
-
- ModelGraphics.prototype.clone = function(result) {
- if (!defined(result)) {
- result = new ModelGraphics();
- }
- result.show = this.show;
- result.scale = this.scale;
- result.minimumPixelSize = this.minimumPixelSize;
- result.uri = this.uri;
- return result;
- };
-
- ModelGraphics.prototype.merge = function(source) {
-
- if (!defined(source)) {
- throw new DeveloperError('source is required.');
- }
-
- this.show = defaultValue(this.show, source.show);
- this.scale = defaultValue(this.scale, source.scale);
- this.minimumPixelSize = defaultValue(this.minimumPixelSize, source.minimumPixelSize);
- this.uri = defaultValue(this.uri, source.uri);
- };
- return ModelGraphics;
- });
|