Browse Source

PandaObject to DirectObject

Dave Schuyler 20 years ago
parent
commit
c76f0eea10
47 changed files with 116 additions and 115 deletions
  1. 2 2
      direct/src/actor/Actor.py
  2. 1 1
      direct/src/cluster/ClusterConfig.py
  3. 2 2
      direct/src/directdevices/DirectFastrak.py
  4. 2 2
      direct/src/directdevices/DirectJoybox.py
  5. 2 2
      direct/src/directdevices/DirectRadamec.py
  6. 2 2
      direct/src/directtools/DirectCameraControl.py
  7. 1 1
      direct/src/directtools/DirectGeometry.py
  8. 2 2
      direct/src/directtools/DirectGrid.py
  9. 1 1
      direct/src/directtools/DirectLights.py
  10. 3 3
      direct/src/directtools/DirectManipulation.py
  11. 2 2
      direct/src/directtools/DirectSelection.py
  12. 4 4
      direct/src/directtools/DirectSession.py
  13. 1 1
      direct/src/directtools/DirectUtil.py
  14. 2 2
      direct/src/directutil/Mopath.py
  15. 2 2
      direct/src/distributed/DistributedObjectBase.py
  16. 1 1
      direct/src/distributed/DistributedObjectGlobal.py
  17. 18 18
      direct/src/extensions_native/extension_native_helpers.py
  18. 2 2
      direct/src/gui/DirectGuiBase.py
  19. 2 2
      direct/src/gui/OnscreenGeom.py
  20. 2 2
      direct/src/gui/OnscreenImage.py
  21. 2 2
      direct/src/gui/OnscreenText.py
  22. 17 17
      direct/src/interval/IntervalManager.py
  23. 3 3
      direct/src/leveleditor/LevelEditor.py
  24. 2 2
      direct/src/leveleditor/PieMenu.py
  25. 3 2
      direct/src/showbase/DirectObject.py
  26. 1 1
      direct/src/tkpanels/DirectSessionPanel.py
  27. 1 1
      direct/src/tkpanels/FSMInspector.py
  28. 2 2
      direct/src/tkpanels/MopathRecorder.py
  29. 1 1
      direct/src/tkpanels/Placer.py
  30. 1 1
      direct/src/tkpanels/TaskManagerPanel.py
  31. 2 2
      direct/src/tkwidgets/AppShell.py
  32. 1 1
      direct/src/tkwidgets/EntryScale.py
  33. 1 1
      direct/src/tkwidgets/Floater.py
  34. 2 2
      direct/src/tkwidgets/SceneGraphExplorer.py
  35. 1 1
      direct/src/tkwidgets/Tree.py
  36. 1 1
      direct/src/tkwidgets/Valuator.py
  37. 2 2
      doc/SceneEditor/seCameraControl.py
  38. 1 1
      doc/SceneEditor/seGeometry.py
  39. 2 2
      doc/SceneEditor/seGrid.py
  40. 1 1
      doc/SceneEditor/seLights.py
  41. 3 3
      doc/SceneEditor/seManipulation.py
  42. 2 2
      doc/SceneEditor/seMopathRecorder.py
  43. 1 1
      doc/SceneEditor/sePlacer.py
  44. 2 2
      doc/SceneEditor/seSceneGraphExplorer.py
  45. 2 2
      doc/SceneEditor/seSelection.py
  46. 4 4
      doc/SceneEditor/seSession.py
  47. 1 1
      doc/SceneEditor/seTree.py

+ 2 - 2
direct/src/actor/Actor.py

@@ -1,10 +1,10 @@
 """Actor module: contains the Actor class"""
 
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from pandac.PandaModules import LODNode
 import types
 
