Panda3D
|
Classes | |
class | DirectManipulationControl |
class | ObjectHandles |
Functions | |
def | addTag (self, tag) |
def | disableManipulation (self, allowSelectionOnly=False) |
def | disableWidgetMove (self) |
def | drawBox (lines, center, sideLength) |
def | drawMarquee (self, startX, startY) |
def | enableManipulation (self) |
def | enableWidgetMove (self) |
def | followSelectedNodePathTask (self, state) |
def | getEditTypes (self, objects) |
def | gridSnapping (self, nodePath, offset) |
def | manipulateObject (self) |
def | manipulateObjectCleanup (self) |
def | manipulateObjectTask (self, state) |
def | manipulationStart (self, modifiers) |
def | manipulationStop (self) |
def | plantSelectedNodePath (self) |
Utility functions ##. More... | |
def | removeManipulateObjectTask (self) |
def | removeTag (self, tag) |
def | rotate1D (self, state) |
def | rotate2D (self, state) |
def | rotateAboutViewVector (self, state) |
def | scale1D (self, state) |
def | scale3D (self, state) |
def | scaleWidget (self, factor) |
def | spawnFollowSelectedNodePathTask (self) |
def | spawnManipulateObjectTask (self) |
def | supportMultiView (self) |
def | switchToLocalSpaceMode (self) |
def | switchToMoveMode (self, state) |
def | switchToWorldSpaceMode (self) |
def | toggleObjectHandlesMode (self) |
def | watchMarqueeTask (self, state) |
def | watchMouseTask (self, state) |
def | widgetCheck (self, type) |
def | xlate1D (self, state) |
WIDGET MANIPULATION METHODS ###. More... | |
def | xlate2D (self, state) |
def | xlateCamXY (self, state) |
def | xlateCamXZ (self, state) |
FREE MANIPULATION METHODS ###. More... | |
def direct.directtools.DirectManipulation.addTag | ( | self, | |
tag | |||
) |
def direct.directtools.DirectManipulation.disableManipulation | ( | self, | |
allowSelectionOnly = False |
|||
) |
def direct.directtools.DirectManipulation.disableWidgetMove | ( | self | ) |
def direct.directtools.DirectManipulation.drawBox | ( | lines, | |
center, | |||
sideLength | |||
) |
def direct.directtools.DirectManipulation.drawMarquee | ( | self, | |
startX, | |||
startY | |||
) |
def direct.directtools.DirectManipulation.enableManipulation | ( | self | ) |
def direct.directtools.DirectManipulation.enableWidgetMove | ( | self | ) |
def direct.directtools.DirectManipulation.followSelectedNodePathTask | ( | self, | |
state | |||
) |
def direct.directtools.DirectManipulation.getEditTypes | ( | self, | |
objects | |||
) |
def direct.directtools.DirectManipulation.gridSnapping | ( | self, | |
nodePath, | |||
offset | |||
) |
def direct.directtools.DirectManipulation.manipulateObject | ( | self | ) |
def direct.directtools.DirectManipulation.manipulateObjectCleanup | ( | self | ) |
def direct.directtools.DirectManipulation.manipulateObjectTask | ( | self, | |
state | |||
) |
def direct.directtools.DirectManipulation.manipulationStart | ( | self, | |
modifiers | |||
) |
def direct.directtools.DirectManipulation.manipulationStop | ( | self | ) |
def direct.directtools.DirectManipulation.plantSelectedNodePath | ( | self | ) |
Utility functions ##.
Move selected object to intersection point of cursor on scene
def direct.directtools.DirectManipulation.removeManipulateObjectTask | ( | self | ) |
def direct.directtools.DirectManipulation.removeTag | ( | self, | |
tag | |||
) |
def direct.directtools.DirectManipulation.rotate1D | ( | self, | |
state | |||
) |
def direct.directtools.DirectManipulation.rotate2D | ( | self, | |
state | |||
) |
Virtual trackball rotation of widget
def direct.directtools.DirectManipulation.rotateAboutViewVector | ( | self, | |
state | |||
) |
def direct.directtools.DirectManipulation.scale1D | ( | self, | |
state | |||
) |
def direct.directtools.DirectManipulation.scale3D | ( | self, | |
state | |||
) |
def direct.directtools.DirectManipulation.scaleWidget | ( | self, | |
factor | |||
) |
def direct.directtools.DirectManipulation.spawnFollowSelectedNodePathTask | ( | self | ) |
def direct.directtools.DirectManipulation.spawnManipulateObjectTask | ( | self | ) |
def direct.directtools.DirectManipulation.supportMultiView | ( | self | ) |
def direct.directtools.DirectManipulation.switchToLocalSpaceMode | ( | self | ) |
def direct.directtools.DirectManipulation.switchToMoveMode | ( | self, | |
state | |||
) |
def direct.directtools.DirectManipulation.switchToWorldSpaceMode | ( | self | ) |
def direct.directtools.DirectManipulation.toggleObjectHandlesMode | ( | self | ) |
def direct.directtools.DirectManipulation.watchMarqueeTask | ( | self, | |
state | |||
) |
def direct.directtools.DirectManipulation.watchMouseTask | ( | self, | |
state | |||
) |
def direct.directtools.DirectManipulation.widgetCheck | ( | self, | |
type | |||
) |
def direct.directtools.DirectManipulation.xlate1D | ( | self, | |
state | |||
) |
WIDGET MANIPULATION METHODS ###.
def direct.directtools.DirectManipulation.xlate2D | ( | self, | |
state | |||
) |
def direct.directtools.DirectManipulation.xlateCamXY | ( | self, | |
state | |||
) |
Constrained 2D motion perpendicular to camera's image plane This moves the object in the camera's XY plane if shift is held Moves object toward camera if control is held
def direct.directtools.DirectManipulation.xlateCamXZ | ( | self, | |
state | |||
) |
FREE MANIPULATION METHODS ###.
Constrained 2D motion parallel to the camera's image plane This moves the object in the camera's XZ plane
bb = geom.getBounds() |
bbc = bb.makeCopy() |
boundingSphereTest = marqueeFrustum.contains(bbc) |
constraint |
currEditTypes |
defaultSkipFlags |
['.
', self.objectHandles.multiplyScalingFactorBy, 2.0], ['>', self.objectHandles.multiplyScalingFactorBy, 2.0], [',', self.objectHandles.multiplyScalingFactorBy, 0.5], ['<', self.objectHandles.multiplyScalingFactorBy, 0.5],
deltaNearX |
entry = base.direct.iRay.pickGeom(skipFlags = skipFlags) |
fAllowMarquee |
fAllowSelectionOnly |
fGridSnap |
fHitInit |
fManip |
fMovable |
fMultiView |
frontViewWidget |
fScaleInit |
fScaleInit1 |
fScaling1D |
fScaling3D |
fSetCoa |
fur = max |
fWidgetTop |
hitPtDist |
hitPtScale |
initScale |
initScaleMag |
lastCrankAngle |
leftViewWidget |
marquee |
marqueeInfo |
max = Point3(0) |
min = Point3(0) |
mode |
moveDir |
nll = min |
nodePath = findTaggedNodePath(geom) |
elif (skipFlags & SKIP_BACKFACE) and base.direct.iRay.isEntryBackfacing():
optionalSkipFlags |
origScale |
rotateAxis |
rotationCenter |
tightBoundTest = marqueeFrustum.contains(tbb) |
tMat = Mat4(geom.getMat()) |
topViewWidget |
unmovableTagList |
widgetList |
worldSpaceManip |
xlateSF |