Panda3D
Public Member Functions | Public Attributes | List of all members
ThreeUpShow Class Reference
Inheritance diagram for ThreeUpShow:
ShowBase DirectObject

Public Member Functions

def __init__ (self)
 
def makeCamera (self, win, sort=0, scene=None, displayRegion=(0, 1, 0, 1), stereo=None, aspectRatio=None, clearDepth=0, clearColor=None, lens=None, camName='cam', mask=None, useCamera=None)
 
- Public Member Functions inherited from ShowBase
def __init__ (self, fStartDirect=True, windowType=None)
 
def addAngularIntegrator (self)
 
def addSfxManager (self, extraSfxManager)
 
def adjustWindowAspectRatio (self, aspectRatio)
 
def attachInputDevice (self, device, prefix=None)
 
def backfaceCullingOff (self)
 
def backfaceCullingOn (self)
 
def changeMouseInterface (self, changeTo)
 
def closeWindow (self, win, keepCamera=False, removeWindow=True)
 
def createBaseAudioManagers (self)
 
def createStats (self, hostname=None, port=None)
 
def destroy (self)
 
def detachInputDevice (self, device)
 
def disableAllAudio (self)
 
def disableMouse (self)
 
def disableParticles (self)
 
def enableAllAudio (self)
 
def enableMouse (self)
 
def enableMusic (self, bEnableMusic)
 
def enableParticles (self)
 
def enableSoftwareMousePointer (self)
 
def enableSoundEffects (self, bEnableSoundEffects)
 
def finalizeExit (self)
 
def getAlt (self)
 
def getAspectRatio (self, win=None)
 
def getAxes (self)
 
def getBackgroundColor (self, win=None)
 
def getControl (self)
 
def getExitErrorCode (self)
 
def getMeta (self)
 
def getRepository (self)
 
def getShift (self)
 
def getSize (self, win=None)
 
def initShadowTrav (self)
 
def isParticleMgrEnabled (self)
 
def isPhysicsMgrEnabled (self)
 
def loadMusic (self, name)
 
def loadSfx (self, name)
 
def makeAllPipes (self)
 
def makeCamera2d (self, win, sort=10, displayRegion=(0, 1, 0, 1), coords=(-1, 1, -1, 1), lens=None, cameraName=None)
 
def makeCamera2dp (self, win, sort=20, displayRegion=(0, 1, 0, 1), coords=(-1, 1, -1, 1), lens=None, cameraName=None)
 
def makeDefaultPipe (self, printPipeTypes=None)
 
def makeModulePipe (self, moduleName)
 
def movie (self, namePrefix='movie', duration=1.0, fps=30, format='png', sd=4, source=None)
 
def oobe (self, cam=None)
 
def oobeCull (self, cam=None)
 
def openDefaultWindow (self, *args, **kw)
 
def openMainWindow (self, *args, **kw)
 
def openWindow (self, props=None, fbprops=None, pipe=None, gsg=None, host=None, type=None, name=None, size=None, aspectRatio=None, makeCamera=True, keepCamera=False, scene=None, stereo=None, unexposedDraw=None, callbackWindowDict=None, requireWindow=None)
 
def playMusic (self, music, looping=0, interrupt=1, volume=None, time=0.0)
 
def playSfx (self, sfx, looping=0, interrupt=1, volume=None, time=0.0, node=None, listener=None, cutoff=None)
 
def popCTrav (self)
 
def printEnvDebugInfo (self)
 
def pushCTrav (self, cTrav)
 
def removeCameraFrustum (self)
 
def restart (self, clusterSync=False, cluster=None)
 
def reviveInput (self)
 
def run (self)
 
def saveCubeMap (self, namePrefix='cube_map_#.png', defaultFilename=0, source=None, camera=None, size=128, cameraMask=PandaNode.getAllCameraMask(), sourceLens=None)
 
def saveSphereMap (self, namePrefix='spheremap.png', defaultFilename=0, source=None, camera=None, size=256, cameraMask=PandaNode.getAllCameraMask(), numVertices=1000, sourceLens=None)
 
def screenshot (self, namePrefix='screenshot', defaultFilename=1, source=None, imageComment="")
 
def SetAllSfxEnables (self, bEnabled)
 
