Exemplo n.º 1
0
        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));
            }
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
        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);
            }
        }
Exemplo n.º 5
0
        private void bt_locate_Click(object sender, RoutedEventArgs e)
        {
            var mesh = DataGridUtil.GetSelectedObject <MeshObject>(MeshGrid);

            NetRequest_FlyToMesh(mesh);
        }