public NativeSession(IntPtr sessionHandle, IntPtr frameHandle)
        {
            SessionHandle      = sessionHandle;
            FrameHandle        = frameHandle;
            m_TrackableManager = new TrackableManager(this);

            AnchorApi                 = new AnchorApi(this);
            AugmentedImageApi         = new AugmentedImageApi(this);
            AugmentedImageDatabaseApi = new AugmentedImageDatabaseApi(this);
            CameraApi                 = new CameraApi(this);
            CameraMetadataApi         = new CameraMetadataApi(this);
            FrameApi         = new FrameApi(this);
            HitTestApi       = new HitTestApi(this);
            ImageApi         = new ImageApi(this);
            LightEstimateApi = new LightEstimateApi(this);
            PlaneApi         = new PlaneApi(this);
            PointApi         = new PointApi(this);
            PointCloudApi    = new PointCloudApi(this);
            PoseApi          = new PoseApi(this);
            SessionApi       = new SessionApi(this);
            SessionConfigApi = new SessionConfigApi(this);
            TrackableApi     = new TrackableApi(this);
            TrackableListApi = new TrackableListApi(this);

#if !UNITY_EDITOR
            if (!s_ReportedEngineType)
            {
                SessionApi.ReportEngineType();
                s_ReportedEngineType = true;
            }
#endif
        }
Exemple #2
0
        public NativeSession(IntPtr sessionHandle, IntPtr frameHandle)
        {
            m_SessionHandle    = sessionHandle;
            m_FrameHandle      = frameHandle;
            m_TrackableManager = new TrackableManager(this);

            AnchorApi         = new AnchorApi(this);
            CameraApi         = new CameraApi(this);
            CameraMetadataApi = new CameraMetadataApi(this);
            FrameApi          = new FrameApi(this);
            HitTestApi        = new HitTestApi(this);
            LightEstimateApi  = new LightEstimateApi(this);
            PlaneApi          = new PlaneApi(this);
            PointApi          = new PointApi(this);
            PointCloudApi     = new PointCloudApi(this);
            PoseApi           = new PoseApi(this);
            SessionApi        = new SessionApi(this);
            SessionConfigApi  = new SessionConfigApi(this);
            TrackableApi      = new TrackableApi(this);
            TrackableListApi  = new TrackableListApi(this);
        }
Exemple #3
0
        public NativeSession(IntPtr sessionHandle, IntPtr frameHandle)
        {
            IsDestroyed        = false;
            SessionHandle      = sessionHandle;
            FrameHandle        = frameHandle;
            _pointCloudManager = new PointCloudManager(this);
            _trackableManager  = new TrackableManager(this);

            AnchorApi                 = new AnchorApi(this);
            AugmentedFaceApi          = new AugmentedFaceApi(this);
            AugmentedImageApi         = new AugmentedImageApi(this);
            AugmentedImageDatabaseApi = new AugmentedImageDatabaseApi(this);
            CameraApi                 = new CameraApi(this);
            CameraConfigApi           = new CameraConfigApi(this);
            CameraConfigFilterApi     = new CameraConfigFilterApi(this);
            CameraConfigListApi       = new CameraConfigListApi(this);
            CameraMetadataApi         = new CameraMetadataApi(this);
            FrameApi           = new FrameApi(this);
            HitTestApi         = new HitTestApi(this);
            ImageApi           = new ImageApi(this);
            LightEstimateApi   = new LightEstimateApi(this);
            PlaneApi           = new PlaneApi(this);
            PointApi           = new PointApi(this);
            PointCloudApi      = new PointCloudApi(this);
            PoseApi            = new PoseApi(this);
            RecordingConfigApi = new RecordingConfigApi(this);
            TrackApi           = new TrackApi(this);
            TrackDataApi       = new TrackDataApi(this);
            TrackDataListApi   = new TrackDataListApi(this);
            SessionApi         = new SessionApi(this);
            SessionConfigApi   = new SessionConfigApi(this);
            TrackableApi       = new TrackableApi(this);
            TrackableListApi   = new TrackableListApi(this);

#if !UNITY_EDITOR
            // Engine type is per session. Hence setting it for each
            // native session.
            SessionApi.ReportEngineType();
#endif
        }