The ARHelper class manages ARCamera and ARGameObjects, automating the calculation of ARMatrix and updating the Transform of the specified UpdateTarget.
More...
The ARHelper class manages ARCamera and ARGameObjects, automating the calculation of ARMatrix and updating the Transform of the specified UpdateTarget.
- Calculates the ARMatrix of registered ARGameObjects based on the settings of ARCamera and ARGameObjects.
- Updates the Transform of the specified UpdateTarget (ARCamera or ARGameObject) using the calculated ARMatrix.
- Allows control over automatic execution in LateUpdate() via boolean values.
- Provides functionality to reset ImagePoints and ObjectPoints.
◆ ARUpdateTarget
The type of target to update.
Enumerator |
---|
ARGameObject | |
ARCamera | |
◆ CalculateARMatrix()
virtual void OpenCVForUnity.UnityUtils.Helper.ARHelper.CalculateARMatrix |
( |
| ) |
|
|
virtual |
Calculates the ARMatrix for ARGameObjects based on the settings of the registered ARCamera and ARGameObjects.
◆ Dispose()
virtual void OpenCVForUnity.UnityUtils.Helper.ARHelper.Dispose |
( |
| ) |
|
|
virtual |
◆ Initialize()
virtual void OpenCVForUnity.UnityUtils.Helper.ARHelper.Initialize |
( |
| ) |
|
|
virtual |
Initializes resources and sets the initial values.
◆ LateUpdate()
virtual void OpenCVForUnity.UnityUtils.Helper.ARHelper.LateUpdate |
( |
| ) |
|
|
protectedvirtual |
◆ ResetARGameObjectsImagePointsAndObjectPoints()
virtual void OpenCVForUnity.UnityUtils.Helper.ARHelper.ResetARGameObjectsImagePointsAndObjectPoints |
( |
| ) |
|
|
virtual |
Resets the ImagePoints and ObjectPoints of ARGameObjects.
◆ UpdateTransform()
virtual void OpenCVForUnity.UnityUtils.Helper.ARHelper.UpdateTransform |
( |
| ) |
|
|
virtual |
Updates the Transform of the specified UpdateTarget using the ARMatrix of ARGameObjects.
◆ _arCamera
ARCamera OpenCVForUnity.UnityUtils.Helper.ARHelper._arCamera |
|
protected |
◆ _arGameObjects
List<ARGameObject> OpenCVForUnity.UnityUtils.Helper.ARHelper._arGameObjects |
|
protected |
◆ _calculateARMatrixInLateUpdate
bool OpenCVForUnity.UnityUtils.Helper.ARHelper._calculateARMatrixInLateUpdate = true |
|
protected |
◆ _hasInitDone
bool OpenCVForUnity.UnityUtils.Helper.ARHelper._hasInitDone = false |
|
protected |
Indicates whether this instance has been initialized.
◆ _updateTarget
ARUpdateTarget OpenCVForUnity.UnityUtils.Helper.ARHelper._updateTarget |
|
protected |
◆ _updateTransformInLateUpdate
bool OpenCVForUnity.UnityUtils.Helper.ARHelper._updateTransformInLateUpdate = true |
|
protected |
◆ ARCamera
virtual ARCamera OpenCVForUnity.UnityUtils.Helper.ARHelper.ARCamera |
|
getset |
◆ ARGameObjects
virtual List<ARGameObject> OpenCVForUnity.UnityUtils.Helper.ARHelper.ARGameObjects |
|
getset |
Registered AR game objects.
◆ CalculateARMatrixInLateUpdate
virtual bool OpenCVForUnity.UnityUtils.Helper.ARHelper.CalculateARMatrixInLateUpdate |
|
getset |
◆ UpdateTarget
virtual ARUpdateTarget OpenCVForUnity.UnityUtils.Helper.ARHelper.UpdateTarget |
|
getset |
Specifies the GameObject whose Transform will be updated by the UpdateTransform() method.
◆ UpdateTransformInLateUpdate
virtual bool OpenCVForUnity.UnityUtils.Helper.ARHelper.UpdateTransformInLateUpdate |
|
getset |
The documentation for this class was generated from the following file:
- OpenCVForUnity/Assets/OpenCVForUnity/org/opencv/_unity/Helper/ARHelper/ARHelper.cs