Esempio n. 1
0
        public void Save(System.IO.StreamWriter sw)
        {
            sw.WriteLine("MARKER_POINT_SETTINGS");
            sw.WriteLine("MarkerID," + myMarkerID.ToString());
            sw.WriteLine("SeenFromMarkerID," + mySeenFromMarkerID.ToString());
            sw.WriteLine("ActualMarkerID," + myActualMarkerID.ToString());
            if (myVerticalVect != null)
            {
                sw.WriteLine("VerticalVectorX," + myVerticalVect.X.ToString());
                sw.WriteLine("VerticalVectorY," + myVerticalVect.Y.ToString());
                sw.WriteLine("VerticalVectorZ," + myVerticalVect.Z.ToString());
            }
            sw.WriteLine("BulkheadHeight," + BulkheadHeight.ToString());
            foreach (int myID in mySeenFromMarkerIDs)
            {
                sw.WriteLine("SeenFromMarkerIDs," + myID.ToString());
            }
            sw.WriteLine("Confirmed," + (_confirmed ? "1" : "0"));
            sw.WriteLine("END_MARKER_POINT_SETTINGS");

            myOrigin.Save(sw);
            myEndXAxis.Save(sw);
            myEndYAxis.Save(sw);
            myPoint.Save(sw);
            VX.Save(sw);
            VY.Save(sw);
            VZ.Save(sw);

            sw.WriteLine(myCameraPoints.Count);
            foreach (clsPoint3d p1 in myCameraPoints)
            {
                p1.Save(sw);
            }

            sw.WriteLine(mySeenFromCameraPoints.Count);
            foreach (clsPoint3d p1 in mySeenFromCameraPoints)
            {
                p1.Save(sw);
            }

            sw.WriteLine(myPts1.Count);
            foreach (clsPoint3d p1 in myPts1)
            {
                p1.Save(sw);
            }

            sw.WriteLine(myPts2.Count);
            foreach (clsPoint3d p1 in myPts2)
            {
                p1.Save(sw);
            }

            sw.WriteLine(myPts3.Count);
            foreach (clsPoint3d p1 in myPts3)
            {
                p1.Save(sw);
            }

            sw.WriteLine(GyroData.Count);
            for (int i = 0; i < GyroData.Count; i++)
            {
                GyroData[i].Save(sw);
            }
            sw.WriteLine(LastGyroData.Count);
            for (int i = 0; i < LastGyroData.Count; i++)
            {
                LastGyroData[i].Save(sw);
            }
            sw.WriteLine(AccelData.Count);
            for (int i = 0; i < AccelData.Count; i++)
            {
                AccelData[i].Save(sw);
            }
            sw.WriteLine(LastAccelData.Count);
            for (int i = 0; i < LastAccelData.Count; i++)
            {
                LastAccelData[i].Save(sw);
            }

            sw.WriteLine(myHistory.Count);
            foreach (clsMarkerPoint myHistoricPoint in myHistory)
            {
                myHistoricPoint.Save(sw);
            }
        }