OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::UndoRedo::Snapshot Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/Utils/UndoRedo.hpp>

Collaboration diagram for Slic3r::UndoRedo::Snapshot:

Public Member Functions

 Snapshot (size_t timestamp)
 Snapshot (const std::string &name, size_t timestamp, size_t model_id, const SnapshotData &snapshot_data)
bool operator< (const Snapshot &rhs) const
bool operator== (const Snapshot &rhs) const
bool is_topmost () const
bool is_topmost_captured () const

Public Attributes

std::string name
size_t timestamp
size_t model_id
SnapshotData snapshot_data

Detailed Description

Constructor & Destructor Documentation

◆ Snapshot() [1/2]

Slic3r::UndoRedo::Snapshot::Snapshot ( size_t timestamp)
inline
size_t timestamp
Definition UndoRedo.hpp:81

References timestamp.

Referenced by operator<(), and operator==().

Here is the caller graph for this function:

◆ Snapshot() [2/2]

Slic3r::UndoRedo::Snapshot::Snapshot ( const std::string & name,
size_t timestamp,
size_t model_id,
const SnapshotData & snapshot_data )
inline
77 :
SnapshotData snapshot_data
Definition UndoRedo.hpp:83
std::string name
Definition UndoRedo.hpp:80
size_t model_id
Definition UndoRedo.hpp:82

References model_id, name, snapshot_data, and timestamp.

Member Function Documentation

◆ is_topmost()

bool Slic3r::UndoRedo::Snapshot::is_topmost ( ) const
62{
63 return this->name == topmost_snapshot_name;
64}
static std::string topmost_snapshot_name
Definition UndoRedo.cpp:59

References name, and Slic3r::UndoRedo::topmost_snapshot_name.

Referenced by is_topmost_captured().

Here is the caller graph for this function:

◆ is_topmost_captured()

bool Slic3r::UndoRedo::Snapshot::is_topmost_captured ( ) const
inline
92{ assert(this->is_topmost()); return model_id > 0; }
bool is_topmost() const
Definition UndoRedo.cpp:61

References is_topmost().

Here is the call graph for this function:

◆ operator<()

bool Slic3r::UndoRedo::Snapshot::operator< ( const Snapshot & rhs) const
inline
85{ return this->timestamp < rhs.timestamp; }

References Snapshot(), and timestamp.

Here is the call graph for this function:

◆ operator==()

bool Slic3r::UndoRedo::Snapshot::operator== ( const Snapshot & rhs) const
inline
86{ return this->timestamp == rhs.timestamp; }

References Snapshot(), and timestamp.

Here is the call graph for this function:

Member Data Documentation

◆ model_id

size_t Slic3r::UndoRedo::Snapshot::model_id

Referenced by Snapshot().

◆ name

std::string Slic3r::UndoRedo::Snapshot::name

◆ snapshot_data

SnapshotData Slic3r::UndoRedo::Snapshot::snapshot_data

◆ timestamp

size_t Slic3r::UndoRedo::Snapshot::timestamp

The documentation for this struct 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