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); }
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文件失败!"); } }
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(); } }
private async void OnSaveSelectedClicked(object sender, RoutedEventArgs e) { await PoseFile.Save(this.Actor, this.Skeleton, FileConfig, true); }