def setAspectRatio (self, aspectRatio)
 
def setBackgroundColor (self, r=None, g=None, b=None, a=0.0, win=None)
 
def setFrameRateMeter (self, flag)
 
def setMouseOnNode (self, newNode)
 
def setSceneGraphAnalyzerMeter (self, flag)
 
def setSleep (self, amount)
 
def setupDataGraph (self)
 
def setupMouse (self, win, fMultiWin=False)
 
def setupMouseCB (self, win)
 
def setupRender (self)
 
def setupRender2d (self)
 
def setupRender2dp (self)
 
def setupWindowControls (self, winCtrl=None)
 
def showCameraFrustum (self)
 
def shutdown (self)
 
def silenceInput (self)
 
def spawnTkLoop (self)
 
def spawnWxLoop (self)
 
def startDirect (self, fWantDirect=1, fWantTk=1, fWantWx=0)
 
def startTk (self, fWantTk=True)
 
def startWx (self, fWantWx=True)
 
def textureOff (self)
 
def textureOn (self)
 
def tkRun (self)
 
def toggleBackface (self)
 
def toggleParticles (self)
 
def toggleShowVertices (self)
 
def toggleTexMem (self)
 
def toggleTexture (self)
 
def toggleWireframe (self)
 
def updateManagers (self, state)
 
def useDrive (self)
 
def userExit (self)
 
def useTrackball (self)
 
def windowEvent (self, win)
 
def wireframeOff (self)
 
def wireframeOn (self)
 
def wxRun (self)
 
- Public Member Functions inherited from DirectObject
def accept (self, event, method, extraArgs=[])
 
def acceptOnce (self, event, method, extraArgs=[])
 
def addTask (self, *args, **kwargs)
 
def detectLeaks (self)
 
def doMethodLater (self, *args, **kwargs)
 
def getAllAccepting (self)
 
def ignore (self, event)
 
def ignoreAll (self)
 
def isAccepting (self, event)
 
def isIgnoring (self, event)
 
def removeAllTasks (self)
 
def removeTask (self, taskOrName)
 

Public Attributes

 camLL
 
 camRS
 
 camUR
 
