OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::anonymous_namespace{Plater.cpp}::SvgArchivePathsRestorer Class Reference
Collaboration diagram for Slic3r::GUI::anonymous_namespace{Plater.cpp}::SvgArchivePathsRestorer:

Public Member Functions

 SvgArchivePathsRestorer (Model &model)
 ~SvgArchivePathsRestorer ()
 SvgArchivePathsRestorer (const SvgArchivePathsRestorer &)=delete
SvgArchivePathsRestorer & operator= (const SvgArchivePathsRestorer &)=delete
void restore ()

Private Attributes

std::vector< std::pair< std::string *, std::string > > m_paths

Detailed Description

Constructor & Destructor Documentation

◆ SvgArchivePathsRestorer() [1/2]

Slic3r::GUI::anonymous_namespace{Plater.cpp}::SvgArchivePathsRestorer::SvgArchivePathsRestorer ( Model & model)
inlineexplicit
19697 {
19698 for (ModelObject* object : model.objects)
19699 for (ModelVolume* volume : object->volumes)
19700 if (volume != nullptr && volume->emboss_shape.has_value() && volume->emboss_shape->svg_file.has_value()) {
19701 std::string* path_in_3mf = &volume->emboss_shape->svg_file->path_in_3mf;
19702 m_paths.emplace_back(path_in_3mf, *path_in_3mf);
19703 }
19704 }
std::vector< std::pair< std::string *, std::string > > m_paths
Definition Plater.cpp:19716

References Slic3r::ModelVolume::emboss_shape, m_paths, Slic3r::Model::objects, and Slic3r::ModelObject::volumes.

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

Here is the caller graph for this function:

◆ ~SvgArchivePathsRestorer()

Slic3r::GUI::anonymous_namespace{Plater.cpp}::SvgArchivePathsRestorer::~SvgArchivePathsRestorer ( )
inline

References restore().

Here is the call graph for this function:

◆ SvgArchivePathsRestorer() [2/2]

Slic3r::GUI::anonymous_namespace{Plater.cpp}::SvgArchivePathsRestorer::SvgArchivePathsRestorer ( const SvgArchivePathsRestorer & )
delete

References SvgArchivePathsRestorer().

Here is the call graph for this function:

Member Function Documentation

◆ operator=()

SvgArchivePathsRestorer & Slic3r::GUI::anonymous_namespace{Plater.cpp}::SvgArchivePathsRestorer::operator= ( const SvgArchivePathsRestorer & )
delete

References SvgArchivePathsRestorer().

Here is the call graph for this function:

◆ restore()

void Slic3r::GUI::anonymous_namespace{Plater.cpp}::SvgArchivePathsRestorer::restore ( )
inline
19710 {
19711 for (const auto& [path_in_3mf, previous_path] : m_paths)
19712 *path_in_3mf = previous_path;
19713 }

References m_paths.

Referenced by ~SvgArchivePathsRestorer().

Here is the caller graph for this function:

Member Data Documentation

◆ m_paths

std::vector<std::pair<std::string*, std::string> > Slic3r::GUI::anonymous_namespace{Plater.cpp}::SvgArchivePathsRestorer::m_paths
private

Referenced by SvgArchivePathsRestorer(), and restore().


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