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

Public Member Functions

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

Public Attributes

 actionEvents
 
 activeDisplayRegion
 
 activeLight
 
 addLight
 
 appname
 
 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
 
 pushRedoHook
 
 pushUndoHook
 
 redoButton
 
 redoHook
 
 redoListEmptyHook
 
 resetFovButton
 
 sConstantAttenuation
 
 selectedNodePathHook
 
 sExponent
 
 SGE
 
 sLinearAttenuation
 
 sQuadraticAttenuation
 
 sSpecularColor
 
 taskMgrPanel
 
 toggleBackfaceButton
 
 toggleLightsButton
 
 toggleTextureButton
 
 toggleWireframeButton
 
 undoButton
 
 undoHook
 
 undoListEmptyHook
 
 vFov
 
 xyzSnap
 
 xyzSnapButton
 
- Public Attributes inherited from AppShell
 about
 
 appname
 
 appversion
 
 balloonState
 
 contactemail
 
 contactname
 
 contactphone
 
 copyright
 
 dataArea
 
 frameHeight
 
 frameWidth
 
 id
 
 menuBar
 
 menuFrame
 
 parent
 
 toggleBalloonVar
 
 usecommandarea
 
 usestatusarea
 
 variableDict
 
 widgetDict
 

Static Public Attributes

str appname = 'Direct Session Panel'
 
int frameHeight = 365
 
int frameWidth = 600
 
int usecommandarea = 0
 
int usestatusarea = 0
 
- Static Public Attributes inherited from AppShell
str appname = 'Generic Application Frame'
 
str appversion = '1.0'
 
str balloonState = 'none'
 
str contactemail = 'Mark.Mine@disney.com'
 
str contactname = 'Mark R. Mine'
 
str 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
 accept_once = acceptOnce
 
 add_task = addTask
 
 detect_leaks = detectLeaks
 
 do_method_later = doMethodLater
 
 get_all_accepting = getAllAccepting
 
 ignore_all = ignoreAll
 
 is_accepting = isAccepting
 
 is_ignoring = isIgnoring
 
 remove_all_tasks = removeAllTasks
 
 remove_task = removeTask
 

Additional Inherited Members

- Protected Member Functions inherited from DirectObject
 _addTask (self, task)
 
 _clearTask (self, task)
 
- Protected Attributes inherited from AppShell
 _hull
 
- Protected Attributes inherited from DirectObject
 _taskList
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
parent = None,
** kw )

Reimplemented from AppShell.

Member Function Documentation

◆ addAmbient()

addAmbient ( self)

◆ addDirectional()

addDirectional ( self)

◆ addJBNodePath()

addJBNodePath ( self,
nodePath )

◆ addLight()

addLight ( self,
light )

◆ addNodePath()

addNodePath ( self,
nodePath )

◆ addNodePathToDict()

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

◆ addPoint()

addPoint ( self)

◆ addSpot()

addSpot ( self)

◆ appInit()

appInit ( self)

USER METHODS ### To be overridden.

Reimplemented from AppShell.

◆ createDevicePage()

createDevicePage ( self,
devicePage )

◆ createEnvPage()

createEnvPage ( self,
envPage )

◆ createGridPage()

createGridPage ( self,
gridPage )

◆ createInterface()

createInterface ( self)

Reimplemented from AppShell.

◆ createLightsPage()

createLightsPage ( self,
lightsPage )

◆ createMemPage()

createMemPage ( self,
memPage )

◆ createTasksPage()

createTasksPage ( self,
tasksPage )

◆ onDestroy()

onDestroy ( self,
event )

Reimplemented from AppShell.

◆ pushRedo()

pushRedo ( self)

◆ pushRedoHook()

pushRedoHook ( self)

◆ pushUndo()

pushUndo ( self,
fResetRedo = 1 )

◆ pushUndoHook()

pushUndoHook ( self)

◆ redoHook()

redoHook ( self,
nodePathList = [] )

◆ redoListEmptyHook()

redoListEmptyHook ( self)

◆ resetFov()

resetFov ( self)

◆ selectDisplayRegionNamed()

