meshroom.ui.components.scene3D.Transformations3DHelper

- class meshroom.ui.components.scene3D.Transformations3DHelper
- __init__(*args, **kwargs)
Methods
__init__(*args, **kwargs)blockSignals(self, b)childEvent(self, event)children(self)computeModelMatrixWithEuler(translation, ...)Compute a model matrix from three Vector3D. Args: translation (QVector3D): position in space (x, y, z) rotation (QVector3D): Euler angles in degrees (x, y, z) scale (QVector3D): scale of the object (x, y, z) Returns: QMatrix4x4: corresponding model matrix.
computeScaleUnitFromModelMatrix(axis, ...)Compute the length of the screen projected vector axis unit transformed by the model matrix. Args: axis (QVector3D): chosen axis ((1,0,0) or (0,1,0) or (0,0,1)) modelMat (QMatrix4x4): model matrix used for the transformation camera (QCamera): camera viewing the scene windowSize (QSize): size of the window in pixels Returns: float: length (in pixels).
connect(...)connectNotify(self, signal)convertRotationFromCV2GL(rotation)Convert rotation (euler angles) from Computer Vision to Computer Graphics coordinate system (like opengl).
copyMatrix4x4(mat)Make a deep copy of a QMatrix4x4.
customEvent(self, event)decomposeModelMatrix(modelMat)Decompose a model matrix into individual component. Args: modelMat (QMatrix4x4): model matrix to decompose Returns: QVariant: object containing translation and scale vectors + rotation quaternion.
deleteLater(self)disconnect(...)disconnectNotify(self, signal)dumpObjectInfo(self)dumpObjectTree(self)dynamicPropertyNames(self)emit(self, arg__1, *args)event(self, event)eventFilter(self, watched, event)findChild(self, arg__1[, arg__2])findChildren(...)fromEquirectangular(vector)inherits(self, classname)installEventFilter(self, filterObj)isSignalConnected(self, signal)isWidgetType(self)isWindowType(self)killTimer(self, id)metaObject(self)modelMatrixToMatrices(modelMat)Decompose a model matrix into individual matrices. Args: modelMat (QMatrix4x4): model matrix to decompose Returns: QVariant: object containing position, rotation and scale matrices + rotation quaternion.
moveToThread(self, thread)objectName(self)parent(self)pointFromWorldToScreen(point, camera, windowSize)Compute the Screen point corresponding to a World Point. Args: point (QVector4D): point in world coordinates camera (QCamera): camera viewing the scene windowSize (QSize): size of the Scene3D window Returns: QVector2D: point in screen coordinates.
property(self, name)quaternionToRotationMatrix(q)Return a rotation matrix from a quaternion.
receivers(self, signal)registerUserData()relativeLocalRotate(transformQtInstance, ...)Rotate the QTransform in its local space relatively to an initial state. Args: transformQtInstance (QTransform): reference to the Transform to modify initialPosMat (QMatrix4x4): initial position matrix initialRotQuat (QQuaternion): initial rotation quaternion initialScaleMat (QMatrix4x4): initial scale matrix axis (QVector3D): axis to rotate around degree (int): angle of rotation in degree.
relativeLocalScale(transformQtInstance, ...)Scale the QTransform in its local space relatively to an initial state. Args: transformQtInstance (QTransform): reference to the Transform to modify initialPosMat (QMatrix4x4): initial position matrix initialRotMat (QMatrix4x4): initial rotation matrix initialScaleMat (QMatrix4x4): initial scale matrix scaleVec (QVector3D): vector used for the relative scale.
relativeLocalTranslate(transformQtInstance, ...)Translate the QTransform in its local space relatively to an initial state. Args: transformQtInstance (QTransform): reference to the Transform to modify initialPosMat (QMatrix4x4): initial position matrix initialRotMat (QMatrix4x4): initial rotation matrix initialScaleMat (QMatrix4x4): initial scale matrix translateVec (QVector3D): vector used for the local translation.
removeEventFilter(self, obj)rotationBetweenAandB(A, B)sender(self)senderSignalIndex(self)setObjectName(self, name)setParent(self, parent)setProperty(self, name, value)signalsBlocked(self)startTimer(self, interval[, timerType])thread(self)timerEvent(self, event)toEquirectangular(vector)tr(self, arg__1[, arg__2, arg__3])updatePanorama(euler, ptStart, ptEnd)updatePanoramaInPlane(euler, ptStart, ptEnd)Attributes
destroyedobjectNameChangedstaticMetaObject