Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
DirectSessionPanel Class Reference
Inheritance diagram for DirectSessionPanel:
AppShell DirectObject

Public Member Functions

def __init__ (self, parent=None, **kw)
 
def addAmbient (self)
 
def addDirectional (self)
 
def addJBNodePath (self, nodePath)
 
def addLight (self, light)
 
def addNodePath (self, nodePath)
 
def addNodePathToDict (self, nodePath, names, menu, dict)
 
def addPoint (self)
 
def addSpot (self)
 
def appInit (self)
 USER METHODS ### To be overridden. More...
 
def createDevicePage (self, devicePage)
 
def createEnvPage (self, envPage)
 
def createGridPage (self, gridPage)
 
def createInterface (self)
 
def createLightsPage (self, lightsPage)
 
def createMemPage (self, memPage)
 
def createTasksPage (self, tasksPage)
 
def onDestroy (self, event)
 
def pushRedo (self)
 
def pushRedoHook (self)
 
def pushUndo (self, fResetRedo=1)
 
def pushUndoHook (self)
 
def redoHook (self, nodePathList=[])
 
def redoListEmptyHook (self)
 
def resetFov (self)
 
def selectDisplayRegionNamed (self, name)
 
def selectedNodePathHook (self, nodePath)
 
def selectJBModeNamed (self, name)
 
def selectJBNodePathNamed (self, name)
 
def selectLightNamed (self, name)
 
def selectNodePathNamed (self, name)
 
def setBackgroundColor (self, r, g, b)
 ENVIRONMENT CONTROLS ## Background #. More...
 
def setBackgroundColorVec (self, color)
 
def setConstantAttenuation (self, value)
 
def setExponent (self, value)
 
def setFar (self, far)
 
def setHFov (self, hFov)
 
def setLightColor (self, color)
 
def setLinearAttenuation (self, value)
 
def setNear (self, near)
 
def setQuadraticAttenuation (self, value)
 
def setSpecularColor (self, color)
 
def setVFov (self, vFov)
 
def toggleActiveLight (self)
 
def toggleDirect (self)
 
def toggleDirectGrid (self)
 
def toggleGrid (self)
 GRID CONTROLS ##. More...
 
def toggleHprSnap (self)
 
def toggleJoybox (self)
 DEVICE CONTROLS. More...
 
def toggleLights (self)
 
def toggleWidgetOnTop (self)
 
def toggleXyzSnap (self)
 
def undoHook (self, nodePathList=[])
 
def undoListEmptyHook (self)
 
def updateDisplayRegionInfo (self)
 
def updateEnvironmentInfo (self)
 
def updateGridInfo (self)
 
def updateInfo (self, page='Environment')
 UPDATE INFO ##. More...
 
def updateLightInfo (self, page=None)
 
- Public Member Functions inherited from AppShell
def addVariable (self, category, text, variable)
 
def addWidget (self, category, text, widget)
 WIDGET UTILITY FUNCTIONS ##. More...
 
def alignbuttons (self)
 
def balloon (self)
 
def bind (self, child, balloonHelpMsg, statusHelpMsg=None)
 
def buttonAdd (self, buttonName, helpMessage=None, statusMessage=None, **kw)
 
def buttonBox (self)
 
def createMenuBar (self)
 
def createWidget (self, parent, category, text, widgetClass, help, command, side, fill, expand, kw)
 
def getVariable (self, category, text)
 
def getWidget (self, category, text)
 
def interior (self)
 
def messageBar (self)
 
