AoMModelEditor.GrnUi.LoadMeshUI C# (CSharp) Метод

LoadMeshUI() публичный Метод

public LoadMeshUI ( ) : void
Результат void
        public void LoadMeshUI()
        {
            this.Plugin.grnObjectListView.Columns.Clear();
            OLVColumn nameCol = new OLVColumn("Name", "Name");
            nameCol.Width = 100;
            nameCol.IsEditable = false;
            this.Plugin.grnObjectListView.Columns.Add(nameCol);

            OLVColumn vertCountCol = new OLVColumn("Vertex Count", "Vertices.Count");
            vertCountCol.Width = 75;
            vertCountCol.IsEditable = false;
            this.Plugin.grnObjectListView.Columns.Add(vertCountCol);

            OLVColumn faceCountCol = new OLVColumn("Face Count", "Faces.Count");
            faceCountCol.Width = 70;
            faceCountCol.IsEditable = false;
            this.Plugin.grnObjectListView.Columns.Add(faceCountCol);
        }

Usage Example

Пример #1
0
        private void grnObjectsTreeListView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.grnObjectsTreeListView.SelectedObject == null)
            {
                return;
            }

            if (this.grnObjectsTreeListView.SelectedObject is GrnBone)
            {
                grn.LoadBoneUI();
            }
            else if (this.grnObjectsTreeListView.SelectedObject is GrnMesh)
            {
                grn.LoadMeshUI();
            }
            else if (this.grnObjectsTreeListView.SelectedObject is GrnMaterial)
            {
                grn.LoadMaterialUI();
            }
            else if (this.grnObjectsTreeListView.SelectedObject is GrnTexture)
            {
                grn.LoadTextureUI();
            }

            this.grnObjectListView.SetObjects(new object[] { this.grnObjectsTreeListView.SelectedObject });
        }