DynamicGeometryUpdater.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*global define*/
  2. define([
  3. '../Core/DeveloperError'
  4. ], function(
  5. DeveloperError) {
  6. "use strict";
  7. /**
  8. * Defines the interface for a dynamic geometry updater. A DynamicGeometryUpdater
  9. * is responsible for handling visualization of a specific type of geometry
  10. * that needs to be recomputed based on simulation time.
  11. * This object is never used directly by client code, but is instead created by
  12. * {@link GeometryUpdater} implementations which contain dynamic geometry.
  13. *
  14. * This type defines an interface and cannot be instantiated directly.
  15. *
  16. * @alias DynamicGeometryUpdater
  17. * @constructor
  18. */
  19. var DynamicGeometryUpdater = function() {
  20. DeveloperError.throwInstantiationError();
  21. };
  22. /**
  23. * Updates the geometry to the specified time.
  24. * @memberof DynamicGeometryUpdater
  25. *
  26. * @param {JulianDate} time The current time.
  27. */
  28. DynamicGeometryUpdater.prototype.update = DeveloperError.throwInstantiationError;
  29. /**
  30. * Returns true if this object was destroyed; otherwise, false.
  31. * @memberof DynamicGeometryUpdater
  32. *
  33. * @returns {Boolean} True if this object was destroyed; otherwise, false.
  34. */
  35. DynamicGeometryUpdater.prototype.isDestroyed = DeveloperError.throwInstantiationError;
  36. /**
  37. * Destroys and resources used by the object. Once an object is destroyed, it should not be used.
  38. * @memberof DynamicGeometryUpdater
  39. *
  40. * @exception {DeveloperError} This object was destroyed, i.e., destroy() was called.
  41. */
  42. DynamicGeometryUpdater.prototype.destroy = DeveloperError.throwInstantiationError;
  43. return DynamicGeometryUpdater;
  44. });