Skip to content

Commit

Permalink
Merge pull request #1110 from AnalyticalGraphicsInc/expose-processPac…
Browse files Browse the repository at this point in the history
…ketData

Expose CZML helper functions.
  • Loading branch information
emackey committed Sep 3, 2013
2 parents 6c86ae0 + 6192b76 commit 9e62b8d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions Source/DynamicScene/CzmlDataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,49 @@ define([
});
};

/**
* A helper function used by custom CZML updater functions
* which creates or updates a {@link Property} from a CZML packet.
* @function
*
* @param {Function} type The constructor function for the property being processed.
* @param {Object} object The object on which the property will be added or updated.
* @param {String} propertyName The name of the property on the object.
* @param {Object} packetData The CZML packet being processed.y
* @param {TimeInterval} [interval] A constraining interval for which the data is valid.
* @param {String} [sourceUri] The originating uri of the data being processed.
* @returns {Boolean} True if a new property was created, false otherwise.
*/
CzmlDataSource.processPacketData = processPacketData;

/**
* A helper function used by custom CZML updater functions
* which creates or updates a {@link PositionProperty} from a CZML packet.
* @function
*
* @param {Object} object The object on which the property will be added or updated.
* @param {String} propertyName The name of the property on the object.
* @param {Object} packetData The CZML packet being processed.y
* @param {TimeInterval} [interval] A constraining interval for which the data is valid.
* @param {String} [sourceUri] The originating uri of the data being processed.
* @returns {Boolean} True if a new property was created, false otherwise.
*/
CzmlDataSource.processPositionPacketData = processPositionPacketData;

/**
* A helper function used by custom CZML updater functions
* which creates or updates a {@link MaterialProperty} from a CZML packet.
* @function
*
* @param {Object} object The object on which the property will be added or updated.
* @param {String} propertyName The name of the property on the object.
* @param {Object} packetData The CZML packet being processed.y
* @param {TimeInterval} [interval] A constraining interval for which the data is valid.
* @param {String} [sourceUri] The originating uri of the data being processed.
* @returns {Boolean} True if a new property was created, false otherwise.
*/
CzmlDataSource.processMaterialPacketData = processMaterialPacketData;

CzmlDataSource._processCzml = function(czml, dynamicObjectCollection, sourceUri, updaterFunctions) {
var updatedObjects = [];
var updatedObjectsHash = {};
Expand Down

0 comments on commit 9e62b8d

Please sign in to comment.