OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::Emboss::DataBase Class Reference

Base data hold data for create emboss shape. More...

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

Inheritance diagram for Slic3r::GUI::Emboss::DataBase:
Collaboration diagram for Slic3r::GUI::Emboss::DataBase:

Public Member Functions

 DataBase (const std::string &volume_name, std::shared_ptr< std::atomic< bool > > cancel)
 DataBase (const std::string &volume_name, std::shared_ptr< std::atomic< bool > > cancel, EmbossShape &&shape)
 DataBase (DataBase &&)=default
virtual ~DataBase ()=default
virtual EmbossShape & create_shape ()
 Create shape e.g. Text extract glyphs from font Not 'const' function because it could modify shape.
virtual void write (ModelVolume &volume) const
 Write data how to reconstruct shape to volume.

Public Attributes

bool is_outside = true
Slic3r::Emboss::TextLines text_lines = {}
std::optional< float > from_surface
std::string volume_name
std::shared_ptr< std::atomic< bool > > cancel
EmbossShape shape

Detailed Description

Base data hold data for create emboss shape.

Constructor & Destructor Documentation

◆ DataBase() [1/3]

Slic3r::GUI::Emboss::DataBase::DataBase ( const std::string & volume_name,
std::shared_ptr< std::atomic< bool > > cancel )
inline
45 : volume_name(volume_name), cancel(std::move(cancel)) {}
std::shared_ptr< std::atomic< bool > > cancel
Definition EmbossJob.hpp:83
std::string volume_name
Definition EmbossJob.hpp:79

References cancel, and volume_name.

Referenced by DataBase(), and anonymous_namespace{GLGizmoEmboss.cpp}::TextDataBase::TextDataBase().

Here is the caller graph for this function:

◆ DataBase() [2/3]

Slic3r::GUI::Emboss::DataBase::DataBase ( const std::string & volume_name,
std::shared_ptr< std::atomic< bool > > cancel,
EmbossShape && shape )
inline
47 : volume_name(volume_name), cancel(std::move(cancel)), shape(std::move(shape)){}
EmbossShape shape
Definition EmbossJob.hpp:86

References cancel, shape, and volume_name.

◆ DataBase() [3/3]

Slic3r::GUI::Emboss::DataBase::DataBase ( DataBase && )
default

References DataBase().

Here is the call graph for this function:

◆ ~DataBase()

virtual Slic3r::GUI::Emboss::DataBase::~DataBase ( )
virtualdefault

Member Function Documentation

◆ create_shape()

virtual EmbossShape & Slic3r::GUI::Emboss::DataBase::create_shape ( )
inlinevirtual

Create shape e.g. Text extract glyphs from font Not 'const' function because it could modify shape.

Reimplemented in anonymous_namespace{GLGizmoEmboss.cpp}::TextDataBase.

56{ return shape; };

References shape.

Referenced by anonymous_namespace{EmbossJob.cpp}::create_mesh_per_glyph(), anonymous_namespace{EmbossJob.cpp}::create_shape(), and anonymous_namespace{EmbossJob.cpp}::cut_per_glyph_surface().

Here is the caller graph for this function:

◆ write()

void Slic3r::GUI::Emboss::DataBase::write ( ModelVolume & volume) const
virtual

Write data how to reconstruct shape to volume.

Parameters
volumeData object for store emboss params

Reimplemented in anonymous_namespace{GLGizmoEmboss.cpp}::TextDataBase.

302 {
303 volume.name = volume_name;
304 volume.emboss_shape = shape;
305 volume.emboss_shape->fix_3mf_tr.reset();
306}
std::string name
Definition Model.hpp:834
std::optional< EmbossShape > emboss_shape
Definition Model.hpp:1019

References Slic3r::ModelVolume::emboss_shape, Slic3r::ModelVolume::name, shape, and volume_name.

Referenced by anonymous_namespace{EmbossJob.cpp}::create_volume(), Slic3r::GUI::Emboss::UpdateJob::update_volume(), and anonymous_namespace{GLGizmoEmboss.cpp}::TextDataBase::write().

Here is the caller graph for this function:

Member Data Documentation

◆ cancel

◆ from_surface

std::optional<float> Slic3r::GUI::Emboss::DataBase::from_surface

◆ is_outside

◆ shape

◆ text_lines

◆ volume_name


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