CefInterface.js 944 B

123456789101112131415161718192021222324252627282930313233343536
  1. function setSurface(cubeWidth, cubeHeight, cubeDepth, surfaceFolder) {
  2. EventCenter.emit("SetSurface", {
  3. cubeWidth,
  4. cubeHeight,
  5. cubeDepth,
  6. surfaceFolder,
  7. });
  8. return true;
  9. }
  10. /// surfacesList 是六个数据
  11. function changeSurface(cubeWidth, cubeHeight, cubeDepth, ...surfacesList) {
  12. EventCenter.emit("ChangeSurface", {
  13. cubeWidth,
  14. cubeHeight,
  15. cubeDepth,
  16. surfacesList: surfacesList,
  17. });
  18. return true;
  19. }
  20. // 传入 sourceenum == "Carotid" && docarotidaiclip=="True";
  21. function mdlFileLoaded(sourceenum, docarotidaiclip) {
  22. SpriteManager.mdlFileLoaded(sourceenum, docarotidaiclip);
  23. }
  24. function adjustedImage(surfaceFolder, meshObjectImage) {
  25. EventCenter.emit("ResetCubeImage", surfaceFolder);
  26. ClipPlaneManager.refreshClipPlanesMesh(meshObjectImage);
  27. }
  28. function getCurrentClipInformation() {
  29. return ClipPlaneManager.getSelectedClipInfo();
  30. }
  31. function release() {
  32. EventCenter.emit("RemoveCube");
  33. }