重构引用库名称

This commit is contained in:
Hector 2025-10-27 14:45:42 +08:00
parent 84d3a2295c
commit 30459c81cb
14 changed files with 27 additions and 27 deletions

View File

@ -39,16 +39,16 @@ from direct.showbase.ShowBase import ShowBase
import platform
# Local imports
from QPanda3D.QMouseWatcherNode import QMouseWatcherNode
from QMeta3D.QMouseWatcherNode import QMouseWatcherNode
from RenderPipelineFile.rpcore.render_target import RenderTarget
__all__ = ["Panda3DWorld"]
__all__ = ["Meta3DWorld"]
_global_world_instance=None
import builtins
class Panda3DWorld(ShowBase):
class Meta3DWorld(ShowBase):
"""
Panda3DWorld : A class to handle all panda3D world manipulation
"""

View File

@ -18,9 +18,9 @@ from direct.task.TaskManagerGlobal import taskMgr
from panda3d.core import Texture, WindowProperties, CallbackGraphicsWindow
from panda3d.core import loadPrcFileData
from QPanda3D.QPanda3D_Buttons_Translation import QPanda3D_Button_translation
from QPanda3D.QPanda3D_Keys_Translation import QPanda3D_Key_translation
from QPanda3D.QPanda3D_Modifiers_Translation import QPanda3D_Modifier_translation
from QMeta3D.QMeta3D_Buttons_Translation import QMeta3D_Button_translation
from QMeta3D.QMeta3D_Keys_Translation import QMeta3D_Key_translation
from QMeta3D.QMeta3D_Modifiers_Translation import QMeta3D_Modifier_translation
__all__ = ["QPanda3DWidget"]

View File

