vrdPerspectiveMatch

class vrdPerspectiveMatch

(Inherits vrdSceneObject)

Class to access camera perspective matching functionality.

Functions

vrdPerspectiveMatch.doRotateLeft()

Rotates the camera clockwise around the pivot by the amount of degrees set with vrdPerspectiveMatch.setRotationStepSize(deg)

vrdPerspectiveMatch.doRotateRight()

Rotates the camera counterclockwise around the pivot by the amount of degrees set with vrdPerspectiveMatch.setRotationStepSize(deg)

vrdPerspectiveMatch.getEnabled()

Returns if perspective matching tool is currently enabled.

Returns:True if perspective matching tool is currently enabled
Return type:bool
vrdPerspectiveMatch.getMagnifyFactor()

Returns the scale factor used for the magnifier.

Returns:Scale factor used for magnifier
Return type:float
vrdPerspectiveMatch.getPivot()

Returns the pivot used for rotations with vrdPerspectiveMatch.doRotateLeft() and vrdPerspectiveMatch.doRotateRight()

Returns:Rotation pivot
Return type:QVector3D
vrdPerspectiveMatch.getRotationStepSize()

Returns the rotation step size used by vrdPerspectiveMatch.doRotateLeft() and vrdPerspectiveMatch.doRotateRight()

Returns:Angle in degrees
Return type:float
vrdPerspectiveMatch.getVanishingLinesType()

Returns the vanishing lines type.

Returns:The vanishing lines type
Return type:vrCameraTypes.VanishingLinesType
vrdPerspectiveMatch.setDefaultLines()

Resets the vanishing lines to default values.

vrdPerspectiveMatch.setEnabled(enabled)

Enables or disables the perspective match tool.

Parameters:enabled (bool) – True if perspective matching tool should be enabled
vrdPerspectiveMatch.setMagnifyFactor(factor)

Sets the magnify factor used for the magnifier shown at the manipulator handles. This does not have an effect on the calculation.

Parameters:factor (float) – The magnify factor
vrdPerspectiveMatch.setPivot(pivot)

Sets the pivot used for rotations with vrdPerspectiveMatch.doRotateLeft() and vrdPerspectiveMatch.doRotateRight()

Parameters:pivot (QVector3D) – The rotation pivot
vrdPerspectiveMatch.setPivotFromNavigator()

Applies the currently used navigation pivot as perspective match pivot.

vrdPerspectiveMatch.setRotationStepSize(deg)

Sets the rotation step size used by vrdPerspectiveMatch.doRotateLeft() and vrdPerspectiveMatch.doRotateRight()

Parameters:deg (float) – Angle in degrees
vrdPerspectiveMatch.setVanishingLinesType(type)

Sets the vanishing lines type defining which vanishing lines should be used (and shown) for perspective matching.

Parameters:type (vrCameraTypes.VanishingLinesType) – The vanishing lines type