Esempio n. 1
0
 public static void notifyMeshReady()
 {
     if (StructureARPlugin.StructureEvent != null)
     {
         StructureARPlugin.StructureEvent(new object(), new StructureARPluginEventArgs(StructureARPluginEvent.ScannedMeshReady));
     }
 }
Esempio n. 2
0
    public static void setCameraProjectionMatrix(IntPtr pointer)
    {
        float[] matrix = new float[16];

        Marshal.Copy(pointer, matrix, 0, 16);

        projectionMatrix.m00 = matrix[0];
        projectionMatrix.m10 = matrix[1];
        projectionMatrix.m20 = matrix[2];
        projectionMatrix.m30 = matrix[3];

        projectionMatrix.m01 = matrix[4];
        projectionMatrix.m11 = matrix[5];
        projectionMatrix.m21 = matrix[6];
        projectionMatrix.m31 = matrix[7];

        projectionMatrix.m02 = matrix[8];
        projectionMatrix.m12 = matrix[9];
        projectionMatrix.m22 = matrix[10];
        projectionMatrix.m32 = matrix[11];

        projectionMatrix.m03 = matrix[12];
        projectionMatrix.m13 = matrix[13];
        projectionMatrix.m23 = matrix[14];
        projectionMatrix.m33 = matrix[15];

        if (StructureARPlugin.StructureEvent != null)
        {
            StructureARPlugin.StructureEvent(new object(), new StructureARPluginEventArgs(StructureARPluginEvent.UpdateProjectionMatrix));
        }
    }
Esempio n. 3
0
 public static void notifySensorNeedsCharging()
 {
     if (StructureARPlugin.StructureEvent != null)
     {
         StructureARPlugin.StructureEvent(new object(), new StructureARPluginEventArgs(StructureARPluginEvent.SensorNeedsCharging));
     }
 }
Esempio n. 4
0
 public static void notifyCameraAccessRequired()
 {
     if (StructureARPlugin.StructureEvent != null)
     {
         StructureARPlugin.StructureEvent(new object(), new StructureARPluginEventArgs(StructureARPluginEvent.CameraAccessRequired));
     }
 }
Esempio n. 5
0
 public static void notifySensorDisConnected()
 {
     if (StructureARPlugin.StructureEvent != null)
     {
         StructureARPlugin.StructureEvent(new object(), new StructureARPluginEventArgs(StructureARPluginEvent.SensorDisconnected));
     }
 }
Esempio n. 6
0
 public static void notifyTrackingStatus(bool trackingOK)
 {
     if (StructureARPlugin.StructureEvent != null)
     {
         if (trackingOK)
         {
             StructureARPlugin.StructureEvent(new object(), new StructureARPluginEventArgs(StructureARPluginEvent.TrackingFound));
         }
         else
         {
             StructureARPlugin.StructureEvent(new object(), new StructureARPluginEventArgs(StructureARPluginEvent.TrackingLost));
         }
     }
 }