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

Public Member Functions

def __init__ (self, parent=None, **kw)
 
def addKeyframe (self, fToggleRecord=1)
 
def addNodePath (self, nodePath)
 
def addNodePathToDict (self, nodePath, names, menu, dict)
 
def addWidget (self, widget, category, text)
 WIDGET UTILITY FUNCTIONS ##. More...
 
def appInit (self)
 USER METHODS ### To be overridden. More...
 
def computeCurves (self)
 
def createAngleDial (self, parent, category, text, balloonHelp, command=None, **kw)
 
def createButton (self, parent, category, text, balloonHelp, command, side='top', expand=0, fill=X)
 
def createCheckbutton (self, parent, category, text, balloonHelp, command, initialState, side='top', fill=X, expand=0)
 
def createColorEntry (self, parent, category, text, balloonHelp, command=None, **kw)
 
def createComboBox (self, parent, category, text, balloonHelp, items, command, history=0, side=LEFT, expand=0, fill=X)
 
def createEntryScale (self, parent, category, text, balloonHelp, command=None, min=0.0, max=1.0, resolution=None, side=TOP, fill=X, expand=1, **kw)
 
def createFloater (self, parent, category, text, balloonHelp, command=None, min=0.0, resolution=None, maxVelocity=10.0, **kw)
 
def createInterface (self)
 
def createLabeledEntry (self, parent, category, text, balloonHelp, value='', command=None, relief='sunken', side=LEFT, expand=1, width=12)
 
def createNewPointSet (self)
 
def createOptionMenu (self, parent, category, text, balloonHelp, items, command)
 
def createRadiobutton (self, parent, side, category, text, balloonHelp, variable, value, command=None, fill=X, expand=0)
 
def createSlider (self, parent, category, text, balloonHelp, command=None, min=0.0, max=1.0, resolution=None, side=TOP, fill=X, expand=1, **kw)
 
def createVector2Entry (self, parent, category, text, balloonHelp, command=None, **kw)
 
def createVector3Entry (self, parent, category, text, balloonHelp, command=None, **kw)
 
def cropCurve (self)
 
def curveEditTask (self, state)
 
def desampleCurve (self)
 
def deselectedNodePathHook (self, nodePath)
 
def disableKeyframeButton (self)
 
def easeInOut (self, t)
 
def enableKeyframeButton (self)
 
def extractPointSetFromCurveCollection (self)
 
def extractPointSetFromCurveFitter (self)
 
def faceForward (self)
 
def followTerrain (self, height=1.0)
 
def getChildIds (self, nodePath)
 
def getPostPoints (self)
 
def getPrePoints (self, type='Refine')
 
def getVariable (self, category, text)
 
def getWidget (self, category, text)
 
def initTrace (self)
 
def jumpToEndOfPlayback (self)
 
def jumpToStartOfPlayback (self)
 
def loadCurveFromFile (self)
 
def makeCameraWindow (self)
 
def makeEven (self)
 
def manipulateObjectCleanupHook (self, nodePathList=[])
 
def manipulateObjectStartHook (self)
 
def mergePoints (self)
 
def onDestroy (self, event)
 
def playbackGoTo (self, time)
 
def playbackTask (self, state)
 
def pushRedo (self)
 
def pushRedoHook (self)
 
def pushUndo (self, fResetRedo=1)
 
def pushUndoHook (self)
 
def recordPoint (self, time)
 
def recordTask (self, state)
 
def redoHook (self, nodePathList=[])
 
def redoListEmptyHook (self)
 
def reset (self)
 
def sampleCurve (self, fCompute=1)
 
def saveCurveToFile (self)
 
def selectedNodePathHook (self, nodePath)
 
def selectNodePathNamed (self, name)
 
def selectPointSetNamed (self, name)
 
def setControlStart (self, value)
 
def setControlStop (self, value)
 
def setCropFrom (self, value)
 
def setCropTo (self, value)
 
def setCvColor (self, color)
 
def setCvVis (self)
 
def setDesampleFrequency (self, frequency)
 
def setExtendMode (self)
 
def setHullColor (self, color)
 
def setHullVis (self)
 
def setKeyframeHook (self, event=None)
 
def setKnotColor (self, color)
 
