Class PerfTestMultiProvider
This provider is used in performance tests to provide all baseline functionalities while doing no extra work.
It will be used by default if no providers are added to your project, or if there are issues setting up providers.
Inheritance
PerfTestMultiProvider
Syntax
public class PerfTestMultiProvider : MonoBehaviour, IProvidesCameraPose, IProvidesPointCloud, IProvidesPlaneFinding, IProvidesCameraOffset, IProvidesLightEstimation, IProvidesReferencePoints, IProvidesFaceTracking, IFunctionalityProvider
Properties
CameraOffsetMatrix
Declaration
public Matrix4x4 CameraOffsetMatrix { get; }
Property Value
Type |
Description |
Matrix4x4 |
|
Implements
cameraPositionOffset
Declaration
public Vector3 cameraPositionOffset { get; set; }
Property Value
Implements
cameraScale
Declaration
public float cameraScale { get; set; }
Property Value
Implements
cameraYawOffset
Declaration
public float cameraYawOffset { get; set; }
Property Value
Implements
Methods
ApplyInverseOffsetToDirection(Vector3)
Declaration
public Vector3 ApplyInverseOffsetToDirection(Vector3 direction)
Parameters
Type |
Name |
Description |
Vector3 |
direction |
|
Returns
Implements
ApplyInverseOffsetToPose(Pose)
Declaration
public Pose ApplyInverseOffsetToPose(Pose pose)
Parameters
Type |
Name |
Description |
Pose |
pose |
|
Returns
Implements
ApplyInverseOffsetToPosition(Vector3)
Declaration
public Vector3 ApplyInverseOffsetToPosition(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
Implements
ApplyInverseOffsetToRotation(Quaternion)
Declaration
public Quaternion ApplyInverseOffsetToRotation(Quaternion rotation)
Parameters
Type |
Name |
Description |
Quaternion |
rotation |
|
Returns
Type |
Description |
Quaternion |
|
Implements
ApplyOffsetToDirection(Vector3)
Declaration
public Vector3 ApplyOffsetToDirection(Vector3 direction)
Parameters
Type |
Name |
Description |
Vector3 |
direction |
|
Returns
Implements
ApplyOffsetToPose(Pose)
Declaration
public Pose ApplyOffsetToPose(Pose pose)
Parameters
Type |
Name |
Description |
Pose |
pose |
|
Returns
Implements
ApplyOffsetToPosition(Vector3)
Declaration
public Vector3 ApplyOffsetToPosition(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
Implements
ApplyOffsetToRotation(Quaternion)
Declaration
public Quaternion ApplyOffsetToRotation(Quaternion rotation)
Parameters
Type |
Name |
Description |
Quaternion |
rotation |
|
Returns
Type |
Description |
Quaternion |
|
Implements
ConnectSubscriber(Object)
Declaration
public void ConnectSubscriber(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Implements
GetAllReferencePoints(List<MRReferencePoint>)
Declaration
public void GetAllReferencePoints(List<MRReferencePoint> referencePoints)
Parameters
Implements
GetCameraPose()
Declaration
public Pose GetCameraPose()
Returns
Implements
GetFaces(List<IMRFace>)
Declaration
public void GetFaces(List<IMRFace> faces)
Parameters
Implements
GetMaxFaceCount()
Declaration
public int GetMaxFaceCount()
Returns
Implements
GetPlanes(List<MRPlane>)
Declaration
public void GetPlanes(List<MRPlane> planes)
Parameters
Implements
GetPoints()
Declaration
public Dictionary<MarsTrackableId, PointCloudData> GetPoints()
Returns
Implements
LoadProvider()
Declaration
public void LoadProvider()
Implements
StartDetectingPlanes()
Declaration
public void StartDetectingPlanes()
Implements
StartDetectingPoints()
Declaration
public void StartDetectingPoints()
Implements
StartTrackingReferencePoints()
Declaration
public void StartTrackingReferencePoints()
Implements
StopDetectingPlanes()
Declaration
public void StopDetectingPlanes()
Implements
StopDetectingPoints()
Declaration
public void StopDetectingPoints()
Implements
StopTrackingReferencePoints()
Declaration
public void StopTrackingReferencePoints()
Implements
TryAddReferencePoint(Pose, out MarsTrackableId)
Declaration
public bool TryAddReferencePoint(Pose pose, out MarsTrackableId referencePointId)
Parameters
Returns
Implements
TryGetLightEstimation(out MRLightEstimation)
Declaration
public bool TryGetLightEstimation(out MRLightEstimation lightEstimation)
Parameters
Returns
Implements
TryGetReferencePoint(MarsTrackableId, out MRReferencePoint)
Declaration
public bool TryGetReferencePoint(MarsTrackableId id, out MRReferencePoint referencePoint)
Parameters
Returns
Implements
TryRemoveReferencePoint(MarsTrackableId)
Declaration
public bool TryRemoveReferencePoint(MarsTrackableId id)
Parameters
Returns
Implements
UnloadProvider()
Declaration
public void UnloadProvider()
Implements
Events
FaceAdded
Declaration
public event Action<IMRFace> FaceAdded
Event Type
Implements
FaceRemoved
Declaration
public event Action<IMRFace> FaceRemoved
Event Type
Implements
FaceUpdated
Declaration
public event Action<IMRFace> FaceUpdated
Event Type
Implements
lightEstimationUpdated
Declaration
public event Action<MRLightEstimation> lightEstimationUpdated
Event Type
Implements
planeAdded
Declaration
public event Action<MRPlane> planeAdded
Event Type
Implements
planeRemoved
Declaration
public event Action<MRPlane> planeRemoved
Event Type
Implements
planeUpdated
Declaration
public event Action<MRPlane> planeUpdated
Event Type
Implements
pointAdded
Declaration
public event Action<MRReferencePoint> pointAdded
Event Type
Implements
PointCloudUpdated
Declaration
public event Action<Dictionary<MarsTrackableId, PointCloudData>> PointCloudUpdated
Event Type
Implements
pointRemoved
Declaration
public event Action<MRReferencePoint> pointRemoved
Event Type
Implements
pointUpdated
Declaration
public event Action<MRReferencePoint> pointUpdated
Event Type
Implements
poseUpdated
Declaration
public event Action<Pose> poseUpdated
Event Type
Implements
trackingStateChanged
Declaration
public event Action<MRCameraTrackingState> trackingStateChanged
Event Type
Implements