def newCreateButton (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
def newCreateCheckbutton (self, parent, category, text, help='', command=None, initialState=0, anchor=W, side=LEFT, fill=X, expand=0, **kw)
 
def newCreateColorEntry (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
def newCreateComboBox (self, parent, category, text, help='', command=None, items=[], state=DISABLED, history=0, labelpos=W, label_anchor=W, label_width=16, entry_width=16, side=LEFT, fill=X, expand=0, **kw)
 
def newCreateDial (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
def newCreateEntryScale (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
def newCreateFloater (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
def newCreateLabeledEntry (self, parent, category, text, help='', command=None, value='', width=12, relief=SUNKEN, side=LEFT, fill=X, expand=0)
 
def newCreateOptionMenu (self, parent, category, text, help='', command=None, items=[], labelpos=W, label_anchor=W, label_width=16, menu_tearoff=1, side=LEFT, fill=X, expand=0, **kw)
 
def newCreateRadiobutton (self, parent, category, text, variable, value, command=None, help='', anchor=W, side=LEFT, fill=X, expand=0, **kw)
 
def newCreateSider (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
def newCreateVector2Entry (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
def newCreateVector3Entry (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
def quit (self)
 
def showAbout (self)
 
def toggleBalloon (self)
 
def transformRGB (self, rgb, max=1.0)
 
def updateProgress (self, newValue=0, newMax=0)
 
- Public Member Functions inherited from DirectObject
def __init__ (self)
 
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

 actionEvents
 
 activeDisplayRegion
 
 activeLight
 
 backgroundColor
 
 directEnabled
 
 directGridEnabled
 
 directWidgetOnTop
 
 drMenu
 
 dSpecularColor
 
 enableGrid
 
 enableGridButton
 
 enableJoybox
 
 enableJoyboxButton
 
 enableLights
 
 enableLightsButton
 
 farPlane
 
 gridSize
 
 gridSnapAngle
 
 gridSpacing
 
 hFov
 
 hprSnap
 
 hprSnapButton
 
 jbHprSF
 
 jbModeMenu
 
 jbNodePathDict
 
 jbNodePathMenu
 
 jbNodePathMenuBG
 
 jbNodePathMenuEntry
 
 jbNodePathNames
 
 jbXyzSF
 
 lightActive
 
 lightActiveButton
 
 lightColor
 
 lightMenu
 
 lightNotebook
 
 lightsButton
 
 lockedFov
 
 lockedFovButton
 
 MemExp
 
 nearPlane
 
 nodePathDict
 
 nodePathMenu
 
 nodePathMenuBG
 
 nodePathMenuEntry
 
 nodePathNames
 
 pConstantAttenuation
 
 pLinearAttenuation
 
 pQuadraticAttenuation
 
 pSpecularColor
 
 redoButton
 
 resetFovButton
 
 sConstantAttenuation
 
 sExponent
 
 SGE
 
 sLinearAttenuation
 
 sQuadraticAttenuation
 
 sSpecularColor
 
 taskMgrPanel
 
 toggleBackfaceButton
 Render Style ##. More...
 
 toggleLightsButton
 
 toggleTextureButton
 
 toggleWireframeButton
 
 undoButton
 
 vFov
 
 xyzSnap
 
 xyzSnapButton
 
- Public Attributes inherited from AppShell
 about
 
 balloonState
 
 dataArea
 
 id
 
 menuBar
 
 menuFrame
 
 parent
 
 toggleBalloonVar
 
 variableDict
 
 widgetDict
 

Static Public Attributes

string appname = 'Direct Session Panel'
 
int frameHeight = 365
 
int frameWidth = 600
 
int usecommandarea = 0
 
int usestatusarea = 0
 
- Static Public Attributes inherited from AppShell
string appname = 'Generic Application Frame'
 
string appversion = '1.0'
 
string balloonState = 'none'
 
string contactemail = 'Mark.Mine@disney.com'
 
string contactname = 'Mark R. Mine'
 
string contactphone = '(818) 544-2921'
 
tuple copyright
 
int frameHeight = 320
 
int frameWidth = 450
 
int padx = 5
 
int pady = 5
 
int panelCount = 0
 
int usecommandarea = 0
 
int usestatusarea = 0
 
- 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,
  parent = None,
**  kw 
)

Reimplemented from AppShell.

Member Function Documentation

◆ addAmbient()

def addAmbient (   self)

◆ addDirectional()

def addDirectional (   self)

◆ addJBNodePath()

def addJBNodePath (   self,
  nodePath 
)

◆ addLight()

def addLight (   self,
  light 
)

◆ addNodePath()

def addNodePath (   self,
  nodePath 
)

◆ addNodePathToDict()

def addNodePathToDict (   self,
  nodePath,
  names,
  menu,
  dict 
)

◆ addPoint()

def addPoint (   self)

◆ addSpot()

def addSpot (   self)

◆ appInit()

def appInit (   self)

USER METHODS ### To be overridden.

Reimplemented from AppShell.

◆ createDevicePage()

def createDevicePage (   self,
  devicePage 
)

◆ createEnvPage()

def createEnvPage (   self,
  envPage 
)

◆ createGridPage()

def createGridPage (   self,
  gridPage 
)

◆ createInterface()

def createInterface (   self)

Reimplemented from AppShell.

◆ createLightsPage()

def createLightsPage (   self,
  lightsPage 
)

◆ createMemPage()

def createMemPage (   self,
  memPage 
)

◆ createTasksPage()

def createTasksPage (   self,
  tasksPage 
)

◆ onDestroy()

def onDestroy (   self,
  event 
)

Reimplemented from AppShell.

◆ pushRedo()

def pushRedo (   self)

◆ pushRedoHook()

def pushRedoHook (   self)

◆ pushUndo()

def pushUndo (   self,
  fResetRedo = 1 
)

◆ pushUndoHook()

def pushUndoHook (   self)

◆ redoHook()

def redoHook (   self,
  nodePathList = [] 
)

◆ redoListEmptyHook()

def redoListEmptyHook (   self)

◆ resetFov()

def resetFov (   self)

◆ selectDisplayRegionNamed()

def selectDisplayRegionNamed (   self,
  name 
)

◆ selectedNodePathHook()

def selectedNodePathHook (   self,
  nodePath 
)

◆ selectJBModeNamed()

def selectJBModeNamed (   self,
  name 
)

◆ selectJBNodePathNamed()

def selectJBNodePathNamed (   self,
  name 
)

◆ selectLightNamed()

def selectLightNamed (   self,
  name 
)

◆ selectNodePathNamed()

def selectNodePathNamed (   self,
  name 
)

◆ setBackgroundColor()

def setBackgroundColor (   self,
  r,
  g,
  b 
)

ENVIRONMENT CONTROLS ## Background #.

◆ setBackgroundColorVec()

def setBackgroundColorVec (   self,
  color 
)

◆ setConstantAttenuation()

def setConstantAttenuation (   self,
  value 
)

◆ setExponent()

def setExponent (   self,
  value 
)

◆ setFar()

def setFar (   self,
  far 
)

◆ setHFov()

def setHFov (   self,
  hFov 
)

◆ setLightColor()

def setLightColor (   self,
  color 
)

◆ setLinearAttenuation()

def setLinearAttenuation (   self,
  value 
)

◆ setNear()

def setNear (   self,
  near 
)

◆ setQuadraticAttenuation()

def setQuadraticAttenuation (   self,
  value 
)

◆ setSpecularColor()

def setSpecularColor (   self,
  color 
)

◆ setVFov()

def setVFov (   self,
  vFov 
)

◆ toggleActiveLight()

def toggleActiveLight (   self)

◆ toggleDirect()

def toggleDirect (   self)

◆ toggleDirectGrid()

def toggleDirectGrid (   self)

◆ toggleGrid()

def toggleGrid (   self)

GRID CONTROLS ##.

◆ toggleHprSnap()

def toggleHprSnap (   self)

◆ toggleJoybox()

def toggleJoybox (   self)

DEVICE CONTROLS.

◆ toggleLights()

def toggleLights (   self)

◆ toggleWidgetOnTop()

def toggleWidgetOnTop (   self)

◆ toggleXyzSnap()

def toggleXyzSnap (   self)

◆ undoHook()

def undoHook (   self,
  nodePathList = [] 
)

◆ undoListEmptyHook()

def undoListEmptyHook (   self)

◆ updateDisplayRegionInfo()

def updateDisplayRegionInfo (   self)

◆ updateEnvironmentInfo()

def updateEnvironmentInfo (   self)

◆ updateGridInfo()

def updateGridInfo (   self)

◆ updateInfo()

def updateInfo (   self,
  page = 'Environment' 
)

UPDATE INFO ##.

◆ updateLightInfo()

def updateLightInfo (   self,
  page = None 
)

Member Data Documentation

◆ actionEvents

actionEvents

◆ activeDisplayRegion

activeDisplayRegion

◆ activeLight

activeLight

◆ appname

string appname = 'Direct Session Panel'
static

◆ backgroundColor

backgroundColor

◆ directEnabled

directEnabled

◆ directGridEnabled

directGridEnabled

◆ directWidgetOnTop

directWidgetOnTop

◆ drMenu

drMenu

◆ dSpecularColor

dSpecularColor

◆ enableGrid

enableGrid

◆ enableGridButton

enableGridButton

◆ enableJoybox

enableJoybox

◆ enableJoyboxButton

enableJoyboxButton

◆ enableLights

enableLights

◆ enableLightsButton

enableLightsButton

◆ farPlane

farPlane

◆ frameHeight

int frameHeight = 365
static

◆ frameWidth

int frameWidth = 600
static

◆ gridSize

gridSize

◆ gridSnapAngle

gridSnapAngle

◆ gridSpacing

gridSpacing

◆ hFov

hFov

◆ hprSnap

hprSnap

◆ hprSnapButton

hprSnapButton

◆ jbHprSF

jbHprSF

◆ jbModeMenu

jbModeMenu

◆ jbNodePathDict

jbNodePathDict

◆ jbNodePathMenu

jbNodePathMenu

◆ jbNodePathMenuBG

jbNodePathMenuBG

◆ jbNodePathMenuEntry

jbNodePathMenuEntry

◆ jbNodePathNames

jbNodePathNames

◆ jbXyzSF

jbXyzSF

◆ lightActive

lightActive

◆ lightActiveButton

lightActiveButton

◆ lightColor

lightColor

◆ lightMenu

lightMenu

◆ lightNotebook

lightNotebook

◆ lightsButton

lightsButton

◆ lockedFov

lockedFov

◆ lockedFovButton

lockedFovButton

◆ MemExp

MemExp

◆ nearPlane

nearPlane

◆ nodePathDict

nodePathDict

◆ nodePathMenu

nodePathMenu

◆ nodePathMenuBG

nodePathMenuBG

◆ nodePathMenuEntry

nodePathMenuEntry

◆ nodePathNames

nodePathNames

◆ pConstantAttenuation

pConstantAttenuation

◆ pLinearAttenuation

pLinearAttenuation

◆ pQuadraticAttenuation

pQuadraticAttenuation

◆ pSpecularColor

pSpecularColor

◆ redoButton

redoButton

◆ resetFovButton

resetFovButton

◆ sConstantAttenuation

sConstantAttenuation

◆ sExponent

sExponent

◆ SGE

SGE

◆ sLinearAttenuation

sLinearAttenuation

◆ sQuadraticAttenuation

sQuadraticAttenuation

◆ sSpecularColor

sSpecularColor

◆ taskMgrPanel

taskMgrPanel

◆ toggleBackfaceButton

toggleBackfaceButton

Render Style ##.

◆ toggleLightsButton

toggleLightsButton

◆ toggleTextureButton

toggleTextureButton

◆ toggleWireframeButton

toggleWireframeButton

◆ undoButton

undoButton

◆ usecommandarea

int usecommandarea = 0
static

◆ usestatusarea

int usestatusarea = 0
static

◆ vFov

vFov

◆ xyzSnap

xyzSnap

◆ xyzSnapButton

xyzSnapButton