OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::Plater::SingleSnapshot Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Plater.hpp>

Collaboration diagram for Slic3r::GUI::Plater::SingleSnapshot:

Public Member Functions

 SingleSnapshot (Plater *plater)
 ~SingleSnapshot ()
bool check (bool modify)

Private Attributes

Plater * m_plater
bool token = false
bool modify = false

Detailed Description

Constructor & Destructor Documentation

◆ SingleSnapshot()

Slic3r::GUI::Plater::SingleSnapshot::SingleSnapshot ( Plater * plater)
inline
1002 : m_plater(plater)
1003 {
1004 m_plater->single_snapshots_enter(this);
1005 }
Plater * m_plater
Definition Plater.hpp:1018
static Plater * plater()
Definition GUI_Factories.cpp:400

References Slic3r::GUI::Plater::Plater(), m_plater, and Slic3r::GUI::plater().

Here is the call graph for this function:

◆ ~SingleSnapshot()

Slic3r::GUI::Plater::SingleSnapshot::~SingleSnapshot ( )
inline
1007{ m_plater->single_snapshots_leave(this); }

References m_plater.

Member Function Documentation

◆ check()

bool Slic3r::GUI::Plater::SingleSnapshot::check ( bool modify)
inline
1010 {
1011 if (token && (this->modify || !modify)) return false;
1012 token = true;
1013 this->modify = modify;
1014 return true;
1015 }
bool token
Definition Plater.hpp:1019
bool modify
Definition Plater.hpp:1020

References modify, and token.

Member Data Documentation

◆ m_plater

Plater* Slic3r::GUI::Plater::SingleSnapshot::m_plater
private

Referenced by SingleSnapshot(), and ~SingleSnapshot().

◆ modify

bool Slic3r::GUI::Plater::SingleSnapshot::modify = false
private

Referenced by check().

◆ token

bool Slic3r::GUI::Plater::SingleSnapshot::token = false
private

Referenced by check().


The documentation for this class was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Plater.hpp