private void MiFlyTo_Click(object sender, RoutedEventArgs e) { var mesh = DataGridUtil.GetSelectedObject <MeshObject>(MeshGrid); if (mesh != null) { NetManager.Instance.ExecuteCmd(string.Format("flyto {0}", mesh.InstID)); } }
private void MaterialGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var mat = DataGridUtil.GetSelectedObject <MaterialObject>(MaterialGrid); if (mat == null) { return; } ClearAllSelectionsAndHighlightedObjects(); DataGridUtil.MarkAsHighlighted(MaterialGrid, mat, Colors.Chartreuse); HighlightMeshByMaterial(mat, Colors.Chartreuse); HighlightTextureByMaterial(mat, Colors.Chartreuse); }
private void TextureGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var texture = DataGridUtil.GetSelectedObject <TextureObject>(TextureGrid); if (texture == null) { return; } ClearAllSelectionsAndHighlightedObjects(); DataGridUtil.MarkAsHighlighted(TextureGrid, texture, Colors.Chartreuse); var matLst = HighlightMaterialByTexture(texture, Colors.Chartreuse); foreach (var mat in matLst) { HighlightMeshByMaterial(mat, Colors.Chartreuse); } }
private void MeshGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var mesh = DataGridUtil.GetSelectedObject <MeshObject>(MeshGrid); if (mesh == null) { return; } ClearAllSelectionsAndHighlightedObjects(); DataGridUtil.MarkAsHighlighted(MeshGrid, mesh, Colors.Chartreuse); var matLst = HighlightMaterialByMesh(mesh, Colors.Chartreuse); foreach (var mat in matLst) { HighlightTextureByMaterial(mat, Colors.Chartreuse); } }
private void bt_locate_Click(object sender, RoutedEventArgs e) { var mesh = DataGridUtil.GetSelectedObject <MeshObject>(MeshGrid); NetRequest_FlyToMesh(mesh); }