Tile.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { TileBase } from './TileBase';
  2. /**
  3. * Documented 3d-tile state managed by the TilesRenderer* / used/usable in priority / traverseFunctions!
  4. */
  5. export interface Tile extends TileBase {
  6. parent: Tile;
  7. /**
  8. * Hierarchy Depth from the TileGroup
  9. */
  10. __depth : number;
  11. /**
  12. * The screen space error for this tile
  13. */
  14. __error : number;
  15. /**
  16. * How far is this tiles bounds from the nearest active Camera.
  17. * Expected to be filled in during calculateError implementations.
  18. */
  19. __distanceFromCamera : number;
  20. /**
  21. * This tile is currently active if:
  22. * 1: Tile content is loaded and ready to be made visible if needed
  23. */
  24. __active : boolean;
  25. /**
  26. * This tile is currently visible if:
  27. * 1: Tile content is loaded
  28. * 2: Tile is within a camera frustum
  29. * 3: Tile meets the SSE requirements
  30. */
  31. __visible : boolean;
  32. /**
  33. * Whether or not the tile was visited during the last update run.
  34. */
  35. __used : boolean;
  36. /**
  37. * Whether or not the tile was within the frustum on the last update run.
  38. */
  39. __inFrustum : boolean;
  40. /**
  41. * TODO: Document this if it is useful enough to be the default property in the LRU sorting.
  42. */
  43. __depthFromRenderedParent : number;
  44. }