FeaturePointVisualizer

public class FeaturePointVisualizer : PNDelegate

A helper class that takes fetch the map of feature points from LibPlacenote and visualize it as a pointcloud periodically when enabled

  • Constructor that appends the the scene as an input and append a node containing the pointcloud geometry in it

    Declaration

    Swift

    public init(inputScene: SCNScene)

    Parameters

    inputScene

    the scene where pointcloud is to rendered

  • A function to enable visualization of the map pointcloud

    Declaration

    Swift

    public func enablePointcloud()
  • A function to disable visualization of the map pointcloud

    Declaration

    Swift

    public func disablePointcloud()
  • A function to reset the pointcloud visualization

    Declaration

    Swift

    public func clearPointCloud()
  • Callback to subscribe to pose measurements from LibPlacenote

    Declaration

    Swift

    public func onPose(_ outputPose: matrix_float4x4, _ arkitPose: matrix_float4x4)

    Parameters

    outputPose

    Inertial pose with respect to the map LibPlacenote is tracking against.

    arkitPose

    Odometry pose with respect to the ARKit coordinate frame that corresponds with ‘outputPose’ in time.

  • Callback to subscribe to mapping session status changes.

    Declaration

    Swift

    public func onStatusChange(_ prevStatus: LibPlacenote.MappingStatus, _ currStatus: LibPlacenote.MappingStatus)

    Parameters

    prevStatus

    Status before the status change

    currStatus

    Current status of the mapping engine

  • Callback to subscribe to the first localization event for loading assets

    Declaration

    Swift

    public func onLocalized()