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

Public Member Functions

def __init__ (self, device='CerealBox', nodePath=base.direct.camera, headingNP=base.direct.camera)
 
def acceptSwitchModeEvent (self, button=R_UPPER)
 
def acceptUprightCameraEvent (self, button=L_UPPER)
 
def addButtonEvents (self)
 
def basicMode (self)
 
def demoMode (self)
 
def destroy (self)
 
def disable (self)
 
def driveMode (self)
 
def enable (self)
 
def fpsMode (self)
 
def getEventName (self, index)
 
def getHprMultiplier (self)
 
def getNodePath (self)
 
def getRefCS (self)
 
def getXyzMultiplier (self)
 
def hprXyzMode (self)
 
def ignoreSwitchModeEvent (self, button=R_UPPER)
 
def ignoreUprightCameraEvent (self, button=L_UPPER)
 
def joeMode (self)
 
def joyboxFly (self)
 
def lookAroundMode (self)
 
def lookAtMode (self)
 
def lucMode (self)
 
def mopathMode (self)
 
def normalizeChannel (self, chan, minVal=-1, maxVal=1)
 
def nullFly (self)
 
def nullMode (self)
 
def orbitFly (self)
 
def orbitMode (self)
 
def orbitNode (self, h, p, r)
 
def planetFly (self)
 
def planetMode (self, auxData=[])
 
def setHeadingNodePath (self, np)
 
def setHprMultiplier (self, multiplier)
 
def setMode (self, func, name)
 
def setNodePath (self, nodePath)
 
def setRefCS (self, refCS)
 
def setRotateInPlace (self, enabled)
 
def setUseHeadingNP (self, enabled)
 
def setXyzMultiplier (self, multiplier)
 
def showMode (self, modeText)
 
def spaceFly (self)
 
def spaceMode (self)
 
def switchMode (self)
 
def tankFly (self)
 
def tankMode (self)
 
def updateTask (self, state)
 
def updateVals (self)
 
def updateValsUnrolled (self)
 
def walkthruMode (self)
 
- 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

 aList
 
 analogs
 
 auxData
 
 bList
 
 breg
 
 buttons
 
 deltaTime
 
 device
 
 eventThrower
 
 floatingNP
 
 headingNP
 
 lastTime
 
 mapping
 
 modeFunc
 
 modeList
 
 modeName
 
 modifier
 
 name
 
 nodePath
 
 readout
 
 refCS
 
 rotateInPlace
 
 tempCS
 
 updateFunc
 
 useHeadingNP
 

Static Public Attributes

float hprMultiplier = 1.0
 
int joyboxCount = 0
 
float xyzMultiplier = 1.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,
  device = 'CerealBox',
  nodePath = base.direct.camera,
  headingNP = base.direct.camera 
)

Member Function Documentation

◆ acceptSwitchModeEvent()

def acceptSwitchModeEvent (   self,
  button = R_UPPER 
)

◆ acceptUprightCameraEvent()

def acceptUprightCameraEvent (   self,
  button = L_UPPER 
)

◆ addButtonEvents()

def addButtonEvents (   self)

◆ basicMode()

def basicMode (   self)

◆ demoMode()

def demoMode (   self)

◆ destroy()

def destroy (   self)

◆ disable()

def disable (   self)

◆ driveMode()

def driveMode (   self)

◆ enable()

def enable (   self)

◆ fpsMode()

def fpsMode (   self)

◆ getEventName()

def getEventName (   self,
  index 
)

◆ getHprMultiplier()

def getHprMultiplier (   self)

◆ getNodePath()

def getNodePath (   self)

◆ getRefCS()

def getRefCS (   self)

◆ getXyzMultiplier()

def getXyzMultiplier (   self)

◆ hprXyzMode()

def hprXyzMode (   self)

◆ ignoreSwitchModeEvent()

def ignoreSwitchModeEvent (   self,
  button = R_UPPER 
)

◆ ignoreUprightCameraEvent()

def ignoreUprightCameraEvent (   self,
  button = L_UPPER 
)

◆ joeMode()

def joeMode (   self)

◆ joyboxFly()

def joyboxFly (   self)

◆ lookAroundMode()

def lookAroundMode (   self)

◆ lookAtMode()

def lookAtMode (   self)

◆ lucMode()

def lucMode (   self)

◆ mopathMode()

def mopathMode (   self)

◆ normalizeChannel()

def normalizeChannel (   self,
  chan,
  minVal = -1,
  maxVal = 1 
)

◆ nullFly()

def nullFly (   self)

◆ nullMode()

def nullMode (   self)

◆ orbitFly()

def orbitFly (   self)

◆ orbitMode()

def orbitMode (   self)

◆ orbitNode()

def orbitNode (   self,
  h,
  p,
  r 
)

◆ planetFly()

def planetFly (   self)

◆ planetMode()

def planetMode (   self,
  auxData = [] 
)

◆ setHeadingNodePath()

def setHeadingNodePath (   self,
  np 
)

◆ setHprMultiplier()

def setHprMultiplier (   self,
  multiplier 
)

◆ setMode()

def setMode (   self,
  func,
  name 
)

◆ setNodePath()

def setNodePath (   self,
  nodePath 
)

◆ setRefCS()

def setRefCS (   self,
  refCS 
)

◆ setRotateInPlace()

def setRotateInPlace (   self,
  enabled 
)

◆ setUseHeadingNP()

def setUseHeadingNP (   self,
  enabled 
)

◆ setXyzMultiplier()

def setXyzMultiplier (   self,
  multiplier 
)

◆ showMode()

def showMode (   self,
  modeText 
)

◆ spaceFly()

def spaceFly (   self)

◆ spaceMode()

def spaceMode (   self)

◆ switchMode()

def switchMode (   self)

◆ tankFly()

def tankFly (   self)

◆ tankMode()

def tankMode (   self)

◆ updateTask()

def updateTask (   self,
  state 
)

◆ updateVals()

def updateVals (   self)

◆ updateValsUnrolled()

def updateValsUnrolled (   self)

◆ walkthruMode()

def walkthruMode (   self)

Member Data Documentation

◆ aList

aList

◆ analogs

analogs

◆ auxData

auxData

◆ bList

bList

◆ breg

breg

◆ buttons

buttons

◆ deltaTime

deltaTime

◆ device

device

◆ eventThrower

eventThrower

◆ floatingNP

floatingNP

◆ headingNP

headingNP

◆ hprMultiplier

float hprMultiplier = 1.0
static

◆ joyboxCount

int joyboxCount = 0
static

◆ lastTime

lastTime

◆ mapping

mapping

◆ modeFunc

modeFunc

◆ modeList

modeList

◆ modeName

modeName

◆ modifier

modifier

◆ name

name

◆ nodePath

nodePath

◆ readout

readout

◆ refCS

refCS

◆ rotateInPlace

rotateInPlace

◆ tempCS

tempCS

◆ updateFunc

updateFunc

◆ useHeadingNP

useHeadingNP

◆ xyzMultiplier

float xyzMultiplier = 1.0
static