PointCloudTree.js 835 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import * as THREE from "../libs/three.js/build/three.module.js";
  2. export class PointCloudTreeNode extends THREE.EventDispatcher{
  3. constructor(){
  4. super();
  5. this.needsTransformUpdate = true;
  6. }
  7. getChildren () {
  8. throw new Error('override function');
  9. }
  10. getBoundingBox () {
  11. throw new Error('override function');
  12. }
  13. isLoaded () {
  14. throw new Error('override function');
  15. }
  16. isGeometryNode () {
  17. throw new Error('override function');
  18. }
  19. isTreeNode () {
  20. throw new Error('override function');
  21. }
  22. getLevel () {
  23. throw new Error('override function');
  24. }
  25. getBoundingSphere () {
  26. throw new Error('override function');
  27. }
  28. };
  29. export class PointCloudTree extends THREE.Object3D {
  30. constructor () {
  31. super();
  32. //this.spriteGroup = new THREE.Object3D //add
  33. }
  34. initialized () {
  35. return this.root !== null;
  36. }
  37. };