selectDisplayRegionNamed ( self,
name )

◆ selectedNodePathHook()

selectedNodePathHook ( self,
nodePath )

◆ selectJBModeNamed()

selectJBModeNamed ( self,
name )

◆ selectJBNodePathNamed()

selectJBNodePathNamed ( self,
name )

◆ selectLightNamed()

selectLightNamed ( self,
name )

◆ selectNodePathNamed()

selectNodePathNamed ( self,
name )

◆ setBackgroundColor()

setBackgroundColor ( self,
r,
g,
b )

ENVIRONMENT CONTROLS ## Background #.

◆ setBackgroundColorVec()

setBackgroundColorVec ( self,
color )

◆ setConstantAttenuation()

setConstantAttenuation ( self,
value )

◆ setExponent()

setExponent ( self,
value )

◆ setFar()

setFar ( self,
far )

◆ setHFov()

setHFov ( self,
hFov )

◆ setLightColor()

setLightColor ( self,
color )

◆ setLinearAttenuation()

setLinearAttenuation ( self,
value )

◆ setNear()

setNear ( self,
near )

◆ setQuadraticAttenuation()

setQuadraticAttenuation ( self,
value )

◆ setSpecularColor()

setSpecularColor ( self,
color )

◆ setVFov()

setVFov ( self,
vFov )

◆ toggleActiveLight()

toggleActiveLight ( self)

◆ toggleDirect()

toggleDirect ( self)

◆ toggleDirectGrid()

toggleDirectGrid ( self)

◆ toggleGrid()

toggleGrid ( self)

GRID CONTROLS ##.

◆ toggleHprSnap()

toggleHprSnap ( self)

◆ toggleJoybox()

toggleJoybox ( self)

DEVICE CONTROLS.

◆ toggleLights()

toggleLights ( self)

◆ toggleWidgetOnTop()

toggleWidgetOnTop ( self)

◆ toggleXyzSnap()

toggleXyzSnap ( self)

◆ undoHook()

undoHook ( self,
nodePathList = [] )

◆ undoListEmptyHook()

undoListEmptyHook ( self)

◆ updateDisplayRegionInfo()

updateDisplayRegionInfo ( self)

◆ updateEnvironmentInfo()

updateEnvironmentInfo ( self)

◆ updateGridInfo()

updateGridInfo ( self)

◆ updateInfo()

updateInfo ( self,
page = 'Environment' )

UPDATE INFO ##.

◆ updateLightInfo()

updateLightInfo ( self,
page = None )

Member Data Documentation

◆ actionEvents

actionEvents

◆ activeDisplayRegion

activeDisplayRegion

◆ activeLight

activeLight

◆ addLight

addLight

◆ appname [1/2]

str appname = 'Direct Session Panel'
static

◆ appname [2/2]

appname

◆ 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

◆ pushRedoHook

pushRedoHook

◆ pushUndoHook

pushUndoHook

◆ redoButton

redoButton

◆ redoHook

redoHook

◆ redoListEmptyHook

redoListEmptyHook

◆ resetFovButton

resetFovButton

◆ sConstantAttenuation

sConstantAttenuation

◆ selectedNodePathHook

selectedNodePathHook

◆ sExponent

sExponent

◆ SGE

SGE

◆ sLinearAttenuation

sLinearAttenuation

◆ sQuadraticAttenuation

sQuadraticAttenuation

◆ sSpecularColor

sSpecularColor

◆ taskMgrPanel

taskMgrPanel

◆ toggleBackfaceButton

toggleBackfaceButton

◆ toggleLightsButton

toggleLightsButton

◆ toggleTextureButton

toggleTextureButton

◆ toggleWireframeButton

toggleWireframeButton

◆ undoButton

undoButton

◆ undoHook

undoHook

◆ undoListEmptyHook

undoListEmptyHook

◆ usecommandarea

int usecommandarea = 0
static

◆ usestatusarea

int usestatusarea = 0
static

◆ vFov

vFov

◆ xyzSnap

xyzSnap

◆ xyzSnapButton

xyzSnapButton