OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::UndoRedo::Stack Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/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 take_snapshot (const std::string &snapshot_name, const Slic3r::Model &model, const Slic3r::GUI::Selection &selection, const Slic3r::GUI::GLGizmosManager &gizmos, const Slic3r::GUI::PartPlateList &plate_list, 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, Slic3r::GUI::PartPlateList &plate_list, const SnapshotData &snapshot_data, size_t time_to_load=SIZE_MAX)
bool redo (Slic3r::Model &model, Slic3r::GUI::GLGizmosManager &gizmos, Slic3r::GUI::PartPlateList &plate_list, size_t time_to_load=SIZE_MAX)
const std::vector< Snapshot > & snapshots () const
const Snapshot & snapshot (size_t time) const
size_t active_snapshot_time () const
const Snapshot & active_snapshot () const
bool temp_snapshot_active () const
void mark_current_as_saved ()
bool project_modified () const
bool has_real_change_from (size_t time) const
const Selection & selection_deserialized () const

Private Attributes

std::unique_ptr< StackImpl > pimpl

Friends

class StackImpl

Detailed Description

Constructor & Destructor Documentation

◆ Stack()

Slic3r::UndoRedo::Stack::Stack ( )
1367: pimpl(new StackImpl()) {}
friend class StackImpl
Definition UndoRedo.hpp:189
std::unique_ptr< StackImpl > pimpl
Definition UndoRedo.hpp:190

References pimpl, and StackImpl.

Here is the call graph for this function:

◆ ~Stack()

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

Member Function Documentation

◆ active_snapshot()

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

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
1391{ return pimpl->active_snapshot_time(); }

References pimpl.

Referenced by active_snapshot(), and Slic3r::GUI::Plater::priv::up_to_date().

Here is the caller graph for this function:

◆ clear()

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

References pimpl.

◆ empty()

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

References pimpl.

◆ get_memory_limit()

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

References pimpl.

◆ has_real_change_from()

bool Slic3r::UndoRedo::Stack::has_real_change_from ( size_t time) const
1397{
1398 return pimpl->has_real_change_from(time);
1399}

References pimpl.

Referenced by Slic3r::GUI::Plater::priv::up_to_date().

Here is the caller graph for this function:

◆ has_redo_snapshot()

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

References pimpl.

◆ has_undo_snapshot() [1/2]

bool Slic3r::UndoRedo::Stack::has_undo_snapshot ( ) const
1381{ 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
1382{ return pimpl->has_undo_snapshot(time_to_load); }

References pimpl.

◆ mark_current_as_saved()

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

References pimpl.

Referenced by Slic3r::GUI::Plater::priv::up_to_date().

Here is the caller graph for this function:

◆ memsize()

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

References pimpl.

Referenced by set_memory_limit().

Here is the caller graph for this function:

◆ project_modified()

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

References pimpl.

◆ redo()

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

References pimpl.

◆ reduce_noisy_snapshots()

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

References pimpl.

◆ release_least_recently_used()

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

References pimpl.

◆ selection_deserialized()

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

References pimpl.

◆ set_memory_limit()

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

References memsize(), and pimpl.

Here is the call graph for this function:

◆ snapshot()

const Snapshot & Slic3r::UndoRedo::Stack::snapshot ( size_t time) const
1390{ 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
1389{ return pimpl->snapshots(); }

References pimpl.

◆ take_snapshot() [1/2]

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 Slic3r::GUI::PartPlateList & plate_list,
const SnapshotData & snapshot_data )
1379 { pimpl->take_snapshot(snapshot_name, model, selection, gizmos, plate_list, snapshot_data); }

References pimpl.

◆ take_snapshot() [2/2]

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 )
1377 { pimpl->take_snapshot(snapshot_name, model, selection, gizmos, snapshot_data); }

References pimpl.

◆ temp_snapshot_active()

bool Slic3r::UndoRedo::Stack::temp_snapshot_active ( ) const
1392{ 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,
Slic3r::GUI::PartPlateList & plate_list,
const SnapshotData & snapshot_data,
size_t time_to_load = SIZE_MAX )
1385 { return pimpl->undo(model, selection, gizmos, plate_list, snapshot_data, time_to_load); }

References pimpl.

◆ StackImpl

friend class StackImpl
friend

References StackImpl.

Referenced by Stack(), and StackImpl.

Member Data Documentation

◆ pimpl


The documentation for this class was generated from the following files:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/UndoRedo.hpp
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/UndoRedo.cpp