OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::Emboss::DataCreateVolume Struct Reference

Hold neccessary data to create ModelVolume in job Volume is created on the surface of existing volume in object. NOTE: EmbossDataBase::font_file doesn't have to be valid !!! More...

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

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

Public Member Functions

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

ModelVolumeType volume_type
ObjectID object_id
Transform3d trmat
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

Hold neccessary data to create ModelVolume in job Volume is created on the surface of existing volume in object. NOTE: EmbossDataBase::font_file doesn't have to be valid !!!

Member Function Documentation

◆ create_shape()

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

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; };
EmbossShape shape
Definition EmbossJob.hpp:86

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
virtualinherited

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 volume_name
Definition EmbossJob.hpp:79
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
inherited

◆ is_outside

◆ object_id

ObjectID Slic3r::GUI::Emboss::DataCreateVolume::object_id

◆ shape

◆ text_lines

◆ trmat

Transform3d Slic3r::GUI::Emboss::DataCreateVolume::trmat

◆ volume_name

◆ volume_type

ModelVolumeType Slic3r::GUI::Emboss::DataCreateVolume::volume_type

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