Classes | |
| class | CreateFontStyleImagesJob |
| Create texture with name of styles written by its style NOTE: Access to glyph cache is possible only from job. More... | |
| class | DataBase |
| Base data hold data for create emboss shape. More... | |
| struct | DataCreateVolume |
| 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... | |
| struct | DataUpdate |
| Hold neccessary data to update embossed text object in job. More... | |
| class | UpdateJob |
| Update text shape in existing text volume Predict that there is only one runnig(not canceled) instance of it. More... | |
| struct | SurfaceVolumeData |
| struct | UpdateSurfaceVolumeData |
| Hold neccessary data to update embossed text object in job. More... | |
| class | UpdateSurfaceVolumeJob |
| Update text volume to use surface from object. More... | |
| struct | CreateVolumeParams |
| shorten params for start_crate_volume functions More... | |
| class | StyleManager |
| Manage Emboss text styles Cache actual state of style. More... | |
Typedefs | |
| using | DataBasePtr = std::unique_ptr<DataBase> |
Functions | |
| SurfaceVolumeData::ModelSources | create_volume_sources (const ModelVolume &volume) |
| Copied triangles from object to be able create mesh for cut surface from. | |
| bool | start_create_volume (CreateVolumeParams &input, DataBasePtr data, const Vec2d &mouse_pos) |
| Create new volume on position of mouse cursor. | |
| bool | start_create_volume_without_position (CreateVolumeParams &input, DataBasePtr data) |
| Same as previous function but without mouse position Need to suggest position or put near the selection. | |
| bool | start_update_volume (DataUpdate &&data, const ModelVolume &volume, const Selection &selection, RaycastManager &raycaster) |
| Start job for update embossed volume. | |
| struct Slic3r::GUI::Emboss::CreateVolumeParams |
shorten params for start_crate_volume functions
| Class Members | ||
|---|---|---|
| optional< float > | angle = {} | |
| const BuildVolume & | build_volume | |
| const Camera & | camera | |
| GLCanvas3D & | canvas | |
| optional< float > | distance = {} | |
| unsigned char | gizmo | |
| const GLVolume * | gl_volume | |
| RaycastManager & | raycaster | |
| ModelVolumeType | volume_type | |
| Worker & | worker | |
| using Slic3r::GUI::Emboss::DataBasePtr = std::unique_ptr<DataBase> |
| SurfaceVolumeData::ModelSources Slic3r::GUI::Emboss::create_volume_sources | ( | const ModelVolume & | volume | ) |
Copied triangles from object to be able create mesh for cut surface from.
| volume | Define embossed volume |
References Slic3r::ModelVolume::get_object(), Slic3r::ObjectBase::id(), Slic3r::ObjectID::id, and Slic3r::ModelObject::volumes.
Referenced by start_update_volume().
| bool Slic3r::GUI::Emboss::start_create_volume | ( | CreateVolumeParams & | input, |
| DataBasePtr | data, | ||
| const Vec2d & | mouse_pos ) |
Create new volume on position of mouse cursor.
| plater_ptr | canvas + camera + bed shape + |
| data | Shape of emboss |
| volume_type | New created volume type |
| raycaster | Knows object in scene |
| gizmo | Define which gizmo open on the success - enum GLGizmosManager::EType |
| mouse_pos | Define position where to create volume |
| distance | Wanted additionl move in Z(emboss) direction of new created volume |
| angle | Wanted additionl rotation around Z of new created volume |
References Slic3r::GUI::Emboss::CreateVolumeParams::gl_volume.
Referenced by Slic3r::GUI::GLGizmoEmboss::create_volume(), Slic3r::GUI::GLGizmoSVG::create_volume(), and Slic3r::GUI::GLGizmoSVG::create_volume().
| bool Slic3r::GUI::Emboss::start_create_volume_without_position | ( | CreateVolumeParams & | input, |
| DataBasePtr | data ) |
Same as previous function but without mouse position Need to suggest position or put near the selection.
References Slic3r::GUI::Emboss::CreateVolumeParams::canvas, Slic3r::GUI::GLCanvas3D::get_canvas_size(), Slic3r::GUI::Size::get_height(), Slic3r::GUI::Selection::get_model(), Slic3r::GUI::Selection::get_object_idx(), Slic3r::GUI::GLCanvas3D::get_selection(), Slic3r::GUI::Size::get_width(), Slic3r::GUI::Emboss::CreateVolumeParams::gl_volume, Slic3r::GUI::Selection::is_empty(), and Slic3r::Model::objects.
Referenced by Slic3r::GUI::GLGizmoEmboss::create_volume(), Slic3r::GUI::GLGizmoSVG::create_volume(), Slic3r::GUI::GLGizmoSVG::create_volume(), and anonymous_namespace{EmbossJob.cpp}::start_create_volume_on_surface_job().
| bool Slic3r::GUI::Emboss::start_update_volume | ( | DataUpdate && | data, |
| const ModelVolume & | volume, | ||
| const Selection & | selection, | ||
| RaycastManager & | raycaster ) |
Start job for update embossed volume.
| data | define update data |
| volume | Volume to be updated |
| selection | Keep model and gl_volumes - when start use surface volume must be selected |
| raycaster | Could cast ray to scene |
References Slic3r::GUI::calc_surface_offset(), create_volume_sources(), Slic3r::ModelVolume::emboss_shape, Slic3r::ModelVolume::get_matrix(), Slic3r::ObjectBase::id(), Slic3r::ModelVolume::is_the_only_one_part(), Slic3r::offset(), and Slic3r::GUI::queue_job().
Referenced by Slic3r::GUI::GLGizmoEmboss::process(), Slic3r::GUI::GLGizmoSVG::process(), and Slic3r::GUI::GLGizmoEmboss::re_emboss().