Cesium3DTilePassState.js 1.4 KB

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