- Public Attributes inherited from ShowBase
 a2dBackground
 
 a2dBottom
 The Z position of the bottom border of the aspect2d screen. More...
 
 a2dBottomCenter
 
 a2dBottomCenterNs
 
 a2dBottomLeft
 
 a2dBottomLeftNs
 
 a2dBottomRight
 
 a2dBottomRightNs
 
 a2dLeft
 The X position of the left border of the aspect2d screen. More...
 
 a2dLeftCenter
 
 a2dLeftCenterNs
 
 a2dpBottom
 The Z position of the bottom border of the aspect2dp screen. More...
 
 a2dpBottomCenter
 
 a2dpBottomLeft
 
 a2dpBottomRight
 
 a2dpLeft
 The X position of the left border of the aspect2dp screen. More...
 
 a2dpLeftCenter
 
 a2dpRight
 The X position of the right border of the aspect2dp screen. More...
 
 a2dpRightCenter
 
 a2dpTop
 The Z position of the top border of the aspect2dp screen. More...
 
 a2dpTopCenter
 
 a2dpTopLeft
 
 a2dpTopRight
 
 a2dRight
 The X position of the right border of the aspect2d screen. More...
 
 a2dRightCenter
 
 a2dRightCenterNs
 
 a2dTop
 The Z position of the top border of the aspect2d screen. More...
 
 a2dTopCenter
 
 a2dTopCenterNs
 
 a2dTopLeft
 
 a2dTopLeftNs
 
 a2dTopRight
 
 a2dTopRightNs
 
 app_runner
 
 AppHasAudioFocus
 
 appRunner
 This contains the global appRunner instance, as imported from AppRunnerGlobal. More...
 
 appTrav
 
 aspect2d
 The normal 2-d DisplayRegion has an aspect ratio that matches the window, but its coordinate system is square. More...
 
 aspect2dp
 The normal 2-d DisplayRegion has an aspect ratio that matches the window, but its coordinate system is square. More...
 
 backfaceCullingEnabled
 
 bboard
 The global bulletin board, as imported from BulletinBoardGlobal. More...
 
 bufferViewer
 
 buttonThrowers
 
 cam
 This is a NodePath pointing to the Camera object set up for the 3D scene. More...
 
 cam2d
 
 cam2dp
 
 camera
 This is the NodePath that should be used to manipulate the camera. More...
 
 camera2d
 
 camera2dp
 
 camFrustumVis
 
 camLens
 Convenience accessor for base.camNode.get_lens() More...
 
 camList
 This is a list of all cameras created with makeCamera, including base.cam. More...
 
 camNode
 Convenience accessor for base.cam.node() More...
 
 clientSleep
 
 cluster
 
 clusterSyncFlag
 
 cTrav
 This is a placeholder for a CollisionTraverser. More...
 
 cTravStack
 
 dataRoot
 
 dataRootNode
 
 debugRunningMultiplier
 
 deviceButtonThrowers
 
 devices
 This is the global input device manager, which keeps track of connected input devices. More...
 
 dgTrav
 
 direct
 
 drive
 
 eventMgr
 The global event manager, as imported from EventManagerGlobal. More...
 
 exitFunc
 Fill this in with a function to invoke when the user "exits" the program by closing the main window. More...
 
 finalExitCallbacks
 Add final-exit callbacks to this list. More...
 
 frameRateMeter
 
 graphics_engine
 
 graphicsEngine
 The global graphics engine, ie. More...
 
 hidden
 
 jobMgr
 The global job manager, as imported from JobManagerGlobal. More...
 
 loader
 
 main_dir
 
 mainDir
 The directory containing the main Python file of this application. More...
 
 mainWinForeground
 
 mainWinMinimized
 
 messenger
 The global messenger, as imported from MessengerGlobal. More...
 
 mouse2cam
 
 mouseInterface
 
 mouseInterfaceNode
 
 mouseWatcher
 
 mouseWatcherNode
 
 multiClientSleep
 
 musicActive
 
 musicManager
 
 musicManagerIsValid
 
 nextWindowIndex
 
 onScreenDebug
 
 oobe2cam
 
 oobeCamera
 
 oobeCameraTrackball
 
 oobeCullFrustum
 
 oobeLens
 
 oobeMode
 
 oobeTrackball
 
 oobeVis
 
 particleMgr
 Particle manager. More...
 
 particleMgrEnabled
 
 physicsMgr
 Physics manager. More...
 
 physicsMgrAngular
 
 physicsMgrEnabled
 
 pipe
 
 pipeList
 
 pixel2d
 This special root, pixel2d, uses units in pixels that are relative to the window. More...
 
 pixel2dp
 This special root, pixel2d, uses units in pixels that are relative to the window. More...
 
 pointerWatcherNodes
 
 recorder
 
 render
 This is the root of the 3-D scene graph. More...
 
 render2d
 This is the root of the 2-D scene graph. More...
 
 render2dp
 
 requireWindow
 
 run
 
 sceneGraphAnalyzerMeter
 
 screenshotExtension
 
 sfxActive
 
 sfxManagerIsValidList
 
 sfxManagerList
 
 sfxPlayer
 
 shadowTrav
 
 showVertices
 
 task_mgr
 
 taskMgr
 The global task manager, as imported from TaskManagerGlobal. More...
 
 texmem
 
 textureEnabled
 
 timeButtonThrower
 A special ButtonThrower to generate keyboard events and include the time from the OS. More...
 
 tkDelay
 
 tkRoot
 
 tkRootCreated
 
 trackball
 
 transitions
 
 wantDirect
 
 wantFog
 
 wantRender2dp
 
 wantStats
 
 wantTk
 
 wantWx
 
 win
 This is the main, or only window; see winList for a list of all windows. More...
 
 winControls
 
 windowType
 This is set to the value of the window-type config variable, but may optionally be overridden in the Showbase constructor. More...
 
 winList
 
 wireframeEnabled
 
 wxApp
 This is used to store the wx.Application object used when want-wx is set or base.startWx() is called. More...
 
 wxAppCreated
 
 wxTimer
 

Additional Inherited Members

- Static Public Attributes inherited from ShowBase
def add_angular_integrator = addAngularIntegrator
 
def add_sfx_manager = addSfxManager
 
def attach_input_device = attachInputDevice
 
def backface_culling_off = backfaceCullingOff
 
