Exemple #1
0
        private void AddNode(fancyModelMesh.Block Block)
        {
            TreeNode       tNode = new TreeNode();
            ToolWindowBase tBase = null;

            if (Block is fancyModelMesh.VertexBlock)
            {
                tBase = new VertexEditor(tNode, Block);
            }
            else if (Block is fancyModelMesh.IndexBlock)
            {
                tBase = new IndexEditor(tNode, Block);
            }
            else if (Block is fancyModelMesh.SubsetBlock)
            {
                tBase = new SubsetEditor(tNode, Block);
            }
            else if (Block is fancyModelMesh.MaterialBlock)
            {
                tBase = new MaterialEditor(tNode, Block);
            }
            else if (Block is fancyModelMesh.BoundingBoxBlock)
            {
                tBase = new BoundingBoxEditor(tNode, Block);
            }
            else if (Block is fancyModelMesh.UnknownBlock)
            {
                tBase = new UserDataEditor(tNode, Block);
            }

            tNode.Tag = tBase;
            LabelTreeView.Nodes.Add(tNode);
        }
Exemple #2
0
        private void AddNode(fancyModelMesh.Block Block)
        {
            TreeNode tNode = new TreeNode();
            ToolWindowBase tBase = null;

            if (Block is fancyModelMesh.VertexBlock)
                tBase = new VertexEditor(tNode, Block);
            else if (Block is fancyModelMesh.IndexBlock)
                tBase = new IndexEditor(tNode, Block);
            else if (Block is fancyModelMesh.SubsetBlock)
                tBase = new SubsetEditor(tNode, Block);
            else if (Block is fancyModelMesh.MaterialBlock)
                tBase = new MaterialEditor(tNode, Block);
            else if (Block is fancyModelMesh.BoundingBoxBlock)
                tBase = new BoundingBoxEditor(tNode, Block);
            else if (Block is fancyModelMesh.UnknownBlock)
                tBase = new UserDataEditor(tNode, Block);

            tNode.Tag = tBase;
            LabelTreeView.Nodes.Add(tNode);
        }