Classes | |
| struct | Component |
| struct | Geometry |
| struct | CurrentObject |
| struct | CurrentConfig |
| struct | Instance |
| struct | Metadata |
| struct | ObjectMetadata |
Public Member Functions | |
| _3MF_Importer () | |
| ~_3MF_Importer () | |
| bool | load_model_from_file (const std::string &filename, Model &model, DynamicPrintConfig &config, ConfigSubstitutionContext &config_substitutions, bool check_version) |
| unsigned int | version () const |
| void | log_errors () |
Protected Member Functions | |
| void | add_error (const std::string &error) |
| void | clear_errors () |
Private Types | |
| typedef std::vector< Component > | ComponentsList |
| typedef std::vector< Metadata > | MetadataList |
| typedef std::map< int, int > | IdToModelObjectMap |
| typedef std::map< int, ComponentsList > | IdToAliasesMap |
| typedef std::vector< Instance > | InstancesList |
| typedef std::map< int, ObjectMetadata > | IdToMetadataMap |
| typedef std::map< int, Geometry > | IdToGeometryMap |
| typedef std::map< int, std::vector< coordf_t > > | IdToLayerHeightsProfileMap |
| typedef std::map< int, t_layer_config_ranges > | IdToLayerConfigRangesMap |
| typedef std::map< int, std::vector< sla::SupportPoint > > | IdToSlaSupportPointsMap |
| typedef std::map< int, std::vector< sla::DrainHole > > | IdToSlaDrainHolesMap |
Private Member Functions | |
| void | _destroy_xml_parser () |
| void | _stop_xml_parser (const std::string &msg=std::string()) |
| bool | parse_error () const |
| const char * | parse_error_message () const |
| bool | _load_model_from_file (const std::string &filename, Model &model, DynamicPrintConfig &config, ConfigSubstitutionContext &config_substitutions) |
| bool | _extract_model_from_archive (mz_zip_archive &archive, const mz_zip_archive_file_stat &stat) |
| void | _extract_layer_heights_profile_config_from_archive (mz_zip_archive &archive, const mz_zip_archive_file_stat &stat) |
| void | _extract_layer_config_ranges_from_archive (mz_zip_archive &archive, const mz_zip_archive_file_stat &stat, ConfigSubstitutionContext &config_substitutions) |
| void | _extract_sla_support_points_from_archive (mz_zip_archive &archive, const mz_zip_archive_file_stat &stat) |
| void | _extract_sla_drain_holes_from_archive (mz_zip_archive &archive, const mz_zip_archive_file_stat &stat) |
| void | _extract_custom_gcode_per_print_z_from_archive (mz_zip_archive &archive, const mz_zip_archive_file_stat &stat) |
| void | _extract_print_config_from_archive (mz_zip_archive &archive, const mz_zip_archive_file_stat &stat, DynamicPrintConfig &config, ConfigSubstitutionContext &subs_context, const std::string &archive_filename) |
| bool | _extract_model_config_from_archive (mz_zip_archive &archive, const mz_zip_archive_file_stat &stat, Model &model) |
| void | _handle_start_model_xml_element (const char *name, const char **attributes) |
| void | _handle_end_model_xml_element (const char *name) |
| void | _handle_model_xml_characters (const XML_Char *s, int len) |
| void | _handle_start_config_xml_element (const char *name, const char **attributes) |
| void | _handle_end_config_xml_element (const char *name) |
| bool | _handle_start_model (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_model () |
| bool | _handle_start_resources (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_resources () |
| bool | _handle_start_object (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_object () |
| bool | _handle_start_mesh (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_mesh () |
| bool | _handle_start_vertices (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_vertices () |
| bool | _handle_start_vertex (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_vertex () |
| bool | _handle_start_triangles (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_triangles () |
| bool | _handle_start_triangle (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_triangle () |
| bool | _handle_start_components (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_components () |
| bool | _handle_start_component (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_component () |
| bool | _handle_start_build (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_build () |
| bool | _handle_start_item (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_item () |
| bool | _handle_start_metadata (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_metadata () |
| bool | _create_object_instance (int object_id, const Transform3d &transform, const bool printable, unsigned int recur_counter) |
| void | _apply_transform (ModelInstance &instance, const Transform3d &transform) |
| bool | _handle_start_config (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_config () |
| bool | _handle_start_config_object (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_config_object () |
| bool | _handle_start_config_volume (const char **attributes, unsigned int num_attributes) |
| bool | _handle_start_config_volume_mesh (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_config_volume () |
| bool | _handle_end_config_volume_mesh () |
| bool | _handle_start_config_metadata (const char **attributes, unsigned int num_attributes) |
| bool | _handle_end_config_metadata () |
| bool | _generate_volumes (ModelObject &object, const Geometry &geometry, const ObjectMetadata::VolumeMetadataList &volumes, ConfigSubstitutionContext &config_substitutions) |
Static Private Member Functions | |
| static void XMLCALL | _handle_start_model_xml_element (void *userData, const char *name, const char **attributes) |
| static void XMLCALL | _handle_end_model_xml_element (void *userData, const char *name) |
| static void XMLCALL | _handle_model_xml_characters (void *userData, const XML_Char *s, int len) |
| static void XMLCALL | _handle_start_config_xml_element (void *userData, const char *name, const char **attributes) |
| static void XMLCALL | _handle_end_config_xml_element (void *userData, const char *name) |
Private Attributes | |
| unsigned int | m_version |
| bool | m_check_version |
| boost::optional< Semver > | m_prusaslicer_generator_version |
| unsigned int | m_fdm_supports_painting_version = 0 |
| unsigned int | m_seam_painting_version = 0 |
| unsigned int | m_mm_painting_version = 0 |
| XML_Parser | m_xml_parser |
| bool | m_parse_error { false } |
| std::string | m_parse_error_message |
| Model * | m_model |
| float | m_unit_factor |
| CurrentObject | m_curr_object |
| IdToModelObjectMap | m_objects |
| IdToAliasesMap | m_objects_aliases |
| InstancesList | m_instances |
| IdToGeometryMap | m_geometries |
| CurrentConfig | m_curr_config |
| IdToMetadataMap | m_objects_metadata |
| IdToLayerHeightsProfileMap | m_layer_heights_profiles |
| IdToLayerConfigRangesMap | m_layer_config_ranges |
| IdToSlaSupportPointsMap | m_sla_support_points |
| IdToSlaDrainHolesMap | m_sla_drain_holes |
| std::string | m_curr_metadata_name |
| std::string | m_curr_characters |
| std::string | m_name |
| std::vector< std::string > | m_errors |
| struct Slic3r::_3MF_Importer::ObjectMetadata |
| Class Members | ||
|---|---|---|
| typedef vector< VolumeMetadata > | VolumeMetadataList | |
| Class Members | ||
|---|---|---|
| MetadataList | metadata | |
| VolumeMetadataList | volumes | |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| Slic3r::_3MF_Importer::_3MF_Importer | ( | ) |
References m_check_version, m_curr_characters, m_curr_metadata_name, m_model, m_name, m_unit_factor, m_version, and m_xml_parser.
Referenced by _extract_model_from_archive(), _handle_end_config_xml_element(), _handle_end_model_xml_element(), _handle_model_xml_characters(), _handle_start_config_xml_element(), and _handle_start_model_xml_element().
| Slic3r::_3MF_Importer::~_3MF_Importer | ( | ) |
References _destroy_xml_parser().
|
private |
References _apply_transform(), Slic3r::ModelInstance::set_transformation(), and Slic3r::transform().
Referenced by _apply_transform(), and _handle_end_model().
|
private |
References _create_object_instance(), Slic3r::_3MF_Base::add_error(), m_instances, m_model, m_objects, m_objects_aliases, Slic3r::_3MF_Importer::Component::object_id, Slic3r::ModelInstance::printable, Slic3r::_3MF_Importer::Component::transform, and Slic3r::transform().
Referenced by _create_object_instance(), and _handle_start_item().
|
private |
References m_xml_parser.
Referenced by ~_3MF_Importer(), _extract_model_config_from_archive(), and _extract_model_from_archive().
|
private |
References _extract_custom_gcode_per_print_z_from_archive().
Referenced by _extract_custom_gcode_per_print_z_from_archive().
|
private |
References _extract_layer_config_ranges_from_archive(), Slic3r::_3MF_Base::add_error(), m_layer_config_ranges, and Slic3r::range().
Referenced by _extract_layer_config_ranges_from_archive().
|
private |
References _extract_layer_heights_profile_config_from_archive(), Slic3r::_3MF_Base::add_error(), and m_layer_heights_profiles.
Referenced by _extract_layer_heights_profile_config_from_archive().
|
private |
References _destroy_xml_parser(), _extract_model_config_from_archive(), _handle_end_config_xml_element(), _handle_start_config_xml_element(), Slic3r::_3MF_Base::add_error(), and m_xml_parser.
Referenced by _extract_model_config_from_archive(), and _load_model_from_file().
|
private |
References _3MF_Importer(), _destroy_xml_parser(), _handle_end_model_xml_element(), _handle_model_xml_characters(), _handle_start_model_xml_element(), Slic3r::_3MF_Base::add_error(), and m_xml_parser.
Referenced by _load_model_from_file().
|
private |
References _extract_print_config_from_archive(), Slic3r::_3MF_Base::add_error(), and Slic3r::ConfigBase::load_from_gcode_string_legacy().
Referenced by _extract_print_config_from_archive().
|
private |
References _extract_sla_drain_holes_from_archive(), Slic3r::_3MF_Base::add_error(), m_sla_drain_holes, and version().
Referenced by _extract_sla_drain_holes_from_archive().
|
private |
References _extract_sla_support_points_from_archive(), Slic3r::_3MF_Base::add_error(), EPSILON, m_sla_support_points, and version().
Referenced by _extract_sla_support_points_from_archive().
|
private |
References _generate_volumes(), Slic3r::_3MF_Base::add_error(), Slic3r::ModelVolume::config, Slic3r::_3MF_Importer::Geometry::custom_seam, Slic3r::_3MF_Importer::Geometry::custom_supports, Slic3r::TriangleMesh::flip_triangles(), Slic3r::_3MF_Importer::Geometry::fuzzy_skin, Slic3r::ModelVolume::fuzzy_skin_facets, Slic3r::ModelVolume::Source::input_file, Slic3r::INVALID, Slic3r::ModelVolume::Source::is_converted_from_inches, Slic3r::ModelVolume::Source::is_converted_from_meters, Slic3r::ModelVolume::is_modifier(), Slic3r::is_precise_seam(), Slic3r::ModelVolume::is_precise_seam(), Slic3r::its_compactify_vertices(), Slic3r::_3MF_Importer::Metadata::key, m_prusaslicer_generator_version, m_version, MATRIX_KEY, Slic3r::ModelVolume::Source::mesh_offset, Slic3r::_3MF_Importer::Geometry::mmu_segmentation, Slic3r::ModelVolume::mmu_segmentation_facets, MODIFIER_KEY, Slic3r::ModelVolume::name, NAME_KEY, Slic3r::ModelVolume::Source::object_idx, Slic3r::PARAMETER_MODIFIER, Slic3r::Semver::parse(), PRECISE_SEAM_CONFIG_PREFIX, PRECISE_SEAM_TYPE_KEY, Slic3r::FacetsAnnotation::reserve(), Slic3r::ModelVolume::seam_facets, Slic3r::ModelConfig::set_deserialize(), Slic3r::FacetsAnnotation::set_triangle_from_string(), Slic3r::ModelVolume::set_type(), Slic3r::FacetsAnnotation::shrink_to_fit(), Slic3r::ModelVolume::source, SOURCE_FILE_KEY, SOURCE_IN_INCHES, SOURCE_IN_METERS, SOURCE_OBJECT_ID_KEY, SOURCE_OFFSET_X_KEY, SOURCE_OFFSET_Y_KEY, SOURCE_OFFSET_Z_KEY, SOURCE_VOLUME_ID_KEY, Slic3r::ModelVolume::supported_facets, Slic3r::ModelVolume::Source::transform, Slic3r::TriangleMesh::transform(), Slic3r::Geometry::transform3d_from_string(), Slic3r::_3MF_Importer::Geometry::triangles, Slic3r::ModelVolume::type_from_string(), Slic3r::type_from_string(), Slic3r::_3MF_Importer::Metadata::value, Slic3r::_3MF_Importer::Geometry::vertices, Slic3r::TriangleMesh::volume(), Slic3r::ModelVolume::Source::volume_idx, and VOLUME_TYPE_KEY.
Referenced by _generate_volumes(), and _load_model_from_file().
|
private |
References _handle_end_build().
Referenced by _handle_end_build(), and _handle_end_model_xml_element().
|
private |
References _handle_end_component().
Referenced by _handle_end_component(), and _handle_end_model_xml_element().
|
private |
References _handle_end_components().
Referenced by _handle_end_components(), and _handle_end_model_xml_element().
|
private |
References _handle_end_config().
Referenced by _handle_end_config(), and _handle_end_config_xml_element().
|
private |
References _handle_end_config_metadata().
Referenced by _handle_end_config_metadata(), and _handle_end_config_xml_element().
|
private |
References _handle_end_config_object().
Referenced by _handle_end_config_object(), and _handle_end_config_xml_element().
|
private |
References _handle_end_config_volume().
Referenced by _handle_end_config_volume(), and _handle_end_config_xml_element().
|
private |
References _handle_end_config_volume_mesh().
Referenced by _handle_end_config_volume_mesh(), and _handle_end_config_xml_element().
|
private |
References _handle_end_config(), _handle_end_config_metadata(), _handle_end_config_object(), _handle_end_config_volume(), _handle_end_config_volume_mesh(), _handle_end_config_xml_element(), _stop_xml_parser(), CONFIG_TAG, m_xml_parser, MESH_TAG, METADATA_TAG, OBJECT_TAG, and VOLUME_TAG.
Referenced by _extract_model_config_from_archive(), _handle_end_config_xml_element(), and _handle_end_config_xml_element().
|
staticprivate |
References _3MF_Importer(), and _handle_end_config_xml_element().
|
private |
References _handle_end_item().
Referenced by _handle_end_item(), and _handle_end_model_xml_element().
|
private |
References _handle_end_mesh().
Referenced by _handle_end_mesh(), and _handle_end_model_xml_element().
|
private |
References _, _handle_end_metadata(), Slic3r::check_painting_version(), FDM_SUPPORTS_PAINTING_VERSION, L, m_check_version, m_curr_characters, m_curr_metadata_name, m_fdm_supports_painting_version, m_mm_painting_version, m_prusaslicer_generator_version, m_seam_painting_version, m_version, MM_PAINTING_VERSION, Slic3r::Semver::parse(), SEAM_PAINTING_VERSION, SLIC3RPE_3MF_VERSION, SLIC3RPE_FDM_SUPPORTS_PAINTING_VERSION, SLIC3RPE_MM_PAINTING_VERSION, SLIC3RPE_SEAM_PAINTING_VERSION, and VERSION_3MF_COMPATIBLE.
Referenced by _handle_end_metadata(), and _handle_end_model_xml_element().
|
private |
References _apply_transform(), _handle_end_model(), Slic3r::_3MF_Base::add_error(), Slic3r::ModelObject::instances, m_instances, m_model, m_name, m_objects, and m_version.
Referenced by _handle_end_model(), and _handle_end_model_xml_element().
|
private |
References _handle_end_build(), _handle_end_component(), _handle_end_components(), _handle_end_item(), _handle_end_mesh(), _handle_end_metadata(), _handle_end_model(), _handle_end_model_xml_element(), _handle_end_object(), _handle_end_resources(), _handle_end_triangle(), _handle_end_triangles(), _handle_end_vertex(), _handle_end_vertices(), _stop_xml_parser(), BUILD_TAG, COMPONENT_TAG, COMPONENTS_TAG, ITEM_TAG, m_xml_parser, MESH_TAG, METADATA_TAG, MODEL_TAG, OBJECT_TAG, RESOURCES_TAG, TRIANGLE_TAG, TRIANGLES_TAG, VERTEX_TAG, and VERTICES_TAG.
Referenced by _extract_model_from_archive(), _handle_end_model_xml_element(), and _handle_end_model_xml_element().
|
staticprivate |
References _3MF_Importer(), and _handle_end_model_xml_element().
|
private |
References _handle_end_object(), Slic3r::_3MF_Base::add_error(), m_curr_object, m_geometries, m_model, m_objects, and m_objects_aliases.
Referenced by _handle_end_model_xml_element(), and _handle_end_object().
|
private |
References _handle_end_resources().
Referenced by _handle_end_model_xml_element(), and _handle_end_resources().
|
private |
References _handle_end_triangle().
Referenced by _handle_end_model_xml_element(), and _handle_end_triangle().
|
private |
References _handle_end_triangles().
Referenced by _handle_end_model_xml_element(), and _handle_end_triangles().
|
private |
References _handle_end_vertex().
Referenced by _handle_end_model_xml_element(), and _handle_end_vertex().
|
private |
References _handle_end_vertices().
Referenced by _handle_end_model_xml_element(), and _handle_end_vertices().
|
private |
References _handle_model_xml_characters(), and m_curr_characters.
Referenced by _extract_model_from_archive(), _handle_model_xml_characters(), and _handle_model_xml_characters().
|
staticprivate |
References _3MF_Importer(), and _handle_model_xml_characters().
|
private |
References _handle_start_build().
Referenced by _handle_start_build(), and _handle_start_model_xml_element().
|
private |
References _handle_start_component(), Slic3r::_3MF_Base::add_error(), get_attribute_value_int(), get_attribute_value_string(), get_transform_from_3mf_specs_string(), m_curr_object, m_objects, m_objects_aliases, OBJECTID_ATTR, Slic3r::transform(), and TRANSFORM_ATTR.
Referenced by _handle_start_component(), and _handle_start_model_xml_element().
|
private |
References _handle_start_components(), and m_curr_object.
Referenced by _handle_start_components(), and _handle_start_model_xml_element().
|
private |
References _handle_start_config().
Referenced by _handle_start_config(), and _handle_start_config_xml_element().
|
private |
References _handle_start_config_metadata(), Slic3r::_3MF_Base::add_error(), get_attribute_value_string(), KEY_ATTR, m_curr_config, m_objects_metadata, OBJECT_TYPE, PRECISE_SEAM_CONFIG_PREFIX, PRECISE_SEAM_TYPE_KEY, TYPE_ATTR, VALUE_ATTR, and VOLUME_TYPE.
Referenced by _handle_start_config_metadata(), and _handle_start_config_xml_element().
|
private |
References _handle_start_config_object(), Slic3r::_3MF_Base::add_error(), get_attribute_value_int(), ID_ATTR, m_curr_config, and m_objects_metadata.
Referenced by _handle_start_config_object(), and _handle_start_config_xml_element().
|
private |
References _handle_start_config_volume(), Slic3r::_3MF_Base::add_error(), FIRST_TRIANGLE_ID_ATTR, get_attribute_value_int(), LAST_TRIANGLE_ID_ATTR, m_curr_config, and m_objects_metadata.
Referenced by _handle_start_config_volume(), and _handle_start_config_xml_element().
|
private |
References _handle_start_config_volume_mesh(), Slic3r::_3MF_Base::add_error(), get_attribute_value_int(), m_curr_config, m_objects_metadata, MESH_STAT_BACKWARDS_EDGES, MESH_STAT_DEGENERATED_FACETS, MESH_STAT_EDGES_FIXED, MESH_STAT_FACETS_REMOVED, MESH_STAT_FACETS_RESERVED, and Slic3r::_3MF_Importer::ObjectMetadata::VolumeMetadata::mesh_stats.
Referenced by _handle_start_config_volume_mesh(), and _handle_start_config_xml_element().
|
private |
References _handle_start_config(), _handle_start_config_metadata(), _handle_start_config_object(), _handle_start_config_volume(), _handle_start_config_volume_mesh(), _handle_start_config_xml_element(), _stop_xml_parser(), CONFIG_TAG, m_xml_parser, MESH_TAG, METADATA_TAG, OBJECT_TAG, and VOLUME_TAG.
Referenced by _extract_model_config_from_archive(), _handle_start_config_xml_element(), and _handle_start_config_xml_element().
|
staticprivate |
References _3MF_Importer(), and _handle_start_config_xml_element().
|
private |
References _create_object_instance(), _handle_start_item(), get_attribute_value_bool(), get_attribute_value_int(), get_attribute_value_string(), get_transform_from_3mf_specs_string(), OBJECTID_ATTR, PRINTABLE_ATTR, Slic3r::transform(), and TRANSFORM_ATTR.
Referenced by _handle_start_item(), and _handle_start_model_xml_element().
|
private |
References _handle_start_mesh(), and m_curr_object.
Referenced by _handle_start_mesh(), and _handle_start_model_xml_element().
|
private |
References _handle_start_metadata(), get_attribute_value_string(), m_curr_characters, m_curr_metadata_name, and NAME_ATTR.
Referenced by _handle_start_metadata(), and _handle_start_model_xml_element().
|
private |
References _handle_start_model(), get_attribute_value_string(), get_unit_factor(), m_unit_factor, and UNIT_ATTR.
Referenced by _handle_start_model(), and _handle_start_model_xml_element().
|
private |
References _handle_start_build(), _handle_start_component(), _handle_start_components(), _handle_start_item(), _handle_start_mesh(), _handle_start_metadata(), _handle_start_model(), _handle_start_model_xml_element(), _handle_start_object(), _handle_start_resources(), _handle_start_triangle(), _handle_start_triangles(), _handle_start_vertex(), _handle_start_vertices(), _stop_xml_parser(), BUILD_TAG, COMPONENT_TAG, COMPONENTS_TAG, ITEM_TAG, m_xml_parser, MESH_TAG, METADATA_TAG, MODEL_TAG, OBJECT_TAG, RESOURCES_TAG, TRIANGLE_TAG, TRIANGLES_TAG, VERTEX_TAG, and VERTICES_TAG.
Referenced by _extract_model_from_archive(), _handle_start_model_xml_element(), and _handle_start_model_xml_element().
|
staticprivate |
References _3MF_Importer(), and _handle_start_model_xml_element().
|
private |
References _handle_start_object(), Slic3r::_3MF_Base::add_error(), get_attribute_value_int(), get_attribute_value_string(), ID_ATTR, is_valid_object_type(), m_curr_object, m_model, m_name, NAME_ATTR, and TYPE_ATTR.
Referenced by _handle_start_model_xml_element(), and _handle_start_object().
|
private |
References _handle_start_resources().
Referenced by _handle_start_model_xml_element(), and _handle_start_resources().
|
private |
References _handle_start_triangle(), CUSTOM_SEAM_ATTR, CUSTOM_SUPPORTS_ATTR, FUZZY_SKIN_ATTR, get_attribute_value_int(), get_attribute_value_string(), m_curr_object, MMU_SEGMENTATION_ATTR, V1_ATTR, V2_ATTR, and V3_ATTR.
Referenced by _handle_start_model_xml_element(), and _handle_start_triangle().
|
private |
References _handle_start_triangles(), and m_curr_object.
Referenced by _handle_start_model_xml_element(), and _handle_start_triangles().
|
private |
References _handle_start_vertex(), get_attribute_value_float(), m_curr_object, m_unit_factor, X_ATTR, Y_ATTR, and Z_ATTR.
Referenced by _handle_start_model_xml_element(), and _handle_start_vertex().
|
private |
References _handle_start_vertices(), and m_curr_object.
Referenced by _handle_start_model_xml_element(), and _handle_start_vertices().
|
private |
References _extract_model_config_from_archive(), _extract_model_from_archive(), _generate_volumes(), Slic3r::_3MF_Base::add_error(), Slic3r::ModelObject::add_instance(), Slic3r::Model::add_object(), Slic3r::ModelObject::clear_instances(), Slic3r::close_zip_reader(), Slic3r::ModelObject::config, Slic3r::ModelObject::delete_last_instance(), Slic3r::ModelVolume::Source::input_file, Slic3r::ModelObject::instances, Slic3r::_3MF_Importer::Metadata::key, Slic3r::ModelObject::layer_config_ranges, Slic3r::ModelObject::layer_height_profile, m_geometries, m_layer_config_ranges, m_layer_heights_profiles, m_model, m_name, m_objects, m_objects_metadata, m_sla_drain_holes, m_sla_support_points, m_version, MODEL_CONFIG_FILE, MODEL_EXTENSION, MODEL_FOLDER, Slic3r::MODEL_PART, Slic3r::ModelObject::name, Slic3r::ModelVolume::Source::object_idx, Slic3r::Model::objects, Slic3r::open_zip_reader(), Slic3r::LayerHeightProfile::set(), Slic3r::ModelConfig::set_deserialize(), Slic3r::ModelObject::sla_drain_holes, Slic3r::ModelObject::sla_points_status, Slic3r::ModelObject::sla_support_points, Slic3r::ModelVolume::source, Slic3r::_3MF_Importer::Geometry::triangles, Slic3r::ModelVolume::type(), Slic3r::sla::UserModified, Slic3r::_3MF_Importer::Metadata::value, Slic3r::ModelVolume::Source::volume_idx, and Slic3r::ModelObject::volumes.
Referenced by load_model_from_file().
|
private |
References m_parse_error, m_parse_error_message, and m_xml_parser.
Referenced by _handle_end_config_xml_element(), _handle_end_model_xml_element(), _handle_start_config_xml_element(), and _handle_start_model_xml_element().
|
inlineprotectedinherited |
References m_errors.
Referenced by Slic3r::_3MF_Exporter::_add_build_to_model_stream(), Slic3r::_3MF_Exporter::_add_content_types_file_to_archive(), Slic3r::_3MF_Exporter::_add_layer_config_ranges_file_to_archive(), Slic3r::_3MF_Exporter::_add_layer_height_profile_file_to_archive(), Slic3r::_3MF_Exporter::_add_mesh_to_object_stream(), Slic3r::_3MF_Exporter::_add_model_config_file_to_archive(), Slic3r::_3MF_Exporter::_add_model_file_to_archive(), Slic3r::_3MF_Exporter::_add_object_to_model_stream(), Slic3r::_3MF_Exporter::_add_print_config_file_to_archive(), Slic3r::_3MF_Exporter::_add_relationships_file_to_archive(), Slic3r::_3MF_Exporter::_add_sla_drain_holes_file_to_archive(), Slic3r::_3MF_Exporter::_add_sla_support_points_file_to_archive(), Slic3r::_3MF_Exporter::_add_thumbnail_file_to_archive(), Slic3r::_3MF_Importer::_create_object_instance(), Slic3r::_3MF_Importer::_extract_layer_config_ranges_from_archive(), Slic3r::_3MF_Importer::_extract_layer_heights_profile_config_from_archive(), Slic3r::_3MF_Importer::_extract_model_config_from_archive(), Slic3r::_3MF_Importer::_extract_model_from_archive(), Slic3r::_3MF_Importer::_extract_print_config_from_archive(), Slic3r::_3MF_Importer::_extract_sla_drain_holes_from_archive(), Slic3r::_3MF_Importer::_extract_sla_support_points_from_archive(), Slic3r::_3MF_Importer::_generate_volumes(), Slic3r::_3MF_Importer::_handle_end_model(), Slic3r::_3MF_Importer::_handle_end_object(), Slic3r::_3MF_Importer::_handle_start_component(), Slic3r::_3MF_Importer::_handle_start_config_metadata(), Slic3r::_3MF_Importer::_handle_start_config_object(), Slic3r::_3MF_Importer::_handle_start_config_volume(), Slic3r::_3MF_Importer::_handle_start_config_volume_mesh(), Slic3r::_3MF_Importer::_handle_start_object(), Slic3r::_3MF_Importer::_load_model_from_file(), and Slic3r::_3MF_Exporter::_save_model_to_file().
|
inlineprotectedinherited |
References m_errors.
Referenced by Slic3r::_3MF_Importer::load_model_from_file(), and Slic3r::_3MF_Exporter::save_model_to_file().
| bool Slic3r::_3MF_Importer::load_model_from_file | ( | const std::string & | filename, |
| Model & | model, | ||
| DynamicPrintConfig & | config, | ||
| ConfigSubstitutionContext & | config_substitutions, | ||
| bool | check_version ) |
References _load_model_from_file(), Slic3r::_3MF_Base::clear_errors(), m_check_version, m_curr_characters, m_curr_config, m_curr_metadata_name, m_curr_object, m_fdm_supports_painting_version, m_geometries, m_instances, m_layer_config_ranges, m_layer_heights_profiles, m_mm_painting_version, m_model, m_objects, m_objects_aliases, m_objects_metadata, m_seam_painting_version, m_sla_support_points, m_unit_factor, and m_version.
Referenced by Slic3r::load_3mf().
|
inlineinherited |
References m_errors.
Referenced by Slic3r::load_3mf(), and Slic3r::store_3mf().
|
inlineprivate |
References m_parse_error.
|
inlineprivate |
References m_parse_error, m_parse_error_message, and m_xml_parser.
|
inline |
References m_version.
Referenced by _extract_sla_drain_holes_from_archive(), _extract_sla_support_points_from_archive(), and Slic3r::load_3mf().
|
private |
Referenced by _3MF_Importer(), _handle_end_metadata(), and load_model_from_file().
|
private |
|
private |
|
private |
Referenced by _3MF_Importer(), _handle_end_metadata(), _handle_start_metadata(), and load_model_from_file().
|
private |
|
privateinherited |
Referenced by add_error(), clear_errors(), and log_errors().
|
private |
Referenced by _handle_end_metadata(), and load_model_from_file().
|
private |
Referenced by _handle_end_object(), _load_model_from_file(), and load_model_from_file().
|
private |
Referenced by _create_object_instance(), _handle_end_model(), and load_model_from_file().
|
private |
Referenced by _extract_layer_config_ranges_from_archive(), _load_model_from_file(), and load_model_from_file().
|
private |
|
private |
Referenced by _handle_end_metadata(), and load_model_from_file().
|
private |
|
private |
Referenced by _3MF_Importer(), _handle_end_model(), _handle_start_object(), and _load_model_from_file().
|
private |
|
private |
Referenced by _create_object_instance(), _handle_end_object(), _handle_start_component(), and load_model_from_file().
|
private |
|
private |
Referenced by _stop_xml_parser(), parse_error(), and parse_error_message().
|
private |
Referenced by _stop_xml_parser(), and parse_error_message().
|
private |
Referenced by _generate_volumes(), and _handle_end_metadata().
|
private |
Referenced by _handle_end_metadata(), and load_model_from_file().
|
private |
Referenced by _extract_sla_drain_holes_from_archive(), and _load_model_from_file().
|
private |
Referenced by _extract_sla_support_points_from_archive(), _load_model_from_file(), and load_model_from_file().
|
private |
Referenced by _3MF_Importer(), _handle_start_model(), _handle_start_vertex(), and load_model_from_file().
|
private |
|
private |
Referenced by _3MF_Importer(), _destroy_xml_parser(), _extract_model_config_from_archive(), _extract_model_from_archive(), _handle_end_config_xml_element(), _handle_end_model_xml_element(), _handle_start_config_xml_element(), _handle_start_model_xml_element(), _stop_xml_parser(), and parse_error_message().