![]() |
Prusa Slicer 2.6.0
|
#include <src/libslic3r/Preset.hpp>
Collaboration diagram for Slic3r::ExtruderFilaments:Public Types | |
| typedef std::deque< Filament >::iterator | Iterator |
| typedef std::deque< Filament >::const_iterator | ConstIterator |
Public Member Functions | |
| ExtruderFilaments (PresetCollection *filaments_collection, size_t extruder_id=0, std::string selected_name=std::string()) | |
| Iterator | begin () |
| ConstIterator | begin () const |
| ConstIterator | cbegin () const |
| Iterator | end () |
| ConstIterator | end () const |
| ConstIterator | cend () const |
| bool | empty () const |
| const std::deque< Filament > & | operator() () const |
| Filament & | filament (size_t idx) |
| const Filament & | filament (size_t idx) const |
| bool | select_filament (const std::string &name, bool force=false) |
| void | select_filament (size_t idx) |
| std::string | get_selected_preset_name () const |
| const Preset * | get_selected_preset () const |
| const Filament * | get_selected_filament () const |
| size_t | get_selected_idx () const |
| ExtruderFilaments ()=default | |
| ExtruderFilaments & | operator= (const ExtruderFilaments &other)=default |
Private Member Functions | |
| std::deque< Filament >::iterator | find_filament_internal (const std::string &name) |
| std::deque< Filament >::const_iterator | find_filament_internal (const std::string &name) const |
| void | cache_selected_name () |
| std::string | get_cached_selected_name () const |
| template<typename PreferedCondition > | |
| size_t | first_compatible_idx (PreferedCondition prefered_condition) const |
| size_t | first_compatible_idx () const |
| template<typename PreferedCondition > | |
| const Preset * | first_compatible (PreferedCondition prefered_condition) |
| const Preset * | first_compatible () |
| const std::string & | get_preset_name_by_alias (const std::string &alias) const |
| size_t | update_compatible_internal (const PresetWithVendorProfile &active_printer, const PresetWithVendorProfile *active_print, PresetSelectCompatibleType unselect_if_incompatible) |
| template<typename PreferedCondition > | |
| void | update_compatible (const PresetWithVendorProfile &active_printer, const PresetWithVendorProfile *active_print, PresetSelectCompatibleType select_other_if_incompatible, PreferedCondition prefered_condition) |
| void | update_compatible (const PresetWithVendorProfile &active_printer, const PresetWithVendorProfile *active_print, PresetSelectCompatibleType select_other_if_incompatible) |
Private Attributes | |
| PresetCollection * | m_filaments { nullptr } |
| size_t | m_idx_selected { size_t(-1) } |
| std::deque< Filament > | m_extr_filaments |
| size_t | m_extruder_id |
| std::string | m_cached_selected_name { std::string() } |
Friends | |
| class | PresetBundle |
| typedef std::deque<Filament>::const_iterator Slic3r::ExtruderFilaments::ConstIterator |
| typedef std::deque<Filament>::iterator Slic3r::ExtruderFilaments::Iterator |
| Slic3r::ExtruderFilaments::ExtruderFilaments | ( | PresetCollection * | filaments_collection, |
| size_t | extruder_id = 0, |
||
| std::string | selected_name = std::string() |
||
| ) |
References Slic3r::PresetCollection::get_presets(), Slic3r::PresetCollection::get_selected_preset_name(), m_extr_filaments, m_filaments, and select_filament().
Here is the call graph for this function:
|
default |
|
inline |
References m_extr_filaments.
|
inline |
References m_extr_filaments.
|
inlineprivate |
References get_selected_preset_name(), and m_cached_selected_name.
Here is the call graph for this function:
|
inline |
References m_extr_filaments.
|
inline |
References m_extr_filaments.
|
inline |
References m_extr_filaments.
|
inline |
References m_extr_filaments.
|
inline |
References m_extr_filaments.
|
inline |
References m_extr_filaments.
Referenced by Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::GUI::TabPresetComboBox::update(), and update_compatible_internal().
Here is the caller graph for this function:References filament().
Referenced by filament().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
References Slic3r::lower_bound_by_predicate(), and m_extr_filaments.
Referenced by find_filament_internal(), get_preset_name_by_alias(), and select_filament().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
References find_filament_internal().
Here is the call graph for this function:References first_compatible_idx(), and m_extr_filaments.
Here is the call graph for this function:
|
inlineprivate |
References first_compatible_idx(), and m_extr_filaments.
Referenced by Slic3r::PresetBundle::update_filaments_compatible().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
References first_compatible_idx().
Referenced by first_compatible(), first_compatible(), first_compatible_idx(), and update_compatible().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
References Slic3r::PresetCollection::is_default_suppressed(), Slic3r::Preset::is_visible, m_extr_filaments, m_filaments, Slic3r::PresetCollection::num_default_presets(), and Slic3r::PresetCollection::preset().
Here is the call graph for this function:
|
inlineprivate |
References m_cached_selected_name.
|
private |
References find_filament_internal(), Slic3r::lower_bound_by_predicate(), m_extr_filaments, m_filaments, m_idx_selected, and Slic3r::PresetCollection::map_alias_to_profile_name().
Here is the call graph for this function:References m_extr_filaments, and m_idx_selected.
Referenced by Slic3r::GUI::PlaterPresetComboBox::update(), and Slic3r::PresetBundle::update_filaments_compatible().
Here is the caller graph for this function:
|
inline |
References m_idx_selected.
Referenced by Slic3r::GUI::TabPresetComboBox::update().
Here is the caller graph for this function:References m_extr_filaments, and m_idx_selected.
Referenced by Slic3r::GUI::PlaterPresetComboBox::update().
Here is the caller graph for this function:
|
inline |
References m_extr_filaments, and m_idx_selected.
Referenced by cache_selected_name(), and Slic3r::PresetBundle::update_filaments_compatible().
Here is the caller graph for this function:References m_extr_filaments.
|
default |
| bool Slic3r::ExtruderFilaments::select_filament | ( | const std::string & | name, |
| bool | force = false |
||
| ) |
References find_filament_internal(), m_extr_filaments, m_idx_selected, Slic3r::Preset::remove_suffix_modified(), and select_filament().
Referenced by ExtruderFilaments(), select_filament(), update_compatible(), and Slic3r::PresetBundle::update_filaments_compatible().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_idx_selected.
|
inlineprivate |
References update_compatible().
Here is the call graph for this function:
|
inlineprivate |
References first_compatible_idx(), select_filament(), and update_compatible_internal().
Referenced by update_compatible(), and Slic3r::PresetBundle::update_filaments_compatible().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References Slic3r::Preset::alias, Slic3r::Always, Slic3r::Preset::config, Slic3r::PrintConfigDef::extruder_option_keys(), filament(), Slic3r::PresetCollection::get_preset_with_vendor_profile(), Slic3r::Filament::is_compatible, Slic3r::is_compatible_with_print(), Slic3r::is_compatible_with_printer(), Slic3r::ConfigOption::is_vector(), Slic3r::Preset::is_visible, m_extr_filaments, m_extruder_id, m_filaments, m_idx_selected, Slic3r::Preset::name, Slic3r::Never, Slic3r::PresetCollection::num_default_presets(), Slic3r::OnlyIfWasCompatible, Slic3r::ConfigBase::opt_bool(), Slic3r::ConfigBase::option(), Slic3r::PresetWithVendorProfile::preset, Slic3r::Filament::preset, Slic3r::print_config_def, Slic3r::ConfigOptionVectorBase::set_at(), Slic3r::DynamicConfig::set_key_value(), Slic3r::ConfigOptionVector< T >::size(), Slic3r::VendorProfile::templates_profile, Slic3r::PresetWithVendorProfile::vendor, and Slic3r::Preset::vendor.
Referenced by update_compatible().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
|
private |
Referenced by cache_selected_name(), and get_cached_selected_name().
|
private |
Referenced by ExtruderFilaments(), begin(), begin(), cbegin(), cend(), empty(), end(), end(), filament(), find_filament_internal(), first_compatible(), first_compatible(), first_compatible_idx(), get_preset_name_by_alias(), get_selected_filament(), get_selected_preset(), get_selected_preset_name(), operator()(), select_filament(), and update_compatible_internal().
|
private |
Referenced by update_compatible_internal().
|
private |
Referenced by ExtruderFilaments(), first_compatible_idx(), get_preset_name_by_alias(), and update_compatible_internal().
|
private |