|
| | 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 ###.
|
| |
|
| | actionEvents |
| |
| | bb = geom.getBounds() |
| |
| | bbc = bb.makeCopy() |
| |
| | boundingSphereTest = marqueeFrustum.contains(bbc) |
| |
| | constraint = entry.getIntoNodePath().getName() |
| |
| | currEditTypes = editTypes |
| |
| | defaultSkipFlags |
| | ['.
|
| |
| | deltaNearX = coaCenter[0] - base.direct.dr.nearVec[0] |
| |
| | entry = base.direct.iRay.pickGeom(skipFlags = skipFlags) |
| |
| | fAllowMarquee |
| |
| int | fAllowSelectionOnly |
| |
| | fGridSnap |
| |
| int | fHitInit = 1 |
| |
| | fll = Point3(min[0], max[1], min[2]) |
| |
| | flr = Point3(max[0], max[1], min[2]) |
| |
| int | fManip = 1 |
| |
| int | fMovable |
| |
| int | fMultiView |
| |
| | frontViewWidget = ObjectHandles('frontViewWidget') |
| |
| int | fScaleInit = 1 |
| |
| int | fScaleInit1 = 1 |
| |
| int | fScaling1D = 0: |
| |
| int | fScaling3D = 0 |
| |
| int | fSetCoa = 1 - self.fSetCoa |
| |
| | ful = Point3(min[0], max[1], max[2]) |
| |
| | fur = max |
| |
| | fWidgetTop = self.widgetCheck('top?') |
| |
| | hitPt = 0 |
| |
| | hitPtDist |
| |
| | hitPtScale = self.objectHandles.getMat().xformVec(self.hitPtScale) |
| |
| | initScale = base.direct.widget.getScale() |
| |
| | initScaleMag = Vec3(self.objectHandles.getAxisIntersectPt(self.constraint[:1])).length() |
| |
| | lastCrankAngle = getCrankAngle(self.rotationCenter) |
| |
| | leftViewWidget = ObjectHandles('leftViewWidget') |
| |
| | manipulationStart = allowSelectionOnly |
| |
| | manipulationStop |
| |
| | marquee |
| |
| tuple | marqueeInfo = (startX, startY, endX, endY) |
| |
| | max = Point3(0) |
| |
| | min = Point3(0) |
| |
| str | mode |
| |
| | moveDir = None |
| |
| | nll = min |
| |
| | nlr = Point3(max[0], min[1], min[2]) |
| |
| | nodePath = findTaggedNodePath(geom) |
| | elif (skipFlags & SKIP_BACKFACE) and base.direct.iRay.isEntryBackfacing():
|
| |
| | nul = Point3(min[0], min[1], max[2]) |
| |
| | nur = Point3(max[0], min[1], max[2]) |
| |
| | optionalSkipFlags |
| |
| | origScale = base.direct.widget.getScale() |
| |
| str | rotateAxis = self.constraint[:1] |
| |
| | rotationCenter = getScreenXY(base.direct.widget) |
| |
| | switchToMoveMode = None |
| |
| | tbb = BoundingHexahedron(fll, flr, fur, ful, nll, nlr, nur, nul) |
| |
| | tightBoundTest = marqueeFrustum.contains(tbb) |
| |
| | tMat = Mat4(geom.getMat()) |
| |
| | topViewWidget = ObjectHandles('topViewWidget') |
| |
| | unmovableTagList |
| |
| | useSeparateScaleHandles = self.constraint[2:] |
| |
| list | widgetList = [self.topViewWidget, self.frontViewWidget, self.leftViewWidget, self.objectHandles] |
| |
| bool | worldSpaceManip = True |
| |
| | xlateSF = Vec3(vWidget2Camera).length() |
| |
['.
', self.objectHandles.multiplyScalingFactorBy, 2.0], ['>', self.objectHandles.multiplyScalingFactorBy, 2.0], [',', self.objectHandles.multiplyScalingFactorBy, 0.5], ['<', self.objectHandles.multiplyScalingFactorBy, 0.5],