@ -13,7 +13,7 @@ from PyQt5.QtWidgets import *
import sys
__all__ = ["QMeta3D_Keys_Translation.py"]
QPanda3D_Button_translation ={
QMeta3D_Button_translation ={
Qt.NoButton:'',
Qt.AllButtons:'unknown',
Qt.LeftButton:'mouse1',

View File

@ -13,7 +13,7 @@ from PyQt5.QtWidgets import *
import sys
__all__ = ["QMeta3D_Keys_Translation.py"]
QPanda3D_Key_translation ={
QMeta3D_Key_translation ={
Qt.Key_0:'0',
Qt.Key_1:'1',
Qt.Key_2:'2',

View File

@ -13,7 +13,7 @@ from PyQt5.QtWidgets import *
import sys
__all__ = ["QMeta3D_Modifiers_Translation.py"]
QPanda3D_Modifier_translation ={
QMeta3D_Modifier_translation ={
Qt.NoModifier:None,
Qt.ShiftModifier:'shift',
Qt.ControlModifier:'control',

View File

@ -6,13 +6,13 @@ from direct.actor.Actor import Actor
warnings.filterwarnings("ignore", category=DeprecationWarning)
from QMeta3D.Meta3DWorld import Panda3DWorld
from QMeta3D.Meta3DWorld import Meta3DWorld
from panda3d.core import (CardMaker, Vec4, Vec3, AmbientLight, DirectionalLight,
Point3, WindowProperties,Material,LColor)
from direct.showbase.ShowBaseGlobal import globalClock
from scene.scene_manager import SceneManager
class CoreWorld(Panda3DWorld):
class CoreWorld(Meta3DWorld):
"""核心世界功能类 - 负责基础的3D世界设置和核心功能"""
def __init__(self):

View File

@ -12,11 +12,11 @@ import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget, QLabel, QPushButton, QHBoxLayout
from PyQt5.QtCore import Qt
from QMeta3D.QMeta3DWidget import QPanda3DWidget
from QMeta3D.Meta3DWorld import Panda3DWorld
from QMeta3D.Meta3DWorld import Meta3DWorld
from panda3d.core import *
from direct.task import Task
class GizmoDragTestWorld(Panda3DWorld):
class GizmoDragTestWorld(Meta3DWorld):
def __init__(self):
super().__init__()

View File

@ -17,14 +17,14 @@ from PyQt5.QtWidgets import (QApplication, QMainWindow, QMenuBar, QMenu, QAction
from PyQt5.QtCore import Qt, QDir, QUrl
from PyQt5.QtGui import QDrag, QPainter, QPixmap
from QMeta3D.QMeta3DWidget import QPanda3DWidget
from QMeta3D.Meta3DWorld import Panda3DWorld
from QMeta3D.Meta3DWorld import Meta3DWorld
from direct.gui.DirectGui import *
from direct.gui.OnscreenText import OnscreenText
from panda3d.core import *
import os
# 简化的世界类专门用于GUI测试
class GUITestWorld(Panda3DWorld):
class GUITestWorld(Meta3DWorld):
def __init__(self):
super().__init__()

View File

@ -13,13 +13,13 @@ import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget, QLabel
from PyQt5.QtCore import Qt
from QMeta3D.QMeta3DWidget import QPanda3DWidget
from QMeta3D.Meta3DWorld import Panda3DWorld
from QMeta3D.Meta3DWorld import Meta3DWorld
from direct.gui.DirectGui import *
from direct.gui.OnscreenText import OnscreenText
from panda3d.core import *
import os
class DebugGUIWorld(Panda3DWorld):
class DebugGUIWorld(Meta3DWorld):
def __init__(self):
super().__init__()

View File

@ -13,13 +13,13 @@ import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.QtCore import Qt
from QMeta3D.QMeta3DWidget import QPanda3DWidget
from QMeta3D.Meta3DWorld import Panda3DWorld
from QMeta3D.Meta3DWorld import Meta3DWorld
from direct.gui.DirectGui import *
from direct.gui.OnscreenText import OnscreenText
from panda3d.core import *
import os
class QtGUITestWorld(Panda3DWorld):
class QtGUITestWorld(Meta3DWorld):
def __init__(self):
super().__init__()

View File

@ -14,12 +14,12 @@ from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget, QLa
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QMouseEvent
from QMeta3D.QMeta3DWidget import QPanda3DWidget
from QMeta3D.Meta3DWorld import Panda3DWorld
from QMeta3D.Meta3DWorld import Meta3DWorld
from direct.gui.DirectGui import *
from direct.gui.OnscreenText import OnscreenText
from panda3d.core import *
class QtGUIFixWorld(Panda3DWorld):
class QtGUIFixWorld(Meta3DWorld):
def __init__(self):
super().__init__()

View File

@ -12,12 +12,12 @@ import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget, QLabel
from PyQt5.QtCore import Qt
from QMeta3D.QMeta3DWidget import QPanda3DWidget
from QMeta3D.Meta3DWorld import Panda3DWorld
from QMeta3D.Meta3DWorld import Meta3DWorld
from direct.gui.DirectGui import *
from direct.gui.OnscreenText import OnscreenText
from panda3d.core import *
class QtOnlyWorld(Panda3DWorld):
class QtOnlyWorld(Meta3DWorld):
def __init__(self):
super().__init__()

View File

@ -13,13 +13,13 @@ import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget, QLabel, QPushButton
from PyQt5.QtCore import Qt
from QMeta3D.QMeta3DWidget import QPanda3DWidget
from QMeta3D.Meta3DWorld import Panda3DWorld
from QMeta3D.Meta3DWorld import Meta3DWorld
from direct.showbase.ShowBase import ShowBase
from direct.gui.DirectGui import *
from direct.gui.OnscreenText import OnscreenText
from panda3d.core import *
class QtTestWorld(Panda3DWorld):
class QtTestWorld(Meta3DWorld):
"""Qt集成环境测试"""
def __init__(self):
super().__init__()

View File

@ -12,11 +12,11 @@ import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget, QLabel
from PyQt5.QtCore import Qt
from QMeta3D.QMeta3DWidget import QPanda3DWidget
from QMeta3D.Meta3DWorld import Panda3DWorld
from QMeta3D.Meta3DWorld import Meta3DWorld
from panda3d.core import *
from direct.task import Task
class SizeTestWorld(Panda3DWorld):
class SizeTestWorld(Meta3DWorld):
def __init__(self):
super().__init__()