def setKnotVis (self)
 
def setLoopPlayback (self)
 
def setMarkerVis (self)
 
def setNewCurveMode (self)
 
def setNodePath (self, nodePath)
 
def setNumSamples (self, numSamples)
 
def setNumSegs (self, value)
 
def setNumTicks (self, value)
 
def setPathColor (self, color)
 
def setPathDuration (self, event)
 
def setPathDurationTo (self, newMaxT)
 
def setPathVis (self)
 
def setPlaybackNodePath (self, nodePath)
 
def setPlaybackSF (self, value)
 
def setPreRecordFunc (self, func)
 
def setRecordingType (self, type)
 
def setRecordStart (self, value)
 
def setRefineMode (self)
 
def setRefineStop (self, value)
 
def setSamplingMode (self, mode)
 
def setSpeedScale (self, value)
 
def setStartStopHook (self, event=None)
 
def setTickColor (self, color)
 
def setTickScale (self, value)
 
def setTraceVis (self)
 
def startPlayback (self)
 
def startStopPlayback (self)
 
def stopPlayback (self)
 
def toggleRecord (self)
 
def toggleRecordVar (self)
 
def undoHook (self, nodePathList=[])
 
def undoListEmptyHook (self)
 
def updateWidgets (self)
 
- Public Member Functions inherited from AppShell
def addVariable (self, category, text, variable)
 
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 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
 
 cCam
 
 cCamera
 
 cCamNode
 
 cDr
 
 cLayer
 
 cLens
 
 controlStart
 
 controlStop
 
 cropFrom
 
 cropPage
 
 cropTo
 
 curveCollection
 
 curveFitter
 
 curveNodePath
 
 deltaTime
 
 desampleFrequency
 
 drawPage
 
 extendPage
 
 fAdjustingValues
 
 hasPoints
 
 iRay
 
 iRayCS
 
 keyframeHook
 
 lastPos
 
 layerIndex
 
 loopPlayback
 
 mainNotebook
 
 manipulandumId
 
 maxT
 
 name
 
 nodePath
 
 nodePathDict
 
 nodePathMenu
 
 nodePathMenuBG
 
 nodePathMenuEntry
 
 nodePathNames
 
 nodePathParent
 
 numSamples
 
 numSegs
 
 numTicks
 
 nurbsCurveDrawer
 
 oldPlaybackNodePath
 
 optionsPage
 
 playbackMarker
 
 playbackMarkerIds
 
 playbackNodePath
 
 playbackSF
 
 playbackTime
 
 pointSet
 
 pointSetCount
 
 pointSetDict
 
 pointSetName
 
 postPoints
 
 prePoints
 
 preRecordFunc
 OPTIONS PAGE ##. More...
 
 recorderNodePath
 
 recordingType
 
 recordStart
 
 recordStop
 
 redoButton
 
 refinePage
 
 resamplePage
 
 samplingMode
 
 sf
 RESAMPLE PAGE. More...
 
 speedEntry
 
 speedScale
 
 speedVar
 
 startStopHook
 
 tangentGroup
 
 tangentLines
 
 tangentMarker
 
 tangentMarkerIds
 
 tempCS
 
 trace
 
 undoButton
 
 variableDict
 
 widgetDict
 
- Public Attributes inherited from AppShell
 about
 
 balloonState
 
 dataArea
 
 id
 
 menuBar
 
 menuFrame
 
 parent
 
 toggleBalloonVar
 
 variableDict
 
 widgetDict
 

Static Public Attributes

string appname = 'Mopath Recorder Panel'
 
int count = 0
 
int frameHeight = 550
 
int frameWidth = 450
 
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

◆ addKeyframe()

def addKeyframe (   self,
  fToggleRecord = 1 
)

◆ addNodePath()

def addNodePath (   self,
  nodePath 
)

◆ addNodePathToDict()

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

◆ addWidget()

def addWidget (   self,
  widget,
  category,
  text 
)

WIDGET UTILITY FUNCTIONS ##.

Reimplemented from AppShell.

◆ appInit()

def appInit (   self)

USER METHODS ### To be overridden.

Reimplemented from AppShell.

◆ computeCurves()

def computeCurves (   self)

◆ createAngleDial()

