Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::UndoRedo::Stack Class Reference

#include <src/slic3r/Utils/UndoRedo.hpp>

+ Collaboration diagram for Slic3r::UndoRedo::Stack:

Public Member Functions

 Stack ()
 
 ~Stack ()
 
void clear ()
 
bool empty () const
 
void set_memory_limit (size_t memsize)
 
size_t get_memory_limit () const
 
size_t memsize () const
 
void release_least_recently_used ()
 
void 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)
 
void reduce_noisy_snapshots (const std::string &new_name)
 
bool has_undo_snapshot () const
 
bool has_redo_snapshot () const
 
bool has_undo_snapshot (size_t time_to_load) const
 
bool undo (Slic3r::Model &model, const Slic3r::GUI::Selection &selection, Slic3r::GUI::GLGizmosManager &gizmos, const SnapshotData &snapshot_data, size_t time_to_load=SIZE_MAX)
 
bool redo (Slic3r::Model &model, Slic3r::GUI::GLGizmosManager &gizmos, size_t time_to_load=SIZE_MAX)
 
const std::vector< Snapshot > & snapshots () const
 
const Snapshotsnapshot (size_t time) const
 
size_t active_snapshot_time () const
 
const Snapshotactive_snapshot () const
 
bool temp_snapshot_active () const
 
void mark_current_as_saved ()
 
bool project_modified () const
 
const Selectionselection_deserialized () const
 

Private Attributes

std::unique_ptr< StackImplpimpl
 

Friends

class StackImpl
 

Detailed Description

Constructor & Destructor Documentation

◆ Stack()

Slic3r::UndoRedo::Stack::Stack ( )
1243: pimpl(new StackImpl()) {}
friend class StackImpl
Definition UndoRedo.hpp:166
std::unique_ptr< StackImpl > pimpl
Definition UndoRedo.hpp:167

◆ ~Stack()

Slic3r::UndoRedo::Stack::~Stack ( )
1244{}

Member Function Documentation

◆ active_snapshot()

const Snapshot & Slic3r::UndoRedo::Stack::active_snapshot ( ) const
inline
151{ return this->snapshot(this->active_snapshot_time()); }
size_t active_snapshot_time() const
Definition UndoRedo.cpp:1265
const Snapshot & snapshot(size_t time) const
Definition UndoRedo.cpp:1264

References active_snapshot_time(), and snapshot().

+ Here is the call graph for this function:

◆ active_snapshot_time()

size_t Slic3r::UndoRedo::Stack::active_snapshot_time ( ) const
1265{ return pimpl->active_snapshot_time(); }

References pimpl.

Referenced by active_snapshot().

+ Here is the caller graph for this function:

◆ clear()

void Slic3r::UndoRedo::Stack::clear ( )
1245{ pimpl->clear(); }

References pimpl.

◆ empty()

bool Slic3r::UndoRedo::Stack::empty ( ) const
1246{ return pimpl->empty(); }

References pimpl.

◆ get_memory_limit()

size_t Slic3r::UndoRedo::Stack::get_memory_limit ( ) const
1249{ return pimpl->get_memory_limit(); }

References pimpl.

Referenced by Slic3r::GUI::get_mem_info().

+ Here is the caller graph for this function:

◆ has_redo_snapshot()

bool Slic3r::UndoRedo::Stack::has_redo_snapshot ( ) const
1257{ return pimpl->has_redo_snapshot(); }

References pimpl.

◆ has_undo_snapshot() [1/2]

bool Slic3r::UndoRedo::Stack::has_undo_snapshot ( ) const
1255{ return pimpl->has_undo_snapshot(); }

References pimpl.

◆ has_undo_snapshot() [2/2]

bool Slic3r::UndoRedo::Stack::has_undo_snapshot ( size_t  time_to_load) const
1256{ return pimpl->has_undo_snapshot(time_to_load); }

References pimpl.

◆ mark_current_as_saved()

void Slic3r::UndoRedo::Stack::mark_current_as_saved ( )
1267{ pimpl->mark_current_as_saved(); }

References pimpl.

◆ memsize()

size_t Slic3r::UndoRedo::Stack::memsize ( ) const
1250{ return pimpl->memsize(); }

References pimpl.

Referenced by Slic3r::GUI::get_mem_info(), and set_memory_limit().

+ Here is the caller graph for this function:

◆ project_modified()

bool Slic3r::UndoRedo::Stack::project_modified ( ) const
1268{ return pimpl->project_modified(); }

References pimpl.

◆ redo()

bool Slic3r::UndoRedo::Stack::redo ( Slic3r::Model model,
Slic3r::GUI::GLGizmosManager gizmos,
size_t  time_to_load = SIZE_MAX 
)
1260{ return pimpl->redo(model, gizmos, time_to_load); }

References pimpl.

◆ reduce_noisy_snapshots()

void Slic3r::UndoRedo::Stack::reduce_noisy_snapshots ( const std::string &  new_name)
1254{ pimpl->reduce_noisy_snapshots(new_name); }

References pimpl.

◆ release_least_recently_used()

void Slic3r::UndoRedo::Stack::release_least_recently_used ( )
1251{ pimpl->release_least_recently_used(); }

References pimpl.

◆ selection_deserialized()

const Selection & Slic3r::UndoRedo::Stack::selection_deserialized ( ) const
1261{ return pimpl->selection_deserialized(); }

References pimpl.

◆ set_memory_limit()

void Slic3r::UndoRedo::Stack::set_memory_limit ( size_t  memsize)
1248{ pimpl->set_memory_limit(memsize); }
size_t memsize() const
Definition UndoRedo.cpp:1250

References memsize(), and pimpl.

+ Here is the call graph for this function:

◆ snapshot()

const Snapshot & Slic3r::UndoRedo::Stack::snapshot ( size_t  time) const
1264{ return pimpl->snapshot(time); }

References pimpl.

Referenced by active_snapshot().

+ Here is the caller graph for this function:

◆ snapshots()

const std::vector< Snapshot > & Slic3r::UndoRedo::Stack::snapshots ( ) const
1263{ return pimpl->snapshots(); }

References pimpl.

◆ take_snapshot()

void Slic3r::UndoRedo::Stack::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 
)
1253 { pimpl->take_snapshot(snapshot_name, model, selection, gizmos, snapshot_data); }

References pimpl.

◆ temp_snapshot_active()

bool Slic3r::UndoRedo::Stack::temp_snapshot_active ( ) const
1266{ return pimpl->temp_snapshot_active(); }

References pimpl.

◆ undo()

bool Slic3r::UndoRedo::Stack::undo ( Slic3r::Model model,
const Slic3r::GUI::Selection selection,
Slic3r::GUI::GLGizmosManager gizmos,
const SnapshotData snapshot_data,
size_t  time_to_load = SIZE_MAX 
)
1259 { return pimpl->undo(model, selection, gizmos, snapshot_data, time_to_load); }

References pimpl.

Friends And Related Symbol Documentation

◆ StackImpl

friend class StackImpl
friend

Member Data Documentation

◆ pimpl


The documentation for this class was generated from the following files: