Cesium3DTilePassState.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import Check from "../Core/Check.js";
  2. /**
  3. * The state for a 3D Tiles update pass.
  4. *
  5. * @private
  6. * @constructor
  7. */
  8. function Cesium3DTilePassState(options) {
  9. //>>includeStart('debug', pragmas.debug);
  10. Check.typeOf.object("options", options);
  11. Check.typeOf.number("options.pass", options.pass);
  12. //>>includeEnd('debug');
  13. /**
  14. * The pass.
  15. *
  16. * @type {Cesium3DTilePass}
  17. */
  18. this.pass = options.pass;
  19. /**
  20. * An array of rendering commands to use instead of {@link FrameState.commandList} for the current pass.
  21. *
  22. * @type {DrawCommand[]}
  23. */
  24. this.commandList = options.commandList;
  25. /**
  26. * A camera to use instead of {@link FrameState.camera} for the current pass.
  27. *
  28. * @type {Camera}
  29. */
  30. this.camera = options.camera;
  31. /**
  32. * A culling volume to use instead of {@link FrameState.cullingVolume} for the current pass.
  33. *
  34. * @type {CullingVolume}
  35. */
  36. this.cullingVolume = options.cullingVolume;
  37. /**
  38. * A read-only property that indicates whether the pass is ready, i.e. all tiles needed by the pass are loaded.
  39. *
  40. * @type {Boolean}
  41. * @readonly
  42. * @default false
  43. */
  44. this.ready = false;
  45. }
  46. export default Cesium3DTilePassState;