Example #1
0
        private void LoadLog(string content)
        {
            var spl = content.Split('|');

            var splKey    = spl[0].Split(',');
            var readedKey = new Point3D(ToDoubleArray(splKey));

            var splTemp = spl[1].Split(',');
            var splData = ToDoubleArray(splTemp);

            var splGaze    = Indexing(splData, 0, 3);
            var readedGaze = new Point3D(splGaze);

            var splTrans    = Indexing(splData, 3, 6);
            var readedTrans = new Point3D(splTrans);

            var splRot    = Indexing(splData, 6, 9);
            var readedRot = new Point3D(splRot);

            var readedPushData = new CalibratingPushData
                                 (
                new FaceRect(new Rect(), null)
            {
                UnitPerMM = UnitPerMM,
                GazeInfo  = new EyeGazeInfo()
                {
                    Vector = readedGaze
                },
                LandmarkTransform = readedTrans,
                LandmarkRotation  = readedRot
            }
                                 );

            Data.Add(readedKey, readedPushData);
        }
Example #2
0
 public void Push(CalibratingPushData data)
 {
     if (IsStarted)
     {
         lastData = data;
     }
 }