def createAngleDial (   self,
  parent,
  category,
  text,
  balloonHelp,
  command = None,
**  kw 
)

◆ createButton()

def createButton (   self,
  parent,
  category,
  text,
  balloonHelp,
  command,
  side = 'top',
  expand = 0,
  fill = X 
)

◆ createCheckbutton()

def createCheckbutton (   self,
  parent,
  category,
  text,
  balloonHelp,
  command,
  initialState,
  side = 'top',
  fill = X,
  expand = 0 
)

◆ createColorEntry()

def createColorEntry (   self,
  parent,
  category,
  text,
  balloonHelp,
  command = None,
**  kw 
)

◆ createComboBox()

def createComboBox (   self,
  parent,
  category,
  text,
  balloonHelp,
  items,
  command,
  history = 0,
  side = LEFT,
  expand = 0,
  fill = X 
)

◆ createEntryScale()

def createEntryScale (   self,
  parent,
  category,
  text,
  balloonHelp,
  command = None,
  min = 0.0,
  max = 1.0,
  resolution = None,
  side = TOP,
  fill = X,
  expand = 1,
**  kw 
)

◆ createFloater()

def createFloater (   self,
  parent,
  category,
  text,
  balloonHelp,
  command = None,
  min = 0.0,
  resolution = None,
  maxVelocity = 10.0,
**  kw 
)

◆ createInterface()

def createInterface (   self)

Reimplemented from AppShell.

◆ createLabeledEntry()

def createLabeledEntry (   self,
  parent,
  category,
  text,
  balloonHelp,
  value = '',
  command = None,
  relief = 'sunken',
  side = LEFT,
  expand = 1,
  width = 12 
)

◆ createNewPointSet()

def createNewPointSet (   self)

◆ createOptionMenu()

def createOptionMenu (   self,
  parent,
  category,
  text,
  balloonHelp,
  items,
  command 
)

◆ createRadiobutton()

def createRadiobutton (   self,
  parent,
  side,
  category,
  text,
  balloonHelp,
  variable,
  value,
  command = None,
  fill = X,
  expand = 0 
)

◆ createSlider()

def createSlider (   self,
  parent,
  category,
  text,
  balloonHelp,
  command = None,
  min = 0.0,
  max = 1.0,
  resolution = None,
  side = TOP,
  fill = X,
  expand = 1,
**  kw 
)

◆ createVector2Entry()

def createVector2Entry (   self,
  parent,
  category,
  text,
  balloonHelp,
  command = None,
**  kw 
)

◆ createVector3Entry()

def createVector3Entry (   self,
  parent,
  category,
  text,
  balloonHelp,
  command = None,
**  kw 
)

◆ cropCurve()

def cropCurve (   self)

◆ curveEditTask()

def curveEditTask (   self,
  state 
)

◆ desampleCurve()

def desampleCurve (   self)

◆ deselectedNodePathHook()

def deselectedNodePathHook (   self,
  nodePath 
)
Hook called upon deselection of a node path used to select playback
marker if subnode selected

◆ disableKeyframeButton()

def disableKeyframeButton (   self)

◆ easeInOut()

def easeInOut (   self,
  t 
)

◆ enableKeyframeButton()

def enableKeyframeButton (   self)

◆ extractPointSetFromCurveCollection()

def extractPointSetFromCurveCollection (   self)

◆ extractPointSetFromCurveFitter()

def extractPointSetFromCurveFitter (   self)

◆ faceForward()

def faceForward (   self)

◆ followTerrain()

def followTerrain (   self,
  height = 1.0 
)

◆ getChildIds()

def getChildIds (   self,
  nodePath 
)

◆ getPostPoints()

def getPostPoints (   self)

◆ getPrePoints()

def getPrePoints (   self,
  type = 'Refine' 
)

◆ getVariable()

def getVariable (   self,
  category,
  text 
)

Reimplemented from AppShell.

◆ getWidget()

def getWidget (   self,
  category,
  text 
)

Reimplemented from AppShell.

◆ initTrace()

def initTrace (   self)

◆ jumpToEndOfPlayback()

def jumpToEndOfPlayback (   self)

◆ jumpToStartOfPlayback()

def jumpToStartOfPlayback (   self)

◆ loadCurveFromFile()