-class Actor(PandaObject, NodePath):
+class Actor(DirectObject, NodePath):
     """
     Actor class: Contains methods for creating, manipulating
     and playing animations on characters

+ 1 - 1
direct/src/cluster/ClusterConfig.py

@@ -1,4 +1,4 @@
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from ClusterClient import *
 import string
 

+ 2 - 2
direct/src/directdevices/DirectFastrak.py

@@ -1,6 +1,6 @@
 """ Class used to create and control radamec device """
 from math import *
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from DirectDeviceManager import *
 
 from direct.directnotify import DirectNotifyGlobal
@@ -16,7 +16,7 @@ FAST_X = 0
 FAST_Y = 1
 FAST_Z = 2
 
-class DirectFastrak(PandaObject):
+class DirectFastrak(DirectObject):
     fastrakCount = 0
     notify = DirectNotifyGlobal.directNotify.newCategory('DirectFastrak')
 

+ 2 - 2
direct/src/directdevices/DirectJoybox.py

@@ -1,5 +1,5 @@
 """ Class used to create and control joybox device """
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from DirectDeviceManager import *
 from direct.directtools.DirectUtil import *
 from direct.gui import OnscreenText
@@ -32,7 +32,7 @@ JOYBOX_MIN = ANALOG_MIN + ANALOG_DEADBAND
 JOYBOX_MAX = ANALOG_MAX - ANALOG_DEADBAND
 JOYBOX_RANGE = JOYBOX_MAX - JOYBOX_MIN
 
-class DirectJoybox(PandaObject):
+class DirectJoybox(DirectObject):
     joyboxCount = 0
     xyzMultiplier = 1.0
     hprMultiplier = 1.0

+ 2 - 2
direct/src/directdevices/DirectRadamec.py

@@ -1,6 +1,6 @@
 """ Class used to create and control radamec device """
 from math import *
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from DirectDeviceManager import *
 
 from direct.directnotify import DirectNotifyGlobal
@@ -17,7 +17,7 @@ RAD_TILT = 1
 RAD_ZOOM = 2
 RAD_FOCUS = 3
 
-class DirectRadamec(PandaObject):
+class DirectRadamec(DirectObject):
     radamecCount = 0
     notify = DirectNotifyGlobal.directNotify.newCategory('DirectRadamec')
     

+ 2 - 2
direct/src/directtools/DirectCameraControl.py

@@ -1,4 +1,4 @@
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from DirectUtil import *
 from DirectGeometry import *
 from DirectGlobals import *
@@ -9,7 +9,7 @@ CAM_MOVE_DURATION = 1.2
 COA_MARKER_SF = 0.0075
 Y_AXIS = Vec3(0,1,0)
 
-class DirectCameraControl(PandaObject):
+class DirectCameraControl(DirectObject):
     def __init__(self):
         # Create the grid
         self.startT = 0.0

+ 1 - 1
direct/src/directtools/DirectGeometry.py

@@ -1,5 +1,5 @@
 from pandac.PandaModules import *
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from DirectGlobals import *
 from DirectUtil import *
 import math

+ 2 - 2
direct/src/directtools/DirectGrid.py

@@ -1,8 +1,8 @@
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from DirectUtil import *
 from DirectGeometry import *
 
-class DirectGrid(NodePath,PandaObject):
+class DirectGrid(NodePath,DirectObject):
     def __init__(self):
         # Initialize superclass
         NodePath.__init__(self)

+ 1 - 1
direct/src/directtools/DirectLights.py

@@ -1,4 +1,4 @@
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from string import lower
 
 class DirectLight(NodePath):

+ 3 - 3
direct/src/directtools/DirectManipulation.py

@@ -1,10 +1,10 @@
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from DirectGlobals import *
 from DirectUtil import *
 from DirectGeometry import *
 from direct.task import Task
 
-class DirectManipulationControl(PandaObject):
+class DirectManipulationControl(DirectObject):
     def __init__(self):
         # Create the grid
         self.objectHandles = ObjectHandles()
@@ -537,7 +537,7 @@ class DirectManipulationControl(PandaObject):
             messenger.send('DIRECT_manipulateObjectCleanup',
                            [direct.selected.getSelectedAsList()])
 
-class ObjectHandles(NodePath,PandaObject):
+class ObjectHandles(NodePath,DirectObject):
     def __init__(self):
         # Initialize the superclass
         NodePath.__init__(self)

+ 2 - 2
direct/src/directtools/DirectSelection.py

@@ -1,4 +1,4 @@
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from DirectGlobals import *
 from DirectUtil import *
 from DirectGeometry import *
@@ -46,7 +46,7 @@ class DirectNodePath(NodePath):
     def getMax(self):
         return self.bbox.getMax()
 
-class SelectedNodePaths(PandaObject):
+class SelectedNodePaths(DirectObject):
     def __init__(self):
         self.reset()
         self.tagList = []

+ 4 - 4
direct/src/directtools/DirectSession.py

@@ -1,4 +1,4 @@
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from DirectGlobals import *
 from DirectUtil import*
 from DirectCameraControl import *
@@ -17,7 +17,7 @@ import types
 import string
 from direct.showbase import Loader
 
-class DirectSession(PandaObject):
+class DirectSession(DirectObject):
 
     # post this to the bboard to make sure DIRECT doesn't turn on
     DIRECTdisablePost = 'disableDIRECT'
@@ -801,7 +801,7 @@ class DirectSession(PandaObject):
         for iRay in self.iRayList:
             iRay.removeUnpickable(item)
 
-class DisplayRegionContext(PandaObject):
+class DisplayRegionContext(DirectObject):
     regionCount = 0
     def __init__(self, cam):
         self.cam = cam
@@ -926,7 +926,7 @@ class DisplayRegionContext(PandaObject):
                          self.near,
                          (self.nearHeight*0.5) * self.mouseY)
 
-class DisplayRegionList(PandaObject):
+class DisplayRegionList(DirectObject):
     def __init__(self):
         self.displayRegionList = []
         i = 0

+ 1 - 1
direct/src/directtools/DirectUtil.py

@@ -1,4 +1,4 @@
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from DirectGlobals import *
 
 # Routines to adjust values

+ 2 - 2
direct/src/directutil/Mopath.py

@@ -1,9 +1,9 @@
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.directtools.DirectGeometry import *
 
 from pandac.PandaModules import NodePath
 
-class Mopath(PandaObject):
+class Mopath(DirectObject):
 
     nameIndex = 1
 

+ 2 - 2
direct/src/distributed/DistributedObjectBase.py

@@ -1,8 +1,8 @@
 
-from direct.showbase.PandaObject import PandaObject
+from direct.showbase.DirectObject import DirectObject
 #from direct.directnotify.DirectNotifyGlobal import directNotify
 
-class DistributedObjectBase(PandaObject):
+class DistributedObjectBase(DirectObject):
     """
     The Distributed Object class is the base class for all network based
     (i.e. distributed) objects.  These will usually (always?) have a

