Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Classes | Functions | Variables
direct.directtools.DirectCameraControl Namespace Reference

Classes

class  DirectCameraControl
 

Functions

def centerCam
 
def centerCamIn
 
def centerCamNow
 
def computeCOA
 
def disableMouseFly
 
def enableMouseFly
 
def fitOnWidget
 
def homeCam
 
def HPanYZoomTask
 
def HPPanTask
 
def lockCOA
 
def mouseDollyStart
 
def mouseDollyStop
 
def mouseFlyStart
 
def mouseFlyStartTopWin
 
def mouseFlyStop
 
def mouseFlyStopTopWin
 
def mouseRollTask
 
def mouseRotateStart
 if base.direct.cameraControl.coaMarker.isHidden(): base.direct.cameraControl.coaMarker.show() else: base.direct.cameraControl.coaMarker.hide() More...
 
def mouseRotateTask
 
def moveToFit
 
def orbitUprightCam
 
def OrthoTranslateTask
 
def OrthoZoomTask
 
def pickNextCOA
 
def removeManipulateCameraTask
 
def reparentCam
 
def spawnHPanYZoom
 
def spawnHPPan
 
def spawnMouseRollTask
 
def spawnMouseRotateTask
 
def spawnMoveToView
 
def spawnOrthoTranslate
 
def spawnOrthoZoom
 
def spawnXZTranslate
 
def spawnXZTranslateOrHPanYZoom
 
def spawnXZTranslateOrHPPan
 
def stickToWidgetTask
 
def swingCamAboutWidget
 
def toggleCOALock
 
def toggleMarkerVis
 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...
 
def unlockCOA
 
def updateCoa
 
def updateCoaMarkerSize
 
def updateCoaMarkerSizeOnDeath
 
def uprightCam
 
def XZTranslateOrHPanYZoomTask
 
def XZTranslateOrHPPanTask
 
def XZTranslateTask
 
def zoomCam
 

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
 
 lastView
 
 lockRoll
 
 manipulateCameraInterval
 
 manipulateCameraTask
 
 nullHitPointCount
 
 orthoViewRoll
 
 startF
 
 startT
 
tuple Y_AXIS = Vec3(0, 1, 0)
 

Function Documentation

def direct.directtools.DirectCameraControl.centerCam (   self)
def direct.directtools.DirectCameraControl.centerCamIn (   self,
  t 
)
def direct.directtools.DirectCameraControl.centerCamNow (   self)
def direct.directtools.DirectCameraControl.computeCOA (   self,
  entry 
)
def direct.directtools.DirectCameraControl.disableMouseFly (   self)
def direct.directtools.DirectCameraControl.enableMouseFly (   self,
  fKeyEvents = 1 
)
def direct.directtools.DirectCameraControl.fitOnWidget (   self,
  nodePath = 'None Given' 
)
def direct.directtools.DirectCameraControl.homeCam (   self)
def direct.directtools.DirectCameraControl.HPanYZoomTask (   self,
  state 
)
def direct.directtools.DirectCameraControl.HPPanTask (   self,
  state 
)
def direct.directtools.DirectCameraControl.lockCOA (   self)
def direct.directtools.DirectCameraControl.mouseDollyStart (   self,
  modifiers 
)
def direct.directtools.DirectCameraControl.mouseDollyStop (   self)
def direct.directtools.DirectCameraControl.mouseFlyStart (   self,
  modifiers 
)
def direct.directtools.DirectCameraControl.mouseFlyStartTopWin (   self)
def direct.directtools.DirectCameraControl.mouseFlyStop (   self)
def direct.directtools.DirectCameraControl.mouseFlyStopTopWin (   self)
def direct.directtools.DirectCameraControl.mouseRollTask (   self,
  state 
)
def direct.directtools.DirectCameraControl.mouseRotateStart (   self,
  modifiers 
)

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

def direct.directtools.DirectCameraControl.mouseRotateTask (   self,
  state 
)
def direct.directtools.DirectCameraControl.moveToFit (   self)
def direct.directtools.DirectCameraControl.orbitUprightCam (   self)
def direct.directtools.DirectCameraControl.OrthoTranslateTask (   self,
  state 
)
def direct.directtools.DirectCameraControl.OrthoZoomTask (   self,
  state 
)
def direct.directtools.DirectCameraControl.pickNextCOA (   self)
Cycle through collision handler entries 
def direct.directtools.DirectCameraControl.removeManipulateCameraTask (   self)
def direct.directtools.DirectCameraControl.reparentCam (   self,
  parent 
)
def direct.directtools.DirectCameraControl.spawnHPanYZoom (   self)
def direct.directtools.DirectCameraControl.spawnHPPan (   self)
def direct.directtools.DirectCameraControl.spawnMouseRollTask (   self)
def direct.directtools.DirectCameraControl.spawnMouseRotateTask (   self)
def direct.directtools.DirectCameraControl.spawnMoveToView (   self,
  view 
)
def direct.directtools.DirectCameraControl.spawnOrthoTranslate (   self)
def direct.directtools.DirectCameraControl.spawnOrthoZoom (   self)
def direct.directtools.DirectCameraControl.spawnXZTranslate (   self)
def direct.directtools.DirectCameraControl.spawnXZTranslateOrHPanYZoom (   self)
def direct.directtools.DirectCameraControl.spawnXZTranslateOrHPPan (   self)
def direct.directtools.DirectCameraControl.stickToWidgetTask (   self,
  state 
)
def direct.directtools.DirectCameraControl.swingCamAboutWidget (   self,
  degrees,
  t 
)
def direct.directtools.DirectCameraControl.toggleCOALock (   self)
def direct.directtools.DirectCameraControl.toggleMarkerVis (   self)

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], ]

def direct.directtools.DirectCameraControl.unlockCOA (   self)
def direct.directtools.DirectCameraControl.updateCoa (   self,
  ref2point,
  coaDist = None,
  ref = None 
)
def direct.directtools.DirectCameraControl.updateCoaMarkerSize (   self,
  coaDist = None 
)
def direct.directtools.DirectCameraControl.updateCoaMarkerSizeOnDeath (   self)
def direct.directtools.DirectCameraControl.uprightCam (   self)
def direct.directtools.DirectCameraControl.XZTranslateOrHPanYZoomTask (   self,
  state 
)
def direct.directtools.DirectCameraControl.XZTranslateOrHPPanTask (   self,
  state 
)
def direct.directtools.DirectCameraControl.XZTranslateTask (   self,
  state 
)
def direct.directtools.DirectCameraControl.zoomCam (   self,
  zoomFactor,
  t 
)

Variable Documentation

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):

fLockCOA
lastView
lockRoll
manipulateCameraInterval
manipulateCameraTask
nullHitPointCount
orthoViewRoll
startF
startT
tuple Y_AXIS = Vec3(0, 1, 0)