Пример #1
0
    private void ImportDataset()
    {
        DatasetImporterBase importer = null;

        switch (datasetType)
        {
        case DatasetType.Raw:
        {
            importer = new RawDatasetImporter(fileToImport, dimX, dimY, dimZ, DataContentFormat.Int16, 6);
            break;
        }
        }

        VolumeDataset dataset = null;

        if (importer != null)
        {
            dataset = importer.Import();
        }

        if (dataset != null)
        {
            VolumeRenderedObject obj = VolumeObjectFactory.CreateObject(dataset);
        }
        else
        {
            Debug.LogError("Failed to import datset");
        }

        this.Close();
    }
Пример #2
0
    private void ImportDataset()
    {
        DatasetImporterBase importer = null;

        switch (datasetType)
        {
        case DatasetType.Raw:
        {
            importer = new RawDatasetImporter(fileToImport, dimX, dimY, dimZ, DataContentFormat.Int16, 6);
            break;
        }

        case DatasetType.DICOM:
        {
            throw new System.NotImplementedException("TODO: implement support for DICOM files");
        }
        }

        VolumeDataset dataset = null;

        if (importer != null)
        {
            dataset = importer.Import();
        }

        if (dataset != null)
        {
            VolumeRenderedObject obj = VolumeObjectFactory.CreateObject(dataset);
        }
        else
        {
            Debug.LogError("Failed to import datset");
        }

        this.Close();
    }