コード例 #1
0
ファイル: fdg.py プロジェクト: worthenmanufacturing/mariner
class FDGHeader(LittleEndianStruct):
    magic: int = StructType.uint32()
    version: int = StructType.uint32()
    layer_count: int = StructType.uint32()
    bottom_count: int = StructType.uint32()
    projector: int = StructType.uint32()
    bottom_layer_count: int = StructType.uint32()
    resolution_x: int = StructType.uint32()
    resolution_y: int = StructType.uint32()
    layer_height_mm: float = StructType.float32()
    layer_exposure: float = StructType.float32()
    bottom_exposure: float = StructType.float32()
    high_res_preview_offset: int = StructType.uint32()
    low_res_preview_offset: int = StructType.uint32()
    layer_defs_offset: int = StructType.uint32()
    print_time: int = StructType.uint32()
    anti_alias_level: int = StructType.uint32()
    light_pwm: int = StructType.uint16()
    bottom_light_pwm: int = StructType.uint16()
    unknown_00: int = StructType.uint32()
    unknown_01: int = StructType.uint32()
    height_mm: float = StructType.float32()
    bed_size_x_mm: float = StructType.float32()
    bed_size_y_mm: float = StructType.float32()
    bed_size_z_mm: float = StructType.float32()
    encryption_seed: int = StructType.uint32()
    anti_alias_depth: int = StructType.uint32()
    unknown_02: int = StructType.uint32()
    volume_milliliters: float = StructType.float32()
    weight_grams: float = StructType.float32()
    cost_dollars: float = StructType.float32()
    machine_offset: int = StructType.uint32()
    machine_size: int = StructType.uint32()
    bottom_light_off_time: float = StructType.float32()
    light_off_time: float = StructType.float32()
    unknown_03: int = StructType.uint32()
    bottom_lift_height: float = StructType.float32()
    bottom_lift_speed: float = StructType.float32()
    lift_height: float = StructType.float32()
    lift_speed: float = StructType.float32()
    retract_speed: float = StructType.float32()
    unknown_04: int = StructType.uint32()
    unknown_05: int = StructType.uint32()
    unknown_06: int = StructType.uint32()
    unknown_07: int = StructType.uint32()
    unknown_08: int = StructType.uint32()
    unknown_09: int = StructType.uint32()
    unknown_10: int = StructType.uint32()
    timestamp: int = StructType.uint32()
    slicer_version_patch: int = StructType.unsigned_char()
    slicer_version_minor: int = StructType.unsigned_char()
    slicer_version_major: int = StructType.unsigned_char()
    slicer_version_release: int = StructType.unsigned_char()
    unknown_11: int = StructType.uint32()
    unknown_12: int = StructType.uint32()
    unknown_13: int = StructType.uint32()
    unknown_14: int = StructType.uint32()
    unknown_15: int = StructType.uint32()
    unknown_16: int = StructType.uint32()
コード例 #2
0
class CTBSlicer(LittleEndianStruct):
    skip_0: int = StructType.uint32()
    skip_1: int = StructType.uint32()
    skip_2: int = StructType.uint32()
    skip_3: int = StructType.uint32()
    skip_4: int = StructType.uint32()
    skip_5: int = StructType.uint32()
    skip_6: int = StructType.uint32()
    machine_offset: int = StructType.uint32()
    machine_size: int = StructType.uint32()
    encryption_mode: int = StructType.uint32()
    time_seconds: int = StructType.uint32()
    unknown_01: int = StructType.uint32()
    version_patch: int = StructType.unsigned_char()
    version_minor: int = StructType.unsigned_char()
    version_major: int = StructType.unsigned_char()
    version_release: int = StructType.unsigned_char()
    unknown_02: int = StructType.uint32()
    unknown_03: int = StructType.uint32()
    unknown_04: float = StructType.float32()
    unknown_05: int = StructType.uint32()
    unknown_06: int = StructType.uint32()
    unknown_07: float = StructType.float32()
コード例 #3
0
class BaseTestStruct:
    char: bytes = StructType.char()
    signed_char: int = StructType.signed_char()
    unsigned_char: int = StructType.unsigned_char()
    boolean: bool = StructType.boolean()
    int16: int = StructType.int16()
    uint16: int = StructType.uint16()
    int32: int = StructType.int32()
    uint32: int = StructType.uint32()
    int64: int = StructType.int64()
    uint64: int = StructType.uint64()
    float32: float = StructType.float32()
    double64: float = StructType.double64()
    chars: bytes = StructType.chars()