public static TreeViewItem GetTreeItems(IStreamable data, GeometryModel3D[] models) { if (data == null) { return(null); } var t = data.GetType(); if (t == typeof(IfcViewerWrapper)) { return(IfcVisualizer.GetTreeItems((IfcViewerWrapper)data, models)); } else if (t == typeof(Pointcloud)) { return(PointcloudVisualizer.GetTreeItems((Pointcloud)data, models)); } else { return(GetStandardTreeItems(data, models)); } }