three.MF.V3.Descriptors.Import

 1from MF.V3.Descriptors.Project import Project as MF_V3_Descriptors_Project_Project
 2from enum import Enum
 3from typing import List
 4
 5
 6class Import:
 7
 8    """
 9     Import scan descriptor.
10    """
11    class Error(Enum):
12
13        """
14         Import error codes.
15        """
16        Unspecified = "Unspecified"  # The error is unspecified.
17        FileNotSupported = "FileNotSupported"  # The file format is not supported.
18        CannotReadFile = "CannotReadFile"  # The file format is supported but cannot be read.
19        MeshIsEmpty = "MeshIsEmpty"  # The imported mesh has no faces.
20        NotEnoughStorage = "NotEnoughStorage"  # There is not enough filesystem memory to store the mesh.
21
22    class Imported:
23
24        """
25         A file that was successfully imported to the project.
26        """
27        def __init__(self, file: str):
28            # The file name.
29            self.file = file
30
31    class Ignored:
32
33        """
34         A file that failed to be imported to the project.
35        """
36        def __init__(self, file: str, error: 'Import.Error'):
37            # The file name.
38            self.file = file
39            # The import error code.
40            self.error = error
41
42    def __init__(self, groups: MF_V3_Descriptors_Project_Project.Group, imported: List['Imported'] = None, ignored: List['Ignored'] = None):
43        # The updated project group tree.
44        self.groups = groups
45        # The list of successfully imported files.
46        self.imported = imported
47        # The list of ignored files.
48        self.ignored = ignored
class Import:
 7class Import:
 8
 9    """
10     Import scan descriptor.
11    """
12    class Error(Enum):
13
14        """
15         Import error codes.
16        """
17        Unspecified = "Unspecified"  # The error is unspecified.
18        FileNotSupported = "FileNotSupported"  # The file format is not supported.
19        CannotReadFile = "CannotReadFile"  # The file format is supported but cannot be read.
20        MeshIsEmpty = "MeshIsEmpty"  # The imported mesh has no faces.
21        NotEnoughStorage = "NotEnoughStorage"  # There is not enough filesystem memory to store the mesh.
22
23    class Imported:
24
25        """
26         A file that was successfully imported to the project.
27        """
28        def __init__(self, file: str):
29            # The file name.
30            self.file = file
31
32    class Ignored:
33
34        """
35         A file that failed to be imported to the project.
36        """
37        def __init__(self, file: str, error: 'Import.Error'):
38            # The file name.
39            self.file = file
40            # The import error code.
41            self.error = error
42
43    def __init__(self, groups: MF_V3_Descriptors_Project_Project.Group, imported: List['Imported'] = None, ignored: List['Ignored'] = None):
44        # The updated project group tree.
45        self.groups = groups
46        # The list of successfully imported files.
47        self.imported = imported
48        # The list of ignored files.
49        self.ignored = ignored

Import scan descriptor.

Import( groups: MF.V3.Descriptors.Project.Project.Group, imported: List[Import.Imported] = None, ignored: List[Import.Ignored] = None)
43    def __init__(self, groups: MF_V3_Descriptors_Project_Project.Group, imported: List['Imported'] = None, ignored: List['Ignored'] = None):
44        # The updated project group tree.
45        self.groups = groups
46        # The list of successfully imported files.
47        self.imported = imported
48        # The list of ignored files.
49        self.ignored = ignored
groups
imported
ignored
class Import.Error(enum.Enum):
12    class Error(Enum):
13
14        """
15         Import error codes.
16        """
17        Unspecified = "Unspecified"  # The error is unspecified.
18        FileNotSupported = "FileNotSupported"  # The file format is not supported.
19        CannotReadFile = "CannotReadFile"  # The file format is supported but cannot be read.
20        MeshIsEmpty = "MeshIsEmpty"  # The imported mesh has no faces.
21        NotEnoughStorage = "NotEnoughStorage"  # There is not enough filesystem memory to store the mesh.

Import error codes.

Unspecified = <Error.Unspecified: 'Unspecified'>
FileNotSupported = <Error.FileNotSupported: 'FileNotSupported'>
CannotReadFile = <Error.CannotReadFile: 'CannotReadFile'>
MeshIsEmpty = <Error.MeshIsEmpty: 'MeshIsEmpty'>
NotEnoughStorage = <Error.NotEnoughStorage: 'NotEnoughStorage'>
class Import.Imported:
23    class Imported:
24
25        """
26         A file that was successfully imported to the project.
27        """
28        def __init__(self, file: str):
29            # The file name.
30            self.file = file

A file that was successfully imported to the project.

Import.Imported(file: str)
28        def __init__(self, file: str):
29            # The file name.
30            self.file = file
file
class Import.Ignored:
32    class Ignored:
33
34        """
35         A file that failed to be imported to the project.
36        """
37        def __init__(self, file: str, error: 'Import.Error'):
38            # The file name.
39            self.file = file
40            # The import error code.
41            self.error = error

A file that failed to be imported to the project.

Import.Ignored(file: str, error: Import.Error)
37        def __init__(self, file: str, error: 'Import.Error'):
38            # The file name.
39            self.file = file
40            # The import error code.
41            self.error = error
file
error