+ 1 - 1
direct/src/distributed/DistributedObjectGlobal.py

@@ -1,6 +1,6 @@
 """DistributedObjectGlobal module: contains the DistributedObjectGlobal class"""
 
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.directnotify.DirectNotifyGlobal import directNotify
 from direct.distributed.DistributedObject import DistributedObject
 

+ 18 - 18
direct/src/extensions_native/extension_native_helpers.py

@@ -1,18 +1,18 @@
-###  Tools 
-from libpandaexpress import *
-
-
-def Dtool_ObjectToDict(clas,name,obj):
-    clas.DtoolClassDict[name] = obj;            
-
-def Dtool_funcToMethod(func,clas,method_name=None):
-    """Adds func to class so it is an accessible method; use method_name to specify the name to be used for calling the method.
-    The new method is accessible to any instance immediately."""
-    func.im_class=clas
-    func.im_func=func
-    func.im_self=None
-    if not method_name: 
-            method_name = func.__name__
-    clas.DtoolClassDict[method_name] = func;            
-
-
+###  Tools 
+from libpandaexpress import *
+
+
+def Dtool_ObjectToDict(clas,name,obj):
+    clas.DtoolClassDict[name] = obj;            
+
+def Dtool_funcToMethod(func,clas,method_name=None):
+    """Adds func to class so it is an accessible method; use method_name to specify the name to be used for calling the method.
+    The new method is accessible to any instance immediately."""
+    func.im_class=clas
+    func.im_func=func
+    func.im_self=None
+    if not method_name: 
+            method_name = func.__name__
+    clas.DtoolClassDict[method_name] = func;            
+
+

+ 2 - 2
direct/src/gui/DirectGuiBase.py

@@ -3,7 +3,7 @@ from OnscreenText import *
 from OnscreenGeom import *
 from OnscreenImage import *
 from direct.directtools.DirectUtil import ROUND_TO
