![]() |
Prusa Slicer 2.6.0
|
Collaboration diagram for Slic3r::UndoRedo::StackImpl:Private Member Functions | |
| template<typename T > | |
| ObjectID | immutable_object_id (const std::shared_ptr< const T > &ptr) |
| ObjectID | immutable_object_id_impl (const void *ptr) |
| void | collect_garbage () |
| std::vector< Snapshot >::iterator | release_snapshots (std::vector< Snapshot >::iterator begin, std::vector< Snapshot >::iterator end) |
Private Attributes | |
| size_t | m_memory_limit |
| std::map< ObjectID, std::unique_ptr< ObjectHistoryBase > > | m_objects |
| std::map< const void *, ObjectID > | m_shared_ptr_to_object_id |
| std::vector< Snapshot > | m_snapshots |
| size_t | m_active_snapshot_time |
| size_t | m_saved_snapshot_time { size_t(-1) } |
| size_t | m_current_time |
| Selection | m_selection |
|
inline |
|
inline |
References m_active_snapshot_time.
|
inline |
References Slic3r::UndoRedo::Selection::clear(), m_active_snapshot_time, m_current_time, m_objects, m_saved_snapshot_time, m_selection, m_shared_ptr_to_object_id, and m_snapshots.
Here is the call graph for this function:
|
private |
References m_objects, and m_shared_ptr_to_object_id.
Referenced by take_snapshot().
Here is the caller graph for this function:
|
inline |
References m_active_snapshot_time, m_current_time, m_objects, and m_snapshots.
|
inline |
References m_memory_limit.
| bool Slic3r::UndoRedo::StackImpl::has_redo_snapshot | ( | ) | const |
References m_active_snapshot_time, m_snapshots, and valid().
Here is the call graph for this function:| bool Slic3r::UndoRedo::StackImpl::has_undo_snapshot | ( | ) | const |
References m_active_snapshot_time, m_snapshots, and valid().
Here is the call graph for this function:| bool Slic3r::UndoRedo::StackImpl::has_undo_snapshot | ( | size_t | time_to_load | ) | const |
References m_active_snapshot_time, and m_snapshots.
|
inlineprivate |
References immutable_object_id_impl().
Referenced by save_immutable_object().
Here is the call graph for this function:
Here is the caller graph for this function:References Slic3r::ObjectBase::id(), and m_shared_ptr_to_object_id.
Referenced by immutable_object_id().
Here is the call graph for this function:
Here is the caller graph for this function:| std::shared_ptr< const T > Slic3r::UndoRedo::StackImpl::load_immutable_object | ( | const Slic3r::ObjectID | id, |
| bool | optional | ||
| ) |
References m_active_snapshot_time, and m_objects.
Referenced by cereal::load(), and cereal::load_optional().
Here is the caller graph for this function:| T * Slic3r::UndoRedo::StackImpl::load_mutable_object | ( | const Slic3r::ObjectID | id | ) |
Referenced by cereal::load(), cereal::load(), and cereal::load_by_value().
Here is the caller graph for this function:| void Slic3r::UndoRedo::StackImpl::load_mutable_object | ( | const Slic3r::ObjectID | id, |
| T & | target | ||
| ) |
References m_active_snapshot_time, and m_objects.
| void Slic3r::UndoRedo::StackImpl::load_snapshot | ( | size_t | timestamp, |
| Slic3r::Model & | model, | ||
| Slic3r::GUI::GLGizmosManager & | gizmos | ||
| ) |
References Slic3r::Model::clear_materials(), Slic3r::Model::clear_objects(), Slic3r::ObjectBase::id(), m_active_snapshot_time, m_selection, m_snapshots, Slic3r::Model::update_links_bottom_up_recursive(), valid(), and Slic3r::UndoRedo::Selection::volumes_and_instances.
Referenced by redo(), and undo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_active_snapshot_time, and m_saved_snapshot_time.
|
inline |
References m_objects, and memsize().
Referenced by memsize(), release_least_recently_used(), and set_memory_limit().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::UndoRedo::StackImpl::project_modified | ( | ) | const |
References m_active_snapshot_time, m_saved_snapshot_time, m_snapshots, and Slic3r::UndoRedo::snapshot_modifies_project().
Here is the call graph for this function:| bool Slic3r::UndoRedo::StackImpl::redo | ( | Slic3r::Model & | model, |
| Slic3r::GUI::GLGizmosManager & | gizmos, | ||
| size_t | jump_to_time | ||
| ) |
References load_snapshot(), m_active_snapshot_time, m_snapshots, SIZE_MAX, and valid().
Here is the call graph for this function:References Slic3r::UndoRedo::EnteringGizmo, Slic3r::UndoRedo::GizmoAction, Slic3r::UndoRedo::LeavingGizmoNoAction, Slic3r::UndoRedo::LeavingGizmoWithAction, m_active_snapshot_time, m_objects, m_snapshots, and release_snapshots().
Here is the call graph for this function:| void Slic3r::UndoRedo::StackImpl::release_least_recently_used | ( | ) |
References m_active_snapshot_time, m_memory_limit, m_objects, m_shared_ptr_to_object_id, m_snapshots, memsize(), Slic3r::UndoRedo::topmost_snapshot_name, and valid().
Here is the call graph for this function:
|
private |
References m_saved_snapshot_time, m_snapshots, and Slic3r::UndoRedo::snapshot_modifies_project().
Referenced by reduce_noisy_snapshots(), and take_snapshot().
Here is the call graph for this function:
Here is the caller graph for this function:| ObjectID Slic3r::UndoRedo::StackImpl::save_immutable_object | ( | std::shared_ptr< const T > & | object, |
| bool | optional | ||
| ) |
References immutable_object_id(), m_active_snapshot_time, m_current_time, m_objects, and save().
Here is the call graph for this function:References m_active_snapshot_time, m_current_time, m_objects, and Slic3r::UndoRedo::MutableObjectHistory< T >::try_save_timestamp().
Here is the call graph for this function:References m_selection.
|
inline |
References m_snapshots.
References m_snapshots.
| void Slic3r::UndoRedo::StackImpl::take_snapshot | ( | const std::string & | snapshot_name, |
| const Slic3r::Model & | model, | ||
| const Slic3r::GUI::Selection & | selection, | ||
| const Slic3r::GUI::GLGizmosManager & | gizmos, | ||
| const SnapshotData & | snapshot_data | ||
| ) |
References collect_garbage(), Slic3r::GLVolume::geometry_id, Slic3r::GUI::Selection::get_mode(), Slic3r::GUI::Selection::get_volume(), Slic3r::GUI::Selection::get_volume_idxs(), Slic3r::ObjectID::id, Slic3r::ObjectBase::id(), m_active_snapshot_time, m_current_time, m_objects, m_saved_snapshot_time, m_selection, m_snapshots, Slic3r::UndoRedo::Selection::mode, release_snapshots(), Slic3r::UndoRedo::topmost_snapshot_name, valid(), and Slic3r::UndoRedo::Selection::volumes_and_instances.
Referenced by undo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_active_snapshot_time, and m_snapshots.
| bool Slic3r::UndoRedo::StackImpl::undo | ( | Slic3r::Model & | model, |
| const Slic3r::GUI::Selection & | selection, | ||
| Slic3r::GUI::GLGizmosManager & | gizmos, | ||
| const SnapshotData & | snapshot_data, | ||
| size_t | jump_to_time | ||
| ) |
References load_snapshot(), m_active_snapshot_time, m_snapshots, SIZE_MAX, take_snapshot(), and valid().
Here is the call graph for this function:
|
inline |
References m_active_snapshot_time, m_objects, and m_snapshots.
Referenced by has_redo_snapshot(), has_undo_snapshot(), load_snapshot(), redo(), release_least_recently_used(), take_snapshot(), and undo().
Here is the caller graph for this function:
|
private |
Referenced by active_snapshot_time(), clear(), empty(), has_redo_snapshot(), has_undo_snapshot(), has_undo_snapshot(), load_immutable_object(), load_mutable_object(), load_snapshot(), mark_current_as_saved(), project_modified(), redo(), reduce_noisy_snapshots(), release_least_recently_used(), save_immutable_object(), save_mutable_object(), take_snapshot(), temp_snapshot_active(), undo(), and valid().
|
private |
Referenced by clear(), empty(), save_immutable_object(), save_mutable_object(), and take_snapshot().
|
private |
Referenced by get_memory_limit(), release_least_recently_used(), and set_memory_limit().
|
private |
|
private |
Referenced by clear(), mark_current_as_saved(), project_modified(), release_snapshots(), and take_snapshot().
|
private |
Referenced by clear(), load_snapshot(), selection_deserialized(), and take_snapshot().
Referenced by clear(), collect_garbage(), immutable_object_id_impl(), and release_least_recently_used().
|
private |
Referenced by clear(), empty(), has_redo_snapshot(), has_undo_snapshot(), has_undo_snapshot(), load_snapshot(), project_modified(), redo(), reduce_noisy_snapshots(), release_least_recently_used(), release_snapshots(), snapshot(), snapshots(), take_snapshot(), temp_snapshot_active(), undo(), and valid().