Panda3D
Loading...
Searching...
No Matches
AnimPanel Class Reference
Inheritance diagram for AnimPanel:
AppShell DirectObject

Public Member Functions

 __init__ (self, aList=[], parent=None, session=None, **kw)
 
 clearActorControls (self)
 
 createActorControls (self)
 
 createInterface (self)
 
 destroy (self)
 
 disableActorControlAt (self, index)
 
 disableActorControls (self)
 
 displayFrameCounts (self)
 
 displaySeconds (self)
 
 enableActorControlAt (self, index)
 
 enableActorControls (self)
 
 getActorControlAt (self, index)
 
 loadAnim (self)
 
 nextFrame (self)
 
 play (self, task)
 
 playActorControls (self)
 
 previousFrame (self)
 
 resetAllToEnd (self)
 
 resetAllToZero (self)
 
 setActors (self)
 
 setDestroyCallBack (self, callBack)
 
 stopActorControls (self)
 
 toggleAllControls (self)
 
- Public Member Functions inherited from AppShell
 __init__ (self, parent=None, **kw)
 
 addVariable (self, category, text, variable)
 
 addWidget (self, category, text, widget)
 WIDGET UTILITY FUNCTIONS ##.
 
 alignbuttons (self)
 
 appInit (self)
 USER METHODS ### To be overridden.
 
 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)
 
 onDestroy (self, event)
 
 quit (self)
 
 showAbout (self)
 
 toggleBalloon (self)
 
 transformRGB (self, rgb, max=1.0)
 
 updateProgress (self, newValue=0, newMax=0)
 
- Public Member Functions inherited from DirectObject
 __init__ (self)
 
 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

int actorControlIndex = 0
 
list actorControlList = []
 
 actorFrame = None
 
 destroyCallBack = None
 
int fToggleAll = 1
 
 lastT = globalClock.getFrameTime()
 
 loopButton
 
 loopVar = IntVar()
 
 play = self.actorControlList[:]
 
 playButton
 
list playList = []
 
 session = session
 
 stopButton
 
 toEndButton
 
 toNextFrameButton
 
 toPreviousFrameButton
 
 toStartButton
 
- Public Attributes inherited from AppShell
 about
 
 dataArea
 
str id = self.appname + '-' + repr(AppShell.panelCount)
 
 menuBar
 
 menuFrame = Frame(self._hull)
 
 onDestroy
 
 parent = Toplevel()
 
 toggleBalloonVar = IntVar()
 
dict variableDict = {}
 
dict widgetDict = {}
 

Static Public Attributes

int index = 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 = self.component('hull')
 
- Protected Attributes inherited from DirectObject
dict _taskList = {}
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
aList = [],
parent = None,
session = None,
** kw )

Member Function Documentation

◆ clearActorControls()

clearActorControls ( self)

◆ createActorControls()

createActorControls ( self)

◆ createInterface()

createInterface ( self)

Reimplemented from AppShell.

◆ destroy()

destroy ( self)

◆ disableActorControlAt()

disableActorControlAt ( self,
index )

◆ disableActorControls()

disableActorControls ( self)

◆ displayFrameCounts()

displayFrameCounts ( self)

◆ displaySeconds()

displaySeconds ( self)

◆ enableActorControlAt()

enableActorControlAt ( self,
index )

◆ enableActorControls()

enableActorControls ( self)

◆ getActorControlAt()

getActorControlAt ( self,
index )

◆ loadAnim()

loadAnim ( self)

◆ nextFrame()

nextFrame ( self)

◆ play()

play ( self,
task )

◆ playActorControls()

playActorControls ( self)

◆ previousFrame()

previousFrame ( self)

◆ resetAllToEnd()

resetAllToEnd ( self)

◆ resetAllToZero()

resetAllToZero ( self)

◆ setActors()

setActors ( self)

◆ setDestroyCallBack()

setDestroyCallBack ( self,
callBack )

◆ stopActorControls()

stopActorControls ( self)

◆ toggleAllControls()

toggleAllControls ( self)

Member Data Documentation

◆ actorControlIndex

int actorControlIndex = 0

◆ actorControlList

list actorControlList = []

◆ actorFrame

actorFrame = None

◆ destroyCallBack

destroyCallBack = None

◆ fToggleAll

int fToggleAll = 1

◆ index

int index = 0
static

◆ lastT

lastT = globalClock.getFrameTime()

◆ loopButton

loopButton
Initial value:
= self.createcomponent(
'loopButton', (), None,
Checkbutton, (controlFrame,),
text = 'Loop', width = 8,
variable = self.loopVar)

◆ loopVar

loopVar = IntVar()

◆ play

play = self.actorControlList[:]

◆ playButton

playButton
Initial value:
= self.createcomponent(
'playButton', (), None,
Button, (controlFrame,),
text = 'Play', width = 8,
command = self.playActorControls)

◆ playList

list playList = []

◆ session

session = session

◆ stopButton

stopButton
Initial value:
= self.createcomponent(
'stopButton', (), None,
Button, (controlFrame,),
text = 'Stop', width = 8,
command = self.stopActorControls)

◆ toEndButton

toEndButton
Initial value:
= self.createcomponent(
'toEnd', (), None,
Button, (controlFrame,),
text = '>>',
width = 4,
command = self.resetAllToEnd)

◆ toNextFrameButton

toNextFrameButton
Initial value:
= self.createcomponent(
'toNextFrame', (), None,
Button, (controlFrame,),
text = '>',
width = 4,
command = self.nextFrame)

◆ toPreviousFrameButton

toPreviousFrameButton
Initial value:
= self.createcomponent(
'toPreviousFrame', (), None,
Button, (controlFrame,),
text = '<',
width = 4,
command = self.previousFrame)

◆ toStartButton

toStartButton
Initial value:
= self.createcomponent(
'toStart', (), None,
Button, (controlFrame,),
text = '<<',
width = 4,
command = self.resetAllToZero)