-from direct.showbase import PandaObject
+from direct.showbase import DirectObject
 from direct.task import Task
 import string
 from direct.showbase import ShowBase
@@ -93,7 +93,7 @@ Code Overview:
     are left unused.  If so, an error is raised.
 """
 
-class DirectGuiBase(PandaObject.PandaObject):
+class DirectGuiBase(DirectObject.DirectObject):
     def __init__(self):
         # Default id of all gui object, subclasses should override this
         self.guiId = 'guiObject'

+ 2 - 2
direct/src/gui/OnscreenGeom.py

@@ -1,9 +1,9 @@
 """OnscreenGeom module: contains the OnscreenGeom class"""
 
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 import types
 
-class OnscreenGeom(PandaObject, NodePath):
+class OnscreenGeom(DirectObject, NodePath):
     def __init__(self, geom = None,
                  pos = None,
                  hpr = None,

+ 2 - 2
direct/src/gui/OnscreenImage.py

@@ -1,9 +1,9 @@
 """OnscreenImage module: contains the OnscreenImage class"""
 
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 import types
 
-class OnscreenImage(PandaObject, NodePath):
+class OnscreenImage(DirectObject, NodePath):
     def __init__(self, image = None,
                  pos = None,
                  hpr = None,

+ 2 - 2
direct/src/gui/OnscreenText.py

@@ -1,6 +1,6 @@
 """OnscreenText module: contains the OnscreenText class"""
 
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 import DirectGuiGlobals
 import types
 
@@ -14,7 +14,7 @@ ScreenPrompt = 3
 NameConfirm = 4
 BlackOnWhite = 5
 
-class OnscreenText(PandaObject, NodePath):
+class OnscreenText(DirectObject, NodePath):
 
     def __init__(self, text = '',
                  style = Plain,

+ 17 - 17
direct/src/interval/IntervalManager.py

@@ -33,23 +33,23 @@ class IntervalManager(CIntervalManager):
             self.ivals = []
             self.removedIvals = {}
     else:  ## the old interface
-        def __init__(self, globalPtr = 0):
-            # Pass globalPtr == 1 to the constructor to trick it into
-            # "constructing" a Python wrapper around the global
-            # CIntervalManager object.
-            if globalPtr:
-                #CIntervalManager.__init__(self, None)
-                cObj = CIntervalManager.getGlobalPtr()
-                self.this = cObj.this
-                self.userManagesMemory = 0
-            else:
-                CIntervalManager.__init__(self)
-            # Set up a custom event queue for handling C++ events from
-            # intervals.
-            self.eventQueue = EventQueue()
-            self.MyEventmanager = EventManager.EventManager(self.eventQueue)
-            self.setEventQueue(self.eventQueue)
-            self.ivals = []
+        def __init__(self, globalPtr = 0):
+            # Pass globalPtr == 1 to the constructor to trick it into
+            # "constructing" a Python wrapper around the global
+            # CIntervalManager object.
+            if globalPtr:
+                #CIntervalManager.__init__(self, None)
+                cObj = CIntervalManager.getGlobalPtr()
+                self.this = cObj.this
+                self.userManagesMemory = 0
+            else:
+                CIntervalManager.__init__(self)
+            # Set up a custom event queue for handling C++ events from
+            # intervals.
+            self.eventQueue = EventQueue()
+            self.MyEventmanager = EventManager.EventManager(self.eventQueue)
+            self.setEventQueue(self.eventQueue)
+            self.ivals = []
             self.removedIvals = {}     
     
                 

+ 3 - 3
direct/src/leveleditor/LevelEditor.py

@@ -1,5 +1,5 @@
 from direct.directbase.DirectStart import *
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from PieMenu import *
 from direct.gui.DirectGuiGlobals import *
 from direct.showbase.TkGlobal import *
@@ -412,7 +412,7 @@ def DNASetBaselineString(baseline, text):
         baseline.add(text)
 
 
-class LevelEditor(NodePath, PandaObject):
+class LevelEditor(NodePath, DirectObject):
     """Class used to create a Toontown LevelEditor object"""
 
     # Init the list of callbacks:
@@ -4927,7 +4927,7 @@ class DNAWallStyle:
             'Cornice Color: %s\n' % self.cornice_color
             )
 
-class OldLevelEditor(NodePath, PandaObject):
+class OldLevelEditor(NodePath, DirectObject):
     pass
 
 class LevelEditorPanel(Pmw.MegaToplevel):

+ 2 - 2
direct/src/leveleditor/PieMenu.py

@@ -1,8 +1,8 @@
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.directtools.DirectGeometry import *
 from direct.task import Task
 
-class PieMenu(NodePath, PandaObject):
+class PieMenu(NodePath, DirectObject):
     def __init__(self, visibleMenu, menuItems,
                  action = None, fUpdateOnlyOnChange = 1):
         NodePath.__init__(self)

+ 3 - 2
direct/src/showbase/DirectObject.py

@@ -1,7 +1,8 @@
 
-from MessengerGlobal import *
-from direct.directnotify.DirectNotifyGlobal import *
+from MessengerGlobal import messenger
+#from direct.directnotify.DirectNotifyGlobal import *
 from PythonUtil import *
+from pandac.PandaModules import *
 
 class DirectObject:
     """

+ 1 - 1
direct/src/tkpanels/DirectSessionPanel.py

@@ -1,7 +1,7 @@
 """ DIRECT Session Main panel """
 
 # Import Tkinter, Pmw, and the dial code
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.showbase.TkGlobal import *
 from direct.tkwidgets.AppShell import *
 

+ 1 - 1
direct/src/tkpanels/FSMInspector.py

@@ -1,5 +1,5 @@
 """ Finite State Machine Inspector module """
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.tkwidgets.AppShell import *
 from direct.showbase.TkGlobal import *
 from tkSimpleDialog import askstring

+ 2 - 2
direct/src/tkpanels/MopathRecorder.py

@@ -1,7 +1,7 @@
 """ Mopath Recorder Panel Module """
 
 # Import Tkinter, Pmw, and the dial code from this directory tree.
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.showbase.TkGlobal import *
 from direct.tkwidgets.AppShell import *
 from direct.directtools.DirectGlobals import *
@@ -25,7 +25,7 @@ PRF_UTILITIES = [
     'lambda s = self: s.playbackMarker.setZ(render, 0.0)',
     'lambda s = self: s.followTerrain(10.0)']
 
-class MopathRecorder(AppShell, PandaObject):
+class MopathRecorder(AppShell, DirectObject):
     # Override class variables here
     appname = 'Mopath Recorder Panel'
     frameWidth      = 450

+ 1 - 1
direct/src/tkpanels/Placer.py

@@ -1,7 +1,7 @@
 """ DIRECT Nine DoF Manipulation Panel """
 
 # Import Tkinter, Pmw, and the dial code from this directory tree.
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.showbase.TkGlobal import *
 from direct.tkwidgets.AppShell import *
 from direct.tkwidgets import Dial

+ 1 - 1
direct/src/tkpanels/TaskManagerPanel.py

@@ -34,7 +34,7 @@ class TaskManagerPanel(AppShell):
         self.ignore('TaskManager-setVerbose')
         self.taskMgrWidget.onDestroy()
 
-class TaskManagerWidget(PandaObject):
+class TaskManagerWidget(DirectObject):
     """
     TaskManagerWidget class: this class contains methods for creating
     a panel to control taskManager tasks.

+ 2 - 2
direct/src/tkwidgets/AppShell.py

@@ -4,7 +4,7 @@ This is an adaption of AppShell.py found in Python and Tkinter Programming
 by John E. Grayson which is a streamlined adaptation of GuiAppD.py, originally
 created by Doug Hellmann ([email protected]).
 """
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.showbase.TkGlobal import *
 from tkFileDialog import *
 import Dial
@@ -38,7 +38,7 @@ def resetVariableDict():
 
 # Inherit from MegaWidget instead of Toplevel so you can pass in a toplevel
 # to use as a container if you wish.  If no toplevel passed in, create one
-class AppShell(Pmw.MegaWidget, PandaObject):
+class AppShell(Pmw.MegaWidget, DirectObject):
     appversion      = '1.0'
     appname         = 'Generic Application Frame'
     copyright       = ('Copyright 2004 Walt Disney Imagineering.' +

+ 1 - 1
direct/src/tkwidgets/EntryScale.py

@@ -1,7 +1,7 @@
 """
 EntryScale Class: Scale with a label, and a linked and validated entry
 """
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.showbase.TkGlobal import *
 import string
 import tkColorChooser

+ 1 - 1
direct/src/tkwidgets/Floater.py

@@ -2,7 +2,7 @@
 Floater Class: Velocity style controller for floating point values with
                 a label, entry (validated), and scale
 """
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.showbase.TkGlobal import *
 from Valuator import *
 from direct.task import Task

+ 2 - 2
direct/src/tkwidgets/SceneGraphExplorer.py

@@ -1,4 +1,4 @@
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.showbase.TkGlobal import *
 from Tree import *
 
@@ -17,7 +17,7 @@ DEFAULT_MENU_ITEMS = [
     'Place', 'Set Name', 'Set Color', 'Explore',
     'Separator']
 
-class SceneGraphExplorer(Pmw.MegaWidget, PandaObject):
+class SceneGraphExplorer(Pmw.MegaWidget, DirectObject):
     "Graphical display of a scene graph"
     def __init__(self, parent = None, nodePath = render, **kw):
         # Define the megawidget options.

+ 1 - 1
direct/src/tkwidgets/Tree.py

@@ -19,7 +19,7 @@ import os
 import sys
 import string
 from direct.showbase.TkGlobal import *
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 
 # Initialize icon directory
 ICONDIR = getModelPath().findFile(Filename('icons')).toOsSpecific()

+ 1 - 1
direct/src/tkwidgets/Valuator.py

@@ -1,4 +1,4 @@
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.showbase.TkGlobal import *
 import tkColorChooser
 import WidgetPropertiesDialog

+ 2 - 2
doc/SceneEditor/seCameraControl.py

@@ -11,7 +11,7 @@
 # (If we do change original directools, it will force user has to install the latest version of OUR Panda)
 #
 #################################################################
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.directtools.DirectUtil import *
 from seGeometry import *
 from direct.directtools.DirectGlobals import *
@@ -21,7 +21,7 @@ CAM_MOVE_DURATION = 1.2
 COA_MARKER_SF = 0.0075
 Y_AXIS = Vec3(0,1,0)
 
-class DirectCameraControl(PandaObject):
+class DirectCameraControl(DirectObject):
     def __init__(self):
         # Create the grid
         self.startT = 0.0

+ 1 - 1
doc/SceneEditor/seGeometry.py

@@ -13,7 +13,7 @@
 #################################################################
 
 from pandac.PandaModules import *
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.directtools.DirectGlobals import *
 from direct.directtools.DirectUtil import *
 import math

+ 2 - 2
doc/SceneEditor/seGrid.py

@@ -11,11 +11,11 @@
 # (If we do change original directools, it will force user has to install the latest version of OUR Panda)
 #
 #################################################################
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.directtools.DirectUtil import *
 from seGeometry import *
 
-class DirectGrid(NodePath,PandaObject):
+class DirectGrid(NodePath,DirectObject):
     def __init__(self):
         # Initialize superclass
         NodePath.__init__(self)

+ 1 - 1
doc/SceneEditor/seLights.py

@@ -2,7 +2,7 @@
 # seLights.py
 # Written by Yi-Hong Lin, [email protected], 2004
 #################################################################
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from string import lower
 from direct.directtools import DirectUtil
 import string

+ 3 - 3
doc/SceneEditor/seManipulation.py

@@ -12,13 +12,13 @@
 #
 #################################################################
 
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.directtools.DirectGlobals import *
 from direct.directtools.DirectUtil import *
 from seGeometry import *
 from direct.task import Task
 
-class DirectManipulationControl(PandaObject):
+class DirectManipulationControl(DirectObject):
     def __init__(self):
         # Create the grid
         self.objectHandles = ObjectHandles()
@@ -506,7 +506,7 @@ class DirectManipulationControl(PandaObject):
             # Let everyone know that something was moved
             messenger.send('DIRECT_manipulateObjectCleanup')
 
-class ObjectHandles(NodePath,PandaObject):
+class ObjectHandles(NodePath,DirectObject):
     def __init__(self):
         # Initialize the superclass
         NodePath.__init__(self)

+ 2 - 2
doc/SceneEditor/seMopathRecorder.py

@@ -13,7 +13,7 @@
 #################################################################
 
 # Import Tkinter, Pmw, and the dial code from this directory tree.
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.showbase.TkGlobal import *
 from direct.tkwidgets.AppShell import *
 from direct.directtools.DirectGlobals import *
@@ -37,7 +37,7 @@ PRF_UTILITIES = [
     'lambda s = self: s.playbackMarker.setZ(render, 0.0)',
     'lambda s = self: s.followTerrain(10.0)']
 
-class MopathRecorder(AppShell, PandaObject):
+class MopathRecorder(AppShell, DirectObject):
     # Override class variables here
     appname = 'Mopath Recorder Panel'
     frameWidth      = 450

+ 1 - 1
doc/SceneEditor/sePlacer.py

@@ -1,7 +1,7 @@
 """ DIRECT Nine DoF Manipulation Panel """
 
 # Import Tkinter, Pmw, and the dial code from this directory tree.
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.directtools.DirectGlobals import *
 from direct.showbase.TkGlobal import *
 from direct.tkwidgets.AppShell import *

+ 2 - 2
doc/SceneEditor/seSceneGraphExplorer.py

@@ -8,7 +8,7 @@
 # Do forget to check the seTree. 
 #
 #################################################################
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.showbase.TkGlobal import *
 from seTree import *
 
@@ -37,7 +37,7 @@ DEFAULT_MENU_ITEMS = [
     'Align Tool',
     'Separator']
 
-class seSceneGraphExplorer(Pmw.MegaWidget, PandaObject):
+class seSceneGraphExplorer(Pmw.MegaWidget, DirectObject):
     "Graphical display of a scene graph"
     def __init__(self, parent = None, nodePath = render, **kw): 
         # Define the megawidget options.

+ 2 - 2
doc/SceneEditor/seSelection.py

@@ -11,7 +11,7 @@
 # (If we do change original directools, it will force user has to install the latest version of OUR Panda)
 #
 #################################################################
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.directtools.DirectGlobals import *
 from direct.directtools.DirectUtil import *
 from seGeometry import *
@@ -56,7 +56,7 @@ class DirectNodePath(NodePath):
     def getMax(self):
         return self.bbox.getMax()
 
-class SelectedNodePaths(PandaObject):
+class SelectedNodePaths(DirectObject):
     def __init__(self):
         self.reset()
 

+ 4 - 4
doc/SceneEditor/seSession.py

@@ -8,7 +8,7 @@
 # Also, the way of selecting, renaming and some hot-key controls are changed.
 #
 #################################################################
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 from direct.directtools.DirectGlobals import *
 from direct.directtools.DirectUtil import*
 from direct.interval.IntervalGlobal import *
@@ -24,7 +24,7 @@ import types
 import string
 from direct.showbase import Loader
 
-class SeSession(PandaObject):  ### Customized DirectSession
+class SeSession(DirectObject):  ### Customized DirectSession
 
     def __init__(self):
         # Establish a global pointer to the direct object early on
@@ -748,7 +748,7 @@ class SeSession(PandaObject):  ### Customized DirectSession
         return
     
 
-class DisplayRegionContext(PandaObject):
+class DisplayRegionContext(DirectObject):
     regionCount = 0
     def __init__(self, cam):
         self.cam = cam
@@ -873,7 +873,7 @@ class DisplayRegionContext(PandaObject):
                          self.near,
                          (self.nearHeight*0.5) * self.mouseY)
 
-class DisplayRegionList(PandaObject):
+class DisplayRegionList(DirectObject):
     def __init__(self):
         self.displayRegionList = []
         i = 0

+ 1 - 1
doc/SceneEditor/seTree.py

@@ -16,7 +16,7 @@ import os
 import sys
 import string
 from direct.showbase.TkGlobal import *
-from direct.showbase.PandaObject import *
+from direct.showbase.DirectObject import *
 
 # Initialize icon directory
 ICONDIR = getModelPath().findFile(Filename('icons')).toOsSpecific()