def backface_culling_on = backfaceCullingOn
 
def change_mouse_interface = changeMouseInterface
 
def close_window = closeWindow
 
 config = DConfig
 
def create_stats = createStats
 
def detach_input_device = detachInputDevice
 
def disable_all_audio = disableAllAudio
 
def disable_mouse = disableMouse
 
def disable_particles = disableParticles
 
def enable_all_audio = enableAllAudio
 
def enable_mouse = enableMouse
 
def enable_music = enableMusic
 
def enable_particles = enableParticles
 
def enable_software_mouse_pointer = enableSoftwareMousePointer
 
def enable_sound_effects = enableSoundEffects
 
def get_aspect_ratio = getAspectRatio
 
def get_background_color = getBackgroundColor
 
def get_size = getSize
 
def init_shadow_trav = initShadowTrav
 
def make_all_pipes = makeAllPipes
 
def make_camera = makeCamera
 
def make_camera2d = makeCamera2d
 
def make_camera2dp = makeCamera2dp
 
def make_default_pipe = makeDefaultPipe
 
def make_module_pipe = makeModulePipe
 
 notify = directNotify.newCategory("ShowBase")
 
def oobe_cull = oobeCull
 
def open_default_window = openDefaultWindow
 
def open_main_window = openMainWindow
 
def open_window = openWindow
 
def remove_camera_frustum = removeCameraFrustum
 
def revive_input = reviveInput
 
def save_cube_map = saveCubeMap
 
def save_sphere_map = saveSphereMap
 
def set_aspect_ratio = setAspectRatio
 
def set_background_color = setBackgroundColor
 
def set_frame_rate_meter = setFrameRateMeter
 
def set_mouse_on_node = setMouseOnNode
 
def set_scene_graph_analyzer_meter = setSceneGraphAnalyzerMeter
 
def set_sleep = setSleep
 
def setup_data_graph = setupDataGraph
 
def setup_mouse = setupMouse
 
def setup_mouse_cb = setupMouseCB
 
def setup_render = setupRender
 
def setup_render2d = setupRender2d
 
def setup_render2dp = setupRender2dp
 
def setup_window_controls = setupWindowControls
 
def show_camera_frustum = showCameraFrustum
 
def silence_input = silenceInput
 
def start_direct = startDirect
 
def start_tk = startTk
 
def start_wx = startWx
 
def texture_off = textureOff
 
def texture_on = textureOn
 
def toggle_backface = toggleBackface
 
def toggle_particles = toggleParticles
 
def toggle_show_vertices = toggleShowVertices
 
def toggle_tex_mem = toggleTexMem
 
def toggle_texture = toggleTexture
 
def toggle_wireframe = toggleWireframe
 
def use_drive = useDrive
 
def use_trackball = useTrackball
 
def wireframe_off = wireframeOff
 
def wireframe_on = wireframeOn
 
- Static Public Attributes inherited from DirectObject
def accept_once = acceptOnce
 
def add_task = addTask
 
def detect_leaks = detectLeaks
 
def do_method_later = doMethodLater
 
def get_all_accepting = getAllAccepting
 
def ignore_all = ignoreAll
 
def is_accepting = isAccepting
 
def is_ignoring = isIgnoring
 
def remove_all_tasks = removeAllTasks
 
def remove_task = removeTask
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Reimplemented from DirectObject.

Member Function Documentation

◆ makeCamera()

def makeCamera (   self,
  win,
  sort = 0,
  scene = None,
  displayRegion = (0, 1, 0, 1),
  stereo = None,
  aspectRatio = None,
  clearDepth = 0,
  clearColor = None,
  lens = None,
  camName = 'cam',
  mask = None,
  useCamera = None 
)
Makes a new 3-d camera associated with the indicated window,
and creates a display region in the indicated subrectangle.

If stereo is True, then a stereo camera is created, with a
pair of DisplayRegions.  If stereo is False, then a standard
camera is created.  If stereo is None or omitted, a stereo
camera is created if the window says it can render in stereo.

If useCamera is not None, it is a NodePath to be used as the
camera to apply to the window, rather than creating a new
camera.

Reimplemented from ShowBase.

Member Data Documentation

◆ camLL

camLL

◆ camRS

camRS

◆ camUR

camUR