Panda3D
Classes | Functions | Variables
direct.directtools.DirectCameraControl Namespace Reference

Classes

class  DirectCameraControl
 

Functions

def centerCam (self)
 
def centerCamIn (self, t)
 
def centerCamNow (self)
 
def computeCOA (self, entry)
 
def disableMouseFly (self)
 
def enableMouseFly (self, fKeyEvents=1)
 
def fitOnWidget (self, nodePath='None Given')
 
def homeCam (self)
 
def HPanYZoomTask (self, state)
 
def HPPanTask (self, state)
 
def lockCOA (self)
 
def mouseDollyStart (self, modifiers)
 
def mouseDollyStop (self)
 
def mouseFlyStart (self, modifiers)
 
def mouseFlyStartTopWin (self)
 
def mouseFlyStop (self)
 
def mouseFlyStopTopWin (self)
 
def mouseRollTask (self, state)
 
def mouseRotateStart (self, modifiers)
 if base.direct.cameraControl.coaMarker.isHidden(): base.direct.cameraControl.coaMarker.show() else: base.direct.cameraControl.coaMarker.hide() More...
 
def mouseRotateTask (self, state)
 
def moveToFit (self)
 
def orbitUprightCam (self)
 
def OrthoTranslateTask (self, state)
 
def OrthoZoomTask (self, state)
 
def pickNextCOA (self)
 
def removeManipulateCameraTask (self)
 
def reparentCam (self, parent)
 
def spawnHPanYZoom (self)
 
def spawnHPPan (self)
 
def spawnMouseRollTask (self)
 
def spawnMouseRotateTask (self)
 
def spawnMoveToView (self, view)
 
def spawnOrthoTranslate (self)
 
def spawnOrthoZoom (self)
 
def spawnXZTranslate (self)
 
def spawnXZTranslateOrHPanYZoom (self)
 
def spawnXZTranslateOrHPPan (self)
 
def stickToWidgetTask (self, state)
 
def swingCamAboutWidget (self, degrees, t)
 
def toggleCOALock (self)
 
def toggleMarkerVis (self)
 
def unlockCOA (self)
 
def updateCoa (self, ref2point, coaDist=None, ref=None)
 
def updateCoaMarkerSize (self, coaDist=None)
 
def updateCoaMarkerSizeOnDeath (self)
 
def uprightCam (self)
 
def XZTranslateOrHPanYZoomTask (self, state)
 
def XZTranslateOrHPPanTask (self, state)
 
def XZTranslateTask (self, state)
 
def zoomCam (self, zoomFactor, t)
 

Variables

 altDown
 
float CAM_MOVE_DURATION = 1.2
 
float COA_MARKER_SF = 0.0075
 
 coaMarkerColorIval
 
 coaMarkerPos
 
 cqEntries
 No reason this shouldn't work with Maya cam on if not self.useMayaCamControls and (deltaT <= 0.25) or (deltaF <= 1): More...
 
 fLockCOA
 
 keyEvents
 self.keyEvents = [ ['c', self.centerCamIn, 0.5], ['f', self.fitOnWidget], # Note: This function doesn't work as intended ['h', self.homeCam], ['shift-v', self.toggleMarkerVis], ['m', self.moveToFit], # Note: This function doesn't work as intended; the object dissappears and screen flashes ['n', self.pickNextCOA], ['u', self.orbitUprightCam], ['shift-u', self.uprightCam], [repr(1), self.spawnMoveToView, 1], [repr(2), self.spawnMoveToView, 2], [repr(3), self.spawnMoveToView, 3], [repr(4), self.spawnMoveToView, 4], [repr(5), self.spawnMoveToView, 5], [repr(6), self.spawnMoveToView, 6], [repr(7), self.spawnMoveToView, 7], [repr(8), self.spawnMoveToView, 8], ['9', self.swingCamAboutWidget, -90.0, t], ['0', self.swingCamAboutWidget, 90.0, t], ['‘’, self.removeManipulateCameraTask], ['=', self.zoomCam, 0.5, t], ['+', self.zoomCam, 0.5, t], ['-', self.zoomCam, -2.0, t], ['_', self.zoomCam, -2.0, t], ] More...
 
 lastView
 
 lockRoll
 
 manipulateCameraInterval
 
 manipulateCameraTask
 
 nullHitPointCount
 
 orthoViewRoll
 
 perspCollPlane
 
 perspCollPlane2
 
 startF
 
 startT
 
 useMayaCamControls
 
 Y_AXIS = Vec3(0, 1, 0)
 

Function Documentation

◆ centerCam()

def direct.directtools.DirectCameraControl.centerCam (   self)

◆ centerCamIn()

def direct.directtools.DirectCameraControl.centerCamIn (   self,
  t 
)

◆ centerCamNow()

def direct.directtools.DirectCameraControl.centerCamNow (   self)

◆ computeCOA()

def direct.directtools.DirectCameraControl.computeCOA (   self,
  entry 
)

◆ disableMouseFly()

def direct.directtools.DirectCameraControl.disableMouseFly (   self)

◆ enableMouseFly()

def direct.directtools.DirectCameraControl.enableMouseFly (   self,
  fKeyEvents = 1 
)

◆ fitOnWidget()

def direct.directtools.DirectCameraControl.fitOnWidget (   self,
  nodePath = 'None Given' 
)

◆ homeCam()

def direct.directtools.DirectCameraControl.homeCam (   self)

◆ HPanYZoomTask()

def direct.directtools.DirectCameraControl.HPanYZoomTask (   self,
  state 
)

◆ HPPanTask()

def direct.directtools.DirectCameraControl.HPPanTask (   self,
  state 
)

◆ lockCOA()

def direct.directtools.DirectCameraControl.lockCOA (   self)

◆ mouseDollyStart()

def direct.directtools.DirectCameraControl.mouseDollyStart (   self,
  modifiers 
)

◆ mouseDollyStop()

def direct.directtools.DirectCameraControl.mouseDollyStop (   self)

◆ mouseFlyStart()

def direct.directtools.DirectCameraControl.mouseFlyStart (   self,
  modifiers 
)

◆ mouseFlyStartTopWin()

def direct.directtools.DirectCameraControl.mouseFlyStartTopWin (   self)

◆ mouseFlyStop()

def direct.directtools.DirectCameraControl.mouseFlyStop (   self)

◆ mouseFlyStopTopWin()

def direct.directtools.DirectCameraControl.mouseFlyStopTopWin (   self)

◆ mouseRollTask()

def direct.directtools.DirectCameraControl.mouseRollTask (   self,
  state 
)

◆ mouseRotateStart()

def direct.directtools.DirectCameraControl.mouseRotateStart (   self,
  modifiers 
)

if base.direct.cameraControl.coaMarker.isHidden(): base.direct.cameraControl.coaMarker.show() else: base.direct.cameraControl.coaMarker.hide()

◆ mouseRotateTask()

def direct.directtools.DirectCameraControl.mouseRotateTask (   self,
  state 
)

◆ moveToFit()

def direct.directtools.DirectCameraControl.moveToFit (   self)

◆ orbitUprightCam()

def direct.directtools.DirectCameraControl.orbitUprightCam (   self)

◆ OrthoTranslateTask()

def direct.directtools.DirectCameraControl.OrthoTranslateTask (   self,
  state 
)

◆ OrthoZoomTask()

def direct.directtools.DirectCameraControl.OrthoZoomTask (   self,
  state 
)

◆ pickNextCOA()

def direct.directtools.DirectCameraControl.pickNextCOA (   self)
Cycle through collision handler entries 

◆ removeManipulateCameraTask()

def direct.directtools.DirectCameraControl.removeManipulateCameraTask (   self)

◆ reparentCam()

def direct.directtools.DirectCameraControl.reparentCam (   self,
  parent 
)

◆ spawnHPanYZoom()

def direct.directtools.DirectCameraControl.spawnHPanYZoom (   self)

◆ spawnHPPan()

def direct.directtools.DirectCameraControl.spawnHPPan (   self)

◆ spawnMouseRollTask()

def direct.directtools.DirectCameraControl.spawnMouseRollTask (   self)

◆ spawnMouseRotateTask()

def direct.directtools.DirectCameraControl.spawnMouseRotateTask (   self)

◆ spawnMoveToView()

def direct.directtools.DirectCameraControl.spawnMoveToView (   self,
  view 
)

◆ spawnOrthoTranslate()

def direct.directtools.DirectCameraControl.spawnOrthoTranslate (   self)

◆ spawnOrthoZoom()

def direct.directtools.DirectCameraControl.spawnOrthoZoom (   self)

◆ spawnXZTranslate()

def direct.directtools.DirectCameraControl.spawnXZTranslate (   self)

◆ spawnXZTranslateOrHPanYZoom()

def direct.directtools.DirectCameraControl.spawnXZTranslateOrHPanYZoom (   self)

◆ spawnXZTranslateOrHPPan()

def direct.directtools.DirectCameraControl.spawnXZTranslateOrHPPan (   self)

◆ stickToWidgetTask()

def direct.directtools.DirectCameraControl.stickToWidgetTask (   self,
  state 
)

◆ swingCamAboutWidget()

def direct.directtools.DirectCameraControl.swingCamAboutWidget (   self,
  degrees,
  t 
)

◆ toggleCOALock()

def direct.directtools.DirectCameraControl.toggleCOALock (   self)

◆ toggleMarkerVis()

def direct.directtools.DirectCameraControl.toggleMarkerVis (   self)

◆ unlockCOA()

def direct.directtools.DirectCameraControl.unlockCOA (   self)

◆ updateCoa()

def direct.directtools.DirectCameraControl.updateCoa (   self,
  ref2point,
  coaDist = None,
  ref = None 
)

◆ updateCoaMarkerSize()

def direct.directtools.DirectCameraControl.updateCoaMarkerSize (   self,
  coaDist = None 
)

◆ updateCoaMarkerSizeOnDeath()

def direct.directtools.DirectCameraControl.updateCoaMarkerSizeOnDeath (   self)

◆ uprightCam()

def direct.directtools.DirectCameraControl.uprightCam (   self)

◆ XZTranslateOrHPanYZoomTask()

def direct.directtools.DirectCameraControl.XZTranslateOrHPanYZoomTask (   self,
  state 
)

◆ XZTranslateOrHPPanTask()

def direct.directtools.DirectCameraControl.XZTranslateOrHPPanTask (   self,
  state 
)

◆ XZTranslateTask()

def direct.directtools.DirectCameraControl.XZTranslateTask (   self,
  state 
)

◆ zoomCam()

def direct.directtools.DirectCameraControl.zoomCam (   self,
  zoomFactor,
  t 
)

Variable Documentation

◆ altDown

altDown

◆ CAM_MOVE_DURATION

float CAM_MOVE_DURATION = 1.2

◆ COA_MARKER_SF

float COA_MARKER_SF = 0.0075

◆ coaMarkerColorIval

coaMarkerColorIval

◆ coaMarkerPos

coaMarkerPos

◆ cqEntries

cqEntries

No reason this shouldn't work with Maya cam on if not self.useMayaCamControls and (deltaT <= 0.25) or (deltaF <= 1):

◆ fLockCOA

fLockCOA

◆ keyEvents

keyEvents

self.keyEvents = [ ['c', self.centerCamIn, 0.5], ['f', self.fitOnWidget], # Note: This function doesn't work as intended ['h', self.homeCam], ['shift-v', self.toggleMarkerVis], ['m', self.moveToFit], # Note: This function doesn't work as intended; the object dissappears and screen flashes ['n', self.pickNextCOA], ['u', self.orbitUprightCam], ['shift-u', self.uprightCam], [repr(1), self.spawnMoveToView, 1], [repr(2), self.spawnMoveToView, 2], [repr(3), self.spawnMoveToView, 3], [repr(4), self.spawnMoveToView, 4], [repr(5), self.spawnMoveToView, 5], [repr(6), self.spawnMoveToView, 6], [repr(7), self.spawnMoveToView, 7], [repr(8), self.spawnMoveToView, 8], ['9', self.swingCamAboutWidget, -90.0, t], ['0', self.swingCamAboutWidget, 90.0, t], ['‘’, self.removeManipulateCameraTask], ['=', self.zoomCam, 0.5, t], ['+', self.zoomCam, 0.5, t], ['-', self.zoomCam, -2.0, t], ['_', self.zoomCam, -2.0, t], ]

◆ lastView

lastView

◆ lockRoll

lockRoll

◆ manipulateCameraInterval

manipulateCameraInterval

◆ manipulateCameraTask

manipulateCameraTask

◆ nullHitPointCount

nullHitPointCount

◆ orthoViewRoll

orthoViewRoll

◆ perspCollPlane

perspCollPlane

◆ perspCollPlane2

perspCollPlane2

◆ startF

startF

◆ startT

startT

◆ useMayaCamControls

useMayaCamControls

◆ Y_AXIS

Y_AXIS = Vec3(0, 1, 0)