def loadCurveFromFile (   self)

◆ makeCameraWindow()

def makeCameraWindow (   self)

◆ makeEven()

def makeEven (   self)

◆ manipulateObjectCleanupHook()

def manipulateObjectCleanupHook (   self,
  nodePathList = [] 
)

◆ manipulateObjectStartHook()

def manipulateObjectStartHook (   self)

◆ mergePoints()

def mergePoints (   self)

◆ onDestroy()

def onDestroy (   self,
  event 
)

Reimplemented from AppShell.

◆ playbackGoTo()

def playbackGoTo (   self,
  time 
)

◆ playbackTask()

def playbackTask (   self,
  state 
)

◆ pushRedo()

def pushRedo (   self)

◆ pushRedoHook()

def pushRedoHook (   self)

◆ pushUndo()

def pushUndo (   self,
  fResetRedo = 1 
)

◆ pushUndoHook()

def pushUndoHook (   self)

◆ recordPoint()

def recordPoint (   self,
  time 
)

◆ recordTask()

def recordTask (   self,
  state 
)

◆ redoHook()

def redoHook (   self,
  nodePathList = [] 
)

◆ redoListEmptyHook()

def redoListEmptyHook (   self)

◆ reset()

def reset (   self)

◆ sampleCurve()

def sampleCurve (   self,
  fCompute = 1 
)

◆ saveCurveToFile()

def saveCurveToFile (   self)

◆ selectedNodePathHook()

def selectedNodePathHook (   self,
  nodePath 
)
Hook called upon selection of a node path used to select playback
marker if subnode selected

◆ selectNodePathNamed()

def selectNodePathNamed (   self,
  name 
)

◆ selectPointSetNamed()

def selectPointSetNamed (   self,
  name 
)

◆ setControlStart()

def setControlStart (   self,
  value 
)

◆ setControlStop()

def setControlStop (   self,
  value 
)

◆ setCropFrom()

def setCropFrom (   self,
  value 
)

◆ setCropTo()

def setCropTo (   self,
  value 
)

◆ setCvColor()

def setCvColor (   self,
  color 
)

◆ setCvVis()

def setCvVis (   self)

◆ setDesampleFrequency()

def setDesampleFrequency (   self,
  frequency 
)

◆ setExtendMode()

def setExtendMode (   self)

◆ setHullColor()

def setHullColor (   self,
  color 
)

◆ setHullVis()

def setHullVis (   self)

◆ setKeyframeHook()

def setKeyframeHook (   self,
  event = None 
)

◆ setKnotColor()

def setKnotColor (   self,
  color 
)

◆ setKnotVis()

def setKnotVis (   self)

◆ setLoopPlayback()

def setLoopPlayback (   self)

◆ setMarkerVis()

def setMarkerVis (   self)

◆ setNewCurveMode()

def setNewCurveMode (   self)

◆ setNodePath()

def setNodePath (   self,
  nodePath 
)

◆ setNumSamples()

def setNumSamples (   self,
  numSamples 
)

◆ setNumSegs()

def setNumSegs (   self,
  value 
)

◆ setNumTicks()

def setNumTicks (   self,
  value 
)

◆ setPathColor()

def setPathColor (   self,
  color 
)

◆ setPathDuration()

def setPathDuration (   self,
  event 
)

◆ setPathDurationTo()

def setPathDurationTo (   self,
  newMaxT 
)

◆ setPathVis()

def setPathVis (   self)

◆ setPlaybackNodePath()

def setPlaybackNodePath (   self,
  nodePath 
)

◆ setPlaybackSF()

def setPlaybackSF (   self,
  value 
)

◆ setPreRecordFunc()

def setPreRecordFunc (   self,
  func 
)

◆ setRecordingType()

def setRecordingType (   self,
  type 
)

◆ setRecordStart()

def setRecordStart (   self,
  value 
)

◆ setRefineMode()

def setRefineMode (   self)

◆ setRefineStop()

def setRefineStop (   self,
  value 
)

◆ setSamplingMode()

def setSamplingMode (   self,
  mode 
)

◆ setSpeedScale()

def setSpeedScale (   self,
  value 
)

◆ setStartStopHook()

def setStartStopHook (   self,
  event = None 
)

◆ setTickColor()

def setTickColor (   self,
  color 
)

◆ setTickScale()

def setTickScale (   self,
  value 
)

◆ setTraceVis()

def setTraceVis (   self)

◆ startPlayback()

def startPlayback (   self)

◆ startStopPlayback()

def startStopPlayback (   self)

◆ stopPlayback()

def stopPlayback (   self)

◆ toggleRecord()

def toggleRecord (   self)

◆ toggleRecordVar()

def toggleRecordVar (   self)

◆ undoHook()

def undoHook (   self,
  nodePathList = [] 
)

◆ undoListEmptyHook()

def undoListEmptyHook (   self)

◆ updateWidgets()

def updateWidgets (   self)

Member Data Documentation

◆ actionEvents

actionEvents

◆ appname

string appname = 'Mopath Recorder Panel'
static

◆ cCam

cCam

◆ cCamera

cCamera

◆ cCamNode

cCamNode

◆ cDr

cDr

◆ cLayer

cLayer

◆ cLens

cLens

◆ controlStart

controlStart

◆ controlStop

controlStop

◆ count

int count = 0
static

◆ cropFrom

cropFrom

◆ cropPage

cropPage

◆ cropTo

cropTo

◆ curveCollection

curveCollection

◆ curveFitter

curveFitter

◆ curveNodePath

curveNodePath

◆ deltaTime

deltaTime

◆ desampleFrequency

desampleFrequency

◆ drawPage

drawPage

◆ extendPage

extendPage

◆ fAdjustingValues

fAdjustingValues

◆ frameHeight

int frameHeight = 550
static

◆ frameWidth

int frameWidth = 450
static

◆ hasPoints

hasPoints

◆ iRay

iRay

◆ iRayCS

iRayCS

◆ keyframeHook

keyframeHook

◆ lastPos

lastPos

◆ layerIndex

layerIndex

◆ loopPlayback

loopPlayback

◆ mainNotebook

mainNotebook

◆ manipulandumId

manipulandumId

◆ maxT

maxT

◆ name

name

◆ nodePath

nodePath

◆ nodePathDict

nodePathDict

◆ nodePathMenu

nodePathMenu

◆ nodePathMenuBG

nodePathMenuBG

◆ nodePathMenuEntry

nodePathMenuEntry

◆ nodePathNames

nodePathNames

◆ nodePathParent

nodePathParent

◆ numSamples

numSamples

◆ numSegs

numSegs

◆ numTicks

numTicks

◆ nurbsCurveDrawer

nurbsCurveDrawer

◆ oldPlaybackNodePath

oldPlaybackNodePath

◆ optionsPage

optionsPage

◆ playbackMarker

playbackMarker

◆ playbackMarkerIds

playbackMarkerIds

◆ playbackNodePath

playbackNodePath

◆ playbackSF

playbackSF

◆ playbackTime

playbackTime

◆ pointSet

pointSet

◆ pointSetCount

pointSetCount

◆ pointSetDict

pointSetDict

◆ pointSetName

pointSetName

◆ postPoints

postPoints

◆ prePoints

prePoints

◆ preRecordFunc

preRecordFunc

OPTIONS PAGE ##.

◆ recorderNodePath

recorderNodePath

◆ recordingType

recordingType

◆ recordStart

recordStart

◆ recordStop

recordStop

◆ redoButton

redoButton

◆ refinePage

refinePage

◆ resamplePage

resamplePage

◆ samplingMode

samplingMode

◆ sf

sf

RESAMPLE PAGE.

REFINE PAGE ## EXTEND PAGE ## CROP PAGE ## DRAW PAGE ##

◆ speedEntry

speedEntry

◆ speedScale

speedScale

◆ speedVar

speedVar

◆ startStopHook

startStopHook

◆ tangentGroup

tangentGroup

◆ tangentLines

tangentLines

◆ tangentMarker

tangentMarker

◆ tangentMarkerIds

tangentMarkerIds

◆ tempCS

tempCS

◆ trace

trace

◆ undoButton

undoButton

◆ usecommandarea

int usecommandarea = 0
static

◆ usestatusarea

int usestatusarea = 0
static

◆ variableDict

variableDict

◆ widgetDict

widgetDict