Exemplo n.º 1
0
        private async void ExportPose(TargetService.ActorTableActor actor)
        {
            ActorViewModel?actorVm = actor.GetViewModel();

            if (actorVm == null)
            {
                return;
            }

            SkeletonVisual3d skeletonVm = await PoseService.GetVisual(actorVm);

            await PoseFile.Save(actorVm, skeletonVm);
        }
Exemplo n.º 2
0
 public void SavePose(PosetureInfo poseinfo)
 {
     if (Path == null)
     {
         return;
     }
     if (PoseFile == null)
     {
         PoseFile = new ADFile("Pose", "dat");
         PoseFile.SetFileSizeLimit(PoseFileSize);
         PoseFile.SetPath(new DirectoryInfo(Path));
         PoseFile.Create();
     }
     if (PoseFile.Write(poseinfo.SavePackage()) == 0)
     {
         throw new Exception("创建Pose文件失败!");
     }
 }
Exemplo n.º 3
0
 public void Close()
 {
     Path = null;
     if (GpsFile != null)
     {
         GpsFile.Close();
     }
     if (PoseFile != null)
     {
         PoseFile.Close();
     }
     if (ADFile != null)
     {
         ADFile.Close();
     }
     if (PosFile != null)
     {
         PosFile.Close();
     }
     if (SonarSetting != null)
     {
         SonarSetting.Close();
     }
 }
Exemplo n.º 4
0
 private async void OnSaveSelectedClicked(object sender, RoutedEventArgs e)
 {
     await PoseFile.Save(this.Actor, this.Skeleton, FileConfig, true);
 }