示例#1
0
文件: Exe.cs 项目: kryssb/SySal.NET
 public LinkedZone(SySal.Scanning.Plate.IO.OPERA.LinkedZone lz)
 {
     MyTransformation.Transform(lz.Extents.MinX, lz.Extents.MinY, ref m_Extents.MinX, ref m_Extents.MinY);
     MyTransformation.Transform(lz.Extents.MaxX, lz.Extents.MaxY, ref m_Extents.MaxX, ref m_Extents.MaxY);
     MyTransformation.Transform(lz.Center.X, lz.Center.Y, ref m_Center.X, ref m_Center.Y);
     m_Id     = lz.Id;
     m_Tracks = LinkedZone.AccessTracks(lz);
     m_Top    = lz.Top;
     m_Bottom = lz.Bottom;
     foreach (SySal.Scanning.MIPBaseTrack btk in m_Tracks)
     {
         tMIPBaseTrack.ApplyTransformation(btk);
     }
     SySal.Tracking.MIPEmulsionTrack [] mutks;
     mutks = BatchIntercalibrate.LinkedZone.Side.GetTracks(m_Top);
     foreach (SySal.Scanning.MIPIndexedEmulsionTrack mutk in mutks)
     {
         tMIPEmulsionTrack.ApplyTransformation(mutk);
     }
     mutks = BatchIntercalibrate.LinkedZone.Side.GetTracks(m_Bottom);
     foreach (SySal.Scanning.MIPIndexedEmulsionTrack mutk in mutks)
     {
         tMIPEmulsionTrack.ApplyTransformation(mutk);
     }
 }
示例#2
0
文件: Exe.cs 项目: kryssb/SySal.NET
 public static void ApplyTransformation(SySal.Tracking.MIPEmulsionTrack tk)
 {
     SySal.Tracking.MIPEmulsionTrackInfo info = tMIPEmulsionTrack.AccessInfo(tk);
     MyTransformation.Transform(info.Intercept.X, info.Intercept.Y, ref info.Intercept.X, ref info.Intercept.Y);
     MyTransformation.Deform(info.Slope.X, info.Slope.Y, ref info.Slope.X, ref info.Slope.Y);
     SySal.Tracking.Grain [] grains = tMIPEmulsionTrack.AccessGrains(tk);
     if (grains != null)
     {
         foreach (SySal.Tracking.Grain g in grains)
         {
             MyTransformation.Transform(g.Position.X, g.Position.Y, ref g.Position.X, ref g.Position.Y);
         }
     }
 }
示例#3
0
文件: Exe.cs 项目: kryssb/SySal.NET
 public static void ApplyTransformation(SySal.Scanning.MIPBaseTrack tk)
 {
     SySal.Tracking.MIPEmulsionTrackInfo info = tMIPBaseTrack.AccessInfo(tk);
     MyTransformation.Transform(info.Intercept.X, info.Intercept.Y, ref info.Intercept.X, ref info.Intercept.Y);
     MyTransformation.Deform(info.Slope.X, info.Slope.Y, ref info.Slope.X, ref info.Slope.Y);
 }