OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
anonymous_namespace{EmbossJob.cpp}::CreateSurfaceVolumeJob Class Reference

Cut surface from object and create cutted volume Should not be stopped. More...

Inheritance diagram for anonymous_namespace{EmbossJob.cpp}::CreateSurfaceVolumeJob:
Collaboration diagram for anonymous_namespace{EmbossJob.cpp}::CreateSurfaceVolumeJob:

Public Types

enum  JobPrepareState { PREPARE_STATE_DEFAULT = 0 , PREPARE_STATE_MENU = 1 }

Public Member Functions

 CreateSurfaceVolumeJob (CreateSurfaceVolumeData &&input)
 Create Surface volume.
void process (Ctl &ctl) override
void finalize (bool canceled, std::exception_ptr &eptr) override

Private Attributes

CreateSurfaceVolumeData m_input
TriangleMesh m_result

Detailed Description

Cut surface from object and create cutted volume Should not be stopped.

Member Enumeration Documentation

◆ JobPrepareState

Enumerator
PREPARE_STATE_DEFAULT 
PREPARE_STATE_MENU 
22 {
25 };
@ PREPARE_STATE_MENU
Definition Job.hpp:24
@ PREPARE_STATE_DEFAULT
Definition Job.hpp:23

Constructor & Destructor Documentation

◆ CreateSurfaceVolumeJob()

CreateSurfaceVolumeJob::CreateSurfaceVolumeJob ( CreateSurfaceVolumeData && input)
explicit

Create Surface volume.

489 : m_input(std::move(input))
490{
491 assert(check(m_input, true));
492}
CreateSurfaceVolumeData m_input
Definition EmbossJob.cpp:178
bool check(const DataBase &input, bool check_fontfile=true, bool use_surface=false)
Assert check of inputs data.
Definition EmbossJob.cpp:719

References anonymous_namespace{EmbossJob.cpp}::check(), and m_input.

Here is the call graph for this function:

Member Function Documentation

◆ finalize()

void CreateSurfaceVolumeJob::finalize ( bool canceled,
std::exception_ptr & eptr )
overridevirtual

Reimplemented from Slic3r::GUI::Job.

500 {
501 if (!::finalize(canceled, eptr, *m_input.base))
502 return;
503 create_volume(std::move(m_result), m_input.object_id,
504 m_input.volume_type, m_input.transform, *m_input.base, m_input.gizmo);
505}
TriangleMesh m_result
Definition EmbossJob.cpp:179
void finalize(bool canceled, std::exception_ptr &eptr) override
Definition EmbossJob.cpp:500
void create_volume(TriangleMesh &&mesh, const ObjectID &object_id, const ModelVolumeType type, const std::optional< Transform3d > &trmat, const DataBase &data, GLGizmosManager::EType gizmo)
Add new volume to object.
Definition EmbossJob.cpp:1092

References anonymous_namespace{EmbossJob.cpp}::create_volume(), finalize(), m_input, and m_result.

Referenced by finalize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ process()

void CreateSurfaceVolumeJob::process ( Ctl & ctl)
overridevirtual

Implements Slic3r::GUI::Job.

494 {
495 if (!check(m_input))
496 throw JobException(_u8L("Bad input data for CreateSurfaceVolumeJob."));
498}
auto was_canceled(const Job::Ctl &ctl, const DataBase &base)
Definition EmbossJob.cpp:292
TriangleMesh cut_surface(DataBase &input1, const SurfaceVolumeData &input2, const Fnc &was_canceled)
Cut surface into triangle mesh.
Definition EmbossJob.cpp:1389
#define _u8L(s)
Definition I18N.hpp:11

References _u8L, anonymous_namespace{EmbossJob.cpp}::check(), anonymous_namespace{EmbossJob.cpp}::cut_surface(), m_input, m_result, and anonymous_namespace{EmbossJob.cpp}::was_canceled().

Here is the call graph for this function:

Member Data Documentation

◆ m_input

CreateSurfaceVolumeData anonymous_namespace{EmbossJob.cpp}::CreateSurfaceVolumeJob::m_input
private

◆ m_result

TriangleMesh anonymous_namespace{EmbossJob.cpp}::CreateSurfaceVolumeJob::m_result
private

Referenced by finalize(), and process().


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