PointCloudTree.js 883 B

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