Public Member Functions | |
| ObjectImporter (_BBS_3MF_Importer *importer, std::string file_path, std::string obj_path) | |
| ~ObjectImporter () | |
| void | _destroy_object_xml_parser () |
| void | _stop_object_xml_parser (const std::string &msg=std::string()) |
| bool | object_parse_error () const |
| const char * | object_parse_error_message () const |
| bool | _extract_object_from_archive (mz_zip_archive &archive, const mz_zip_archive_file_stat &stat) |
| bool | extract_object_model () |
| bool | _handle_object_start_model (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_model () |
| bool | _handle_object_start_resources (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_resources () |
| bool | _handle_object_start_object (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_object () |
| bool | _handle_object_start_color_group (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_color_group () |
| bool | _handle_object_start_color (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_color () |
| bool | _handle_object_start_mesh (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_mesh () |
| bool | _handle_object_start_vertices (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_vertices () |
| bool | _handle_object_start_vertex (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_vertex () |
| bool | _handle_object_start_triangles (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_triangles () |
| bool | _handle_object_start_triangle (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_triangle () |
| bool | _handle_object_start_components (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_components () |
| bool | _handle_object_start_component (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_component () |
| bool | _handle_object_start_metadata (const char **attributes, unsigned int num_attributes) |
| bool | _handle_object_end_metadata () |
| void | _handle_object_start_model_xml_element (const char *name, const char **attributes) |
| void | _handle_object_end_model_xml_element (const char *name) |
| void | _handle_object_xml_characters (const XML_Char *s, int len) |
Static Public Member Functions | |
| static void XMLCALL | _handle_object_start_model_xml_element (void *userData, const char *name, const char **attributes) |
| static void XMLCALL | _handle_object_end_model_xml_element (void *userData, const char *name) |
| static void XMLCALL | _handle_object_xml_characters (void *userData, const XML_Char *s, int len) |
Public Attributes | |
| IdToCurrentObjectMap | object_list |
| CurrentObject * | current_object {nullptr} |
| std::string | object_path |
| std::string | zip_path |
| _BBS_3MF_Importer * | top_importer {nullptr} |
| XML_Parser | object_xml_parser |
| bool | obj_parse_error { false } |
| std::string | obj_parse_error_message |
| std::string | obj_curr_metadata_name |
| std::string | obj_curr_characters |
| float | object_unit_factor |
| int | object_current_color_group {-1} |
| std::map< int, std::string > | object_group_id_to_color |
| bool | is_bbl_3mf { false } |
|
inline |
References Slic3r::_BBS_3MF_Importer::_BBS_3MF_Importer(), object_path, top_importer, and zip_path.
Referenced by _handle_object_end_model_xml_element(), _handle_object_start_model_xml_element(), and _handle_object_xml_characters().
|
inline |
References _destroy_object_xml_parser().
|
inline |
References object_xml_parser.
Referenced by ~ObjectImporter().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_extract_object_from_archive | ( | mz_zip_archive & | archive, |
| const mz_zip_archive_file_stat & | stat ) |
References _extract_object_from_archive(), _handle_object_end_model_xml_element(), _handle_object_start_model_xml_element(), _handle_object_xml_characters(), object_path, object_xml_parser, and top_importer.
Referenced by _extract_object_from_archive().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_color | ( | ) |
References _handle_object_end_color().
Referenced by _handle_object_end_color(), and _handle_object_end_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_color_group | ( | ) |
References _handle_object_end_color_group().
Referenced by _handle_object_end_color_group(), and _handle_object_end_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_component | ( | ) |
References _handle_object_end_component().
Referenced by _handle_object_end_component(), and _handle_object_end_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_components | ( | ) |
References _handle_object_end_components().
Referenced by _handle_object_end_components(), and _handle_object_end_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_mesh | ( | ) |
References _handle_object_end_mesh().
Referenced by _handle_object_end_mesh(), and _handle_object_end_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_metadata | ( | ) |
References _handle_object_end_metadata(), BBS_3MF_VERSION, BBS_3MF_VERSION1, is_bbl_3mf, and obj_curr_metadata_name.
Referenced by _handle_object_end_metadata(), and _handle_object_end_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_model | ( | ) |
References _handle_object_end_model().
Referenced by _handle_object_end_model(), and _handle_object_end_model_xml_element().
| void Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_model_xml_element | ( | const char * | name | ) |
References _handle_object_end_color(), _handle_object_end_color_group(), _handle_object_end_component(), _handle_object_end_components(), _handle_object_end_mesh(), _handle_object_end_metadata(), _handle_object_end_model(), _handle_object_end_model_xml_element(), _handle_object_end_object(), _handle_object_end_resources(), _handle_object_end_triangle(), _handle_object_end_triangles(), _handle_object_end_vertex(), _handle_object_end_vertices(), _stop_object_xml_parser(), COLOR_GROUP_TAG, COLOR_TAG, COMPONENT_TAG, COMPONENTS_TAG, MESH_TAG, METADATA_TAG, MODEL_TAG, OBJECT_TAG, object_xml_parser, RESOURCES_TAG, TRIANGLE_TAG, TRIANGLES_TAG, VERTEX_TAG, and VERTICES_TAG.
Referenced by _extract_object_from_archive(), _handle_object_end_model_xml_element(), and _handle_object_end_model_xml_element().
|
static |
References ObjectImporter(), and _handle_object_end_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_object | ( | ) |
References _handle_object_end_object(), current_object, Slic3r::_BBS_3MF_Importer::CurrentObject::geometry, Slic3r::_BBS_3MF_Importer::CurrentObject::id, is_bbl_3mf, Slic3r::_BBS_3MF_Importer::CurrentObject::model_object_idx, Slic3r::_BBS_3MF_Importer::CurrentObject::name, Slic3r::_BBS_3MF_Importer::Component::object_id, object_list, object_path, OBJECT_UUID_SUFFIX, top_importer, and Slic3r::_BBS_3MF_Importer::CurrentObject::uuid.
Referenced by _handle_object_end_model_xml_element(), and _handle_object_end_object().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_resources | ( | ) |
References _handle_object_end_resources().
Referenced by _handle_object_end_model_xml_element(), and _handle_object_end_resources().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_triangle | ( | ) |
References _handle_object_end_triangle().
Referenced by _handle_object_end_model_xml_element(), and _handle_object_end_triangle().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_triangles | ( | ) |
References _handle_object_end_triangles().
Referenced by _handle_object_end_model_xml_element(), and _handle_object_end_triangles().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_vertex | ( | ) |
References _handle_object_end_vertex().
Referenced by _handle_object_end_model_xml_element(), and _handle_object_end_vertex().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_end_vertices | ( | ) |
References _handle_object_end_vertices().
Referenced by _handle_object_end_model_xml_element(), and _handle_object_end_vertices().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_color | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_color(), bbs_get_attribute_value_string(), COLOR_ATTR, object_current_color_group, and object_group_id_to_color.
Referenced by _handle_object_start_color(), and _handle_object_start_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_color_group | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_color_group(), bbs_get_attribute_value_int(), ID_ATTR, and object_current_color_group.
Referenced by _handle_object_start_color_group(), and _handle_object_start_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_component | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_component(), bbs_get_attribute_value_int(), bbs_get_attribute_value_string(), bbs_get_transform_from_3mf_specs_string(), current_object, object_path, OBJECTID_ATTR, Slic3r::transform(), and TRANSFORM_ATTR.
Referenced by _handle_object_start_component(), and _handle_object_start_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_components | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_components(), and current_object.
Referenced by _handle_object_start_components(), and _handle_object_start_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_mesh | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_mesh(), and current_object.
Referenced by _handle_object_start_mesh(), and _handle_object_start_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_metadata | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_metadata(), bbs_get_attribute_value_string(), NAME_ATTR, and obj_curr_metadata_name.
Referenced by _handle_object_start_metadata(), and _handle_object_start_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_model | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_model(), bbs_get_attribute_value_string(), bbs_get_unit_factor(), object_unit_factor, and UNIT_ATTR.
Referenced by _handle_object_start_model(), and _handle_object_start_model_xml_element().
| void Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_model_xml_element | ( | const char * | name, |
| const char ** | attributes ) |
References _handle_object_start_color(), _handle_object_start_color_group(), _handle_object_start_component(), _handle_object_start_components(), _handle_object_start_mesh(), _handle_object_start_metadata(), _handle_object_start_model(), _handle_object_start_model_xml_element(), _handle_object_start_object(), _handle_object_start_resources(), _handle_object_start_triangle(), _handle_object_start_triangles(), _handle_object_start_vertex(), _handle_object_start_vertices(), _stop_object_xml_parser(), COLOR_GROUP_TAG, COLOR_TAG, COMPONENT_TAG, COMPONENTS_TAG, MESH_TAG, METADATA_TAG, MODEL_TAG, OBJECT_TAG, object_xml_parser, RESOURCES_TAG, TRIANGLE_TAG, TRIANGLES_TAG, VERTEX_TAG, and VERTICES_TAG.
Referenced by _extract_object_from_archive(), _handle_object_start_model_xml_element(), and _handle_object_start_model_xml_element().
|
static |
References ObjectImporter(), and _handle_object_start_model_xml_element().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_object | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_object(), bbs_get_attribute_value_int(), bbs_get_attribute_value_string(), bbs_is_valid_object_type(), current_object, ID_ATTR, NAME_ATTR, PID_ATTR, PUUID_ATTR, PUUID_LOWER_ATTR, and TYPE_ATTR.
Referenced by _handle_object_start_model_xml_element(), and _handle_object_start_object().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_resources | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_resources().
Referenced by _handle_object_start_model_xml_element(), and _handle_object_start_resources().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_triangle | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_triangle(), bbs_get_attribute_value_charptr(), bbs_get_attribute_value_int(), bbs_get_attribute_value_string(), current_object, CUSTOM_FUZZY_SKIN_ATTR, CUSTOM_SEAM_ATTR, CUSTOM_SUPPORTS_ATTR, FACE_PROPERTY_ATTR, MMU_SEGMENTATION_ATTR, TEXTURE_DISPLACEMENT_ATTRS, Slic3r::TEXTURE_DISPLACEMENT_MAX_LAYERS, V1_ATTR, V2_ATTR, and V3_ATTR.
Referenced by _handle_object_start_model_xml_element(), and _handle_object_start_triangle().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_triangles | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_triangles(), and current_object.
Referenced by _handle_object_start_model_xml_element(), and _handle_object_start_triangles().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_vertex | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_vertex(), bbs_get_attribute_value_float(), current_object, obj_parse_error_message, object_unit_factor, X_ATTR, Y_ATTR, and Z_ATTR.
Referenced by _handle_object_start_model_xml_element(), and _handle_object_start_vertex().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_start_vertices | ( | const char ** | attributes, |
| unsigned int | num_attributes ) |
References _handle_object_start_vertices(), and current_object.
Referenced by _handle_object_start_model_xml_element(), and _handle_object_start_vertices().
| void Slic3r::_BBS_3MF_Importer::ObjectImporter::_handle_object_xml_characters | ( | const XML_Char * | s, |
| int | len ) |
References _handle_object_xml_characters(), and obj_curr_characters.
Referenced by _extract_object_from_archive(), _handle_object_xml_characters(), and _handle_object_xml_characters().
|
static |
References ObjectImporter(), and _handle_object_xml_characters().
|
inline |
References obj_parse_error, obj_parse_error_message, and object_xml_parser.
Referenced by _handle_object_end_model_xml_element(), and _handle_object_start_model_xml_element().
|
inline |
References Slic3r::close_zip_reader(), obj_parse_error, object_path, Slic3r::open_zip_reader(), top_importer, and zip_path.
|
inline |
References obj_parse_error.
|
inline |
References obj_parse_error, obj_parse_error_message, and object_xml_parser.
| CurrentObject* Slic3r::_BBS_3MF_Importer::ObjectImporter::current_object {nullptr} |
Referenced by _handle_object_end_object(), _handle_object_start_component(), _handle_object_start_components(), _handle_object_start_mesh(), _handle_object_start_object(), _handle_object_start_triangle(), _handle_object_start_triangles(), _handle_object_start_vertex(), and _handle_object_start_vertices().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::is_bbl_3mf { false } |
Referenced by _handle_object_end_metadata(), and _handle_object_end_object().
| std::string Slic3r::_BBS_3MF_Importer::ObjectImporter::obj_curr_characters |
Referenced by _handle_object_xml_characters().
| std::string Slic3r::_BBS_3MF_Importer::ObjectImporter::obj_curr_metadata_name |
Referenced by _handle_object_end_metadata(), and _handle_object_start_metadata().
| bool Slic3r::_BBS_3MF_Importer::ObjectImporter::obj_parse_error { false } |
Referenced by _stop_object_xml_parser(), extract_object_model(), object_parse_error(), and object_parse_error_message().
| std::string Slic3r::_BBS_3MF_Importer::ObjectImporter::obj_parse_error_message |
Referenced by _handle_object_start_vertex(), _stop_object_xml_parser(), and object_parse_error_message().
| int Slic3r::_BBS_3MF_Importer::ObjectImporter::object_current_color_group {-1} |
Referenced by _handle_object_start_color(), and _handle_object_start_color_group().
| std::map<int, std::string> Slic3r::_BBS_3MF_Importer::ObjectImporter::object_group_id_to_color |
Referenced by _handle_object_start_color().
| IdToCurrentObjectMap Slic3r::_BBS_3MF_Importer::ObjectImporter::object_list |
Referenced by _handle_object_end_object().
| std::string Slic3r::_BBS_3MF_Importer::ObjectImporter::object_path |
| float Slic3r::_BBS_3MF_Importer::ObjectImporter::object_unit_factor |
Referenced by _handle_object_start_model(), and _handle_object_start_vertex().
| XML_Parser Slic3r::_BBS_3MF_Importer::ObjectImporter::object_xml_parser |
| _BBS_3MF_Importer* Slic3r::_BBS_3MF_Importer::ObjectImporter::top_importer {nullptr} |
Referenced by ObjectImporter(), _extract_object_from_archive(), _handle_object_end_object(), and extract_object_model().
| std::string Slic3r::_BBS_3MF_Importer::ObjectImporter::zip_path |
Referenced by ObjectImporter(), and extract_object_model().