Functions | |
| bool | is_image_file (const boost::filesystem::path &path) |
| void | scan_dir (const boost::filesystem::path &dir, TextureSource source, std::vector< TextureLibraryEntry > &out) |
| void | scan_plugin_textures (std::vector< TextureLibraryEntry > &out) |
| bool | image_has_color (const wxImage &image) |
| bool | encode_color_png_bytes (const wxImage &image, std::vector< unsigned char > &out, std::string &error) |
| bool | encode_gray_png_bytes (const wxImage &image, std::vector< unsigned char > &out, std::string &error) |
| bool | encode_png_bytes (const wxImage &image, std::vector< unsigned char > &out, std::string &error) |
| wxImage | image_from_decoded (const DecodedHeightTexture &image, std::vector< unsigned char > &scratch) |
| std::vector< unsigned char > | read_file_bytes (const std::string &path) |
| bool | is_supported_height_map (const std::vector< unsigned char > &bytes) |
| std::optional< TextureLibraryEntry > | write_user_texture (const std::vector< unsigned char > &bytes, const std::string &stem, std::string &error) |
| std::vector< std::string > | recent_texture_names () |
| void | store_recent_texture_names (std::vector< std::string > names) |
| void | sort_user_textures (std::vector< TextureLibraryEntry > &library) |
| bool | in_user_texture_dir (const std::string &path) |
Variables | |
| std::vector< TextureLibraryEntry > | g_library |
| bool | g_library_scanned = false |
| uint64_t | g_library_scan_generation = 0 |
| std::atomic< uint64_t > | g_library_generation { 0 } |
| const char *const | RECENT_SECTION = "texture_displacement" |
| const char *const | RECENT_KEY = "recent_textures" |
| const size_t | RECENT_MAX = 200 |
| bool Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::encode_color_png_bytes | ( | const wxImage & | image, |
| std::vector< unsigned char > & | out, | ||
| std::string & | error ) |
References _u8L, and encode_color_png_bytes().
Referenced by encode_color_png_bytes(), and encode_png_bytes().
| bool Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::encode_gray_png_bytes | ( | const wxImage & | image, |
| std::vector< unsigned char > & | out, | ||
| std::string & | error ) |
References _u8L, encode_gray_png_bytes(), and Slic3r::png::write_gray_to_file().
Referenced by encode_gray_png_bytes(), and encode_png_bytes().
| bool Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::encode_png_bytes | ( | const wxImage & | image, |
| std::vector< unsigned char > & | out, | ||
| std::string & | error ) |
References encode_color_png_bytes(), encode_gray_png_bytes(), encode_png_bytes(), and image_has_color().
Referenced by encode_png_bytes().
| wxImage Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::image_from_decoded | ( | const DecodedHeightTexture & | image, |
| std::vector< unsigned char > & | scratch ) |
References Slic3r::DecodedHeightTexture::empty(), Slic3r::DecodedHeightTexture::has_color(), Slic3r::DecodedHeightTexture::height, image_from_decoded(), Slic3r::DecodedHeightTexture::pixels, Slic3r::DecodedHeightTexture::rgb, and Slic3r::DecodedHeightTexture::width.
Referenced by image_from_decoded().
| bool Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::image_has_color | ( | const wxImage & | image | ) |
References image_has_color().
Referenced by encode_png_bytes(), and image_has_color().
| bool Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::in_user_texture_dir | ( | const std::string & | path | ) |
References in_user_texture_dir(), and Slic3r::GUI::user_texture_dir().
Referenced by in_user_texture_dir().
| bool Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::is_image_file | ( | const boost::filesystem::path & | path | ) |
References is_image_file().
Referenced by is_image_file(), and scan_dir().
| bool Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::is_supported_height_map | ( | const std::vector< unsigned char > & | bytes | ) |
References Slic3r::png::is_decodable_8bit_png(), and is_supported_height_map().
Referenced by is_supported_height_map().
| std::vector< unsigned char > Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::read_file_bytes | ( | const std::string & | path | ) |
References read_file_bytes().
Referenced by read_file_bytes().
| std::vector< std::string > Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::recent_texture_names | ( | ) |
References RECENT_KEY, RECENT_SECTION, and recent_texture_names().
Referenced by recent_texture_names(), and sort_user_textures().
| void Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::scan_dir | ( | const boost::filesystem::path & | dir, |
| TextureSource | source, | ||
| std::vector< TextureLibraryEntry > & | out ) |
References is_image_file(), and scan_dir().
Referenced by scan_dir().
| void Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::scan_plugin_textures | ( | std::vector< TextureLibraryEntry > & | out | ) |
References Slic3r::collect_resource_texture_files(), Slic3r::PluginResourceTextures::instance(), Slic3r::GUI::Plugin, and scan_plugin_textures().
Referenced by scan_plugin_textures().
| void Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::sort_user_textures | ( | std::vector< TextureLibraryEntry > & | library | ) |
References recent_texture_names(), and sort_user_textures().
Referenced by sort_user_textures().
| void Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::store_recent_texture_names | ( | std::vector< std::string > | names | ) |
References RECENT_KEY, RECENT_MAX, RECENT_SECTION, and store_recent_texture_names().
Referenced by store_recent_texture_names().
| std::optional< TextureLibraryEntry > Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::write_user_texture | ( | const std::vector< unsigned char > & | bytes, |
| const std::string & | stem, | ||
| std::string & | error ) |
References _u8L, g_library, Slic3r::GUI::texture_library(), Slic3r::GUI::user_texture_dir(), and write_user_texture().
Referenced by write_user_texture().
| std::vector<TextureLibraryEntry> Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::g_library |
Referenced by write_user_texture().
| std::atomic<uint64_t> Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::g_library_generation { 0 } |
| uint64_t Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::g_library_scan_generation = 0 |
| bool Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::g_library_scanned = false |
| const char* const Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::RECENT_KEY = "recent_textures" |
Referenced by recent_texture_names(), and store_recent_texture_names().
| const size_t Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::RECENT_MAX = 200 |
Referenced by store_recent_texture_names().
| const char* const Slic3r::GUI::anonymous_namespace{TextureLibrary.cpp}::RECENT_SECTION = "texture_displacement" |
Referenced by recent_texture_names(), and store_recent_texture_names().