Panda3D
|
Classes | |
class | DirectManipulationControl |
class | ObjectHandles |
Functions | |
addTag (self, tag) | |
disableManipulation (self, allowSelectionOnly=False) | |
disableWidgetMove (self) | |
drawBox (lines, center, sideLength) | |
drawMarquee (self, startX, startY) | |
enableManipulation (self) | |
enableWidgetMove (self) | |
followSelectedNodePathTask (self, state) | |
getEditTypes (self, objects) | |
gridSnapping (self, nodePath, offset) | |
manipulateObject (self) | |
manipulateObjectCleanup (self) | |
manipulateObjectTask (self, state) | |
manipulationStart (self, modifiers) | |
manipulationStop (self) | |
plantSelectedNodePath (self) | |
Utility functions ##. | |
removeManipulateObjectTask (self) | |
removeTag (self, tag) | |
rotate1D (self, state) | |
rotate2D (self, state) | |
rotateAboutViewVector (self, state) | |
scale1D (self, state) | |
scale3D (self, state) | |
scaleWidget (self, factor) | |
spawnFollowSelectedNodePathTask (self) | |
spawnManipulateObjectTask (self) | |
supportMultiView (self) | |
switchToLocalSpaceMode (self) | |
switchToMoveMode (self, state) | |
switchToWorldSpaceMode (self) | |
toggleObjectHandlesMode (self) | |
watchMarqueeTask (self, state) | |
watchMouseTask (self, state) | |
widgetCheck (self, type) | |
xlate1D (self, state) | |
WIDGET MANIPULATION METHODS ###. | |
xlate2D (self, state) | |
xlateCamXY (self, state) | |
xlateCamXZ (self, state) | |
FREE MANIPULATION METHODS ###. | |
addTag | ( | self, | |
tag ) |
disableManipulation | ( | self, | |
allowSelectionOnly = False ) |
disableWidgetMove | ( | self | ) |
drawBox | ( | lines, | |
center, | |||
sideLength ) |
drawMarquee | ( | self, | |
startX, | |||
startY ) |
enableManipulation | ( | self | ) |
enableWidgetMove | ( | self | ) |
followSelectedNodePathTask | ( | self, | |
state ) |
getEditTypes | ( | self, | |
objects ) |
gridSnapping | ( | self, | |
nodePath, | |||
offset ) |
manipulateObject | ( | self | ) |
manipulateObjectCleanup | ( | self | ) |
manipulateObjectTask | ( | self, | |
state ) |
manipulationStart | ( | self, | |
modifiers ) |
manipulationStop | ( | self | ) |
plantSelectedNodePath | ( | self | ) |
Utility functions ##.
Move selected object to intersection point of cursor on scene
removeManipulateObjectTask | ( | self | ) |
removeTag | ( | self, | |
tag ) |
rotate1D | ( | self, | |
state ) |
rotate2D | ( | self, | |
state ) |
Virtual trackball rotation of widget
rotateAboutViewVector | ( | self, | |
state ) |
scale1D | ( | self, | |
state ) |
scale3D | ( | self, | |
state ) |
scaleWidget | ( | self, | |
factor ) |
spawnFollowSelectedNodePathTask | ( | self | ) |
spawnManipulateObjectTask | ( | self | ) |
supportMultiView | ( | self | ) |
switchToLocalSpaceMode | ( | self | ) |
switchToMoveMode | ( | self, | |
state ) |
switchToWorldSpaceMode | ( | self | ) |
toggleObjectHandlesMode | ( | self | ) |
watchMarqueeTask | ( | self, | |
state ) |
watchMouseTask | ( | self, | |
state ) |
widgetCheck | ( | self, | |
type ) |
xlate1D | ( | self, | |
state ) |
WIDGET MANIPULATION METHODS ###.
xlate2D | ( | self, | |
state ) |
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
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 |
hitPt |
hitPtDist |
hitPtScale |
initScale |
initScaleMag |
lastCrankAngle |
leftViewWidget |
manipRef |
manipulationStart |
manipulationStop |
marquee |
marqueeInfo |
max = Point3(0) |
min = Point3(0) |
mode |
moveDir |
nll = min |
nodePath = findTaggedNodePath(geom) |
optionalSkipFlags |
origScale |
rotateAxis |
rotationCenter |
switchToMoveMode |
tightBoundTest = marqueeFrustum.contains(tbb) |
tMat = Mat4(geom.getMat()) |
topViewWidget |
unmovableTagList |
widgetList |
worldSpaceManip |
xlateSF |