被 FARSystemSupportBase 继承.
|
| | DEFINE_AR_DELEGATE_ONE_PARAM (OnTrackableAdded, UARTrackedGeometry *) |
| | Delegate called when an ar item is added to the scene 更多...
|
| |
| | DEFINE_AR_DELEGATE_ONE_PARAM (OnTrackableRemoved, UARTrackedGeometry *) |
| | Delegate called when an ar item is removed from the scene 更多...
|
| |
| | DEFINE_AR_DELEGATE_ONE_PARAM (OnTrackableUpdated, UARTrackedGeometry *) |
| | Delegate called when an ar item is updated 更多...
|
| |
|
virtual UARPin * | FindARPinByComponent (const USceneComponent *Component) const =0 |
| | Given a scene component find the ARPin which it is pinned by, if any.
|
| |
|
virtual bool | IsARAvailable () const =0 |
| | Returns true/false based on whether AR features are available
|
| |
|
virtual bool | OnAddManualEnvironmentCaptureProbe (FVector Location, FVector Extent)=0 |
| | Tells the ARSystem to generate a capture probe at the specified location if supported
|
| |
| virtual bool | OnAddRuntimeCandidateImage (UARSessionConfig *SessionConfig, UTexture2D *CandidateTexture, FString FriendlyName, float PhysicalWidth)=0 |
| | Add candidate image at runtime 更多...
|
| |
|
virtual void | OnARSystemInitialized () |
| | Invoked after the base AR system has been initialized.
|
| |
| virtual TArray< UARPin * > | OnGetAllPins () const =0 |
| |
| virtual TArray< UARTrackedGeometry * > | OnGetAllTrackedGeometries () const =0 |
| |
| virtual FARSessionStatus | OnGetARSessionStatus () const =0 |
| |
| virtual UARTexture * | OnGetARTexture (EARTextureType TextureType) const |
| |
|
virtual TSharedPtr< FARGetCandidateObjectAsyncTask, ESPMode::ThreadSafe > | OnGetCandidateObject (FVector Location, FVector Extent) const =0 |
| | Generates a UARCandidateObject from the point cloud data within the location and its extent using an async task
|
| |
| virtual UARLightEstimate * | OnGetCurrentLightEstimate () const =0 |
| |
| virtual int32 | OnGetNumberOfTrackedFacesSupported () const |
| |
| virtual TArray< FVector > | OnGetPointCloud () const =0 |
| |
| virtual TArray< FARVideoFormat > | OnGetSupportedVideoFormats (EARSessionType SessionType) const =0 |
| |
| virtual TArray< FARPose2D > | OnGetTracked2DPose () const |
| |
| virtual EARTrackingQuality | OnGetTrackingQuality () const =0 |
| |
| virtual EARTrackingQualityReason | OnGetTrackingQualityReason () const =0 |
| |
| virtual EARWorldMappingState | OnGetWorldMappingStatus () const =0 |
| |
| virtual bool | OnIsSceneReconstructionSupported (EARSessionType SessionType, EARSceneReconstruction SceneReconstructionMethod) const |
| |
| virtual bool | OnIsSessionTrackingFeatureSupported (EARSessionType SessionType, EARSessionTrackingFeature SessionTrackingFeature) const |
| |
| virtual bool | OnIsTrackingTypeSupported (EARSessionType SessionType) const =0 |
| |
| virtual TArray< FARTraceResult > | OnLineTraceTrackedObjects (const FVector2D ScreenCoord, EARLineTraceChannels TraceChannels)=0 |
| | Trace all the tracked geometries and determine which have been hit by a ray cast from ScreenCoord. 更多...
|
| |
|
virtual void | OnPauseARSession ()=0 |
| | Stop the AR system but leave its internal state intact.
|
| |
| virtual UARPin * | OnPinComponent (USceneComponent *ComponentToPin, const FTransform &PinToWorldTransform, UARTrackedGeometry *TrackedGeometry=nullptr, const FName DebugName=NAME_None)=0 |
| | Pin an Unreal Component to a location in the world. 更多...
|
| |
| virtual bool | OnPinComponentToARPin (USceneComponent *ComponentToPin, UARPin *Pin)=0 |
| | Pin a component to an existing ARPin. 更多...
|
| |
| virtual void | OnRemovePin (UARPin *PinToRemove)=0 |
| | Given a pin, remove it and stop updating the associated component based on the tracked geometry. 更多...
|
| |
|
virtual TSharedPtr< FARSaveWorldAsyncTask, ESPMode::ThreadSafe > | OnSaveWorld () const =0 |
| | Saves the AR world to a byte array using an async task
|
| |
| virtual void | OnSetAlignmentTransform (const FTransform &InAlignmentTransform)=0 |
| | Set a transform that will align the Tracking Space origin to the World Space origin. 更多...
|
| |
| virtual void | OnStartARSession (UARSessionConfig *SessionConfig)=0 |
| | Start the AR system. 更多...
|
| |
|
virtual void | OnStopARSession ()=0 |
| | Stop the AR system and reset its internal state; this task must succeed.
|
| |
| virtual bool | OnTryGetOrCreatePinForNativeResource (void *InNativeResource, const FString &InPinName, UARPin *&OutPin) |
| | Given the platform specific native resource for a pin, create a pin. 更多...
|
| |
Implement IARSystemSupport for any platform that wants to be an Unreal Augmented Reality System.
e.g. AppleARKit, GoogleARCore. This interface is included as part of the abstract class FARSupportInterface . The functions you must override are coalesced here for clarity.
Augmented Reality Spaces
Engineers working on supporting Augmented Reality must be aware of three spaces:
TrackingSpace : This is the space defined by the underlying AR system (e.g. ARKit, ARCore, etc.) Unreal has no control over the origin of this space.
AlignedTrackingSpace : To regain control of TrackingSpace, Unreal applies the AlignmentTransform so bend TrackingSpace to its will. If you are implementing IARSystemSupport, you will need to understand this transform and apply it accordingly.
WorldSpace : This is Unreal's coordinate system. Coordinates from Tracking Space can be translated into WorldSpace by using the AlignmentTransform and the TrackingToWorldTransform.
* [TrackingSpace]--(AlignmentTransform)-->[AlignedTrackingSpace]--(TrackingToWorld)-->[WorldSpace]
*