OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
EmbossStyleManager.cpp File Reference
#include "EmbossStyleManager.hpp"
#include <imgui.h>
#include <functional>
#include "libslic3r/TextConfiguration.hpp"
#include <cstddef>
#include <boost/assign/list_of.hpp>
#include <cassert>
#include <limits>
#include <memory>
#include "libslic3r/Emboss.hpp"
#include "libslic3r/Point.hpp"
#include <cstdint>
#include <cstdlib>
#include <map>
#include <cmath>
#include "libslic3r/EmbossShape.hpp"
#include <optional>
#include <glad/gl.h>
#include <imgui/imgui_internal.h>
#include <libslic3r/AppConfig.hpp>
#include <libslic3r/Utils.hpp>
#include "WxFontUtils.hpp"
#include "slic3r/GUI/3DScene.hpp"
#include "slic3r/GUI/Jobs/CreateFontStyleImagesJob.hpp"
#include "slic3r/GUI/ImGuiWrapper.hpp"
#include <boost/assign.hpp>
#include <boost/bimap.hpp>
#include <string>
#include <string_view>
#include <utility>
#include "slic3r/GUI/GUI_Utils.hpp"
#include "slic3r/GUI/Jobs/Worker.hpp"
#include <vector>
#include "slic3r/GUI/OpenGLManager.hpp"
#include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/Plater.hpp"
#include "slic3r/GUI/MainFrame.hpp"
#include "slic3r/GUI/Gizmos/GizmoObjectManipulation.hpp"
#include "fast_float/fast_float.h"
Include dependency graph for EmbossStyleManager.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{EmbossStyleManager.cpp}
 For store/load emboss style to/from AppConfig.

Typedefs

using anonymous_namespace{EmbossStyleManager.cpp}::HorizontalAlignToName = boost::bimap<FontProp::HorizontalAlign, std::string_view>
using anonymous_namespace{EmbossStyleManager.cpp}::VerticalAlignToName = boost::bimap<FontProp::VerticalAlign, std::string_view>
using anonymous_namespace{EmbossStyleManager.cpp}::Section = std::map<std::string,std::string>

Functions

void anonymous_namespace{EmbossStyleManager.cpp}::store_style_index (AppConfig &cfg, size_t index)
::std::optional< size_t > anonymous_namespace{EmbossStyleManager.cpp}::load_style_index (const AppConfig &cfg)
StyleManager::Styles anonymous_namespace{EmbossStyleManager.cpp}::load_styles (const AppConfig &cfg)
void anonymous_namespace{EmbossStyleManager.cpp}::store_styles (AppConfig &cfg, const StyleManager::Styles &styles)
void anonymous_namespace{EmbossStyleManager.cpp}::make_unique_name (const StyleManager::Styles &styles, std::string &name)
std::string anonymous_namespace{EmbossStyleManager.cpp}::create_section_name (unsigned index)
bool anonymous_namespace{EmbossStyleManager.cpp}::read (const Section &section, const std::string &key, bool &value)
bool anonymous_namespace{EmbossStyleManager.cpp}::read (const Section &section, const std::string &key, Slic3r::FontProp::HorizontalAlign &value)
bool anonymous_namespace{EmbossStyleManager.cpp}::read (const Section &section, const std::string &key, Slic3r::FontProp::VerticalAlign &value)
bool anonymous_namespace{EmbossStyleManager.cpp}::read (const Section &section, const std::string &key, float &value)
bool anonymous_namespace{EmbossStyleManager.cpp}::read (const Section &section, const std::string &key, std::optional< int > &value)
bool anonymous_namespace{EmbossStyleManager.cpp}::read (const Section &section, const std::string &key, std::optional< unsigned int > &value)
bool anonymous_namespace{EmbossStyleManager.cpp}::read (const Section &section, const std::string &key, std::optional< float > &value)
std::optional< StyleManager::Style > anonymous_namespace{EmbossStyleManager.cpp}::load_style (const Section &app_cfg_section)
void anonymous_namespace{EmbossStyleManager.cpp}::store_style (AppConfig &cfg, const StyleManager::Style &s, unsigned index)

Variables

const HorizontalAlignToName anonymous_namespace{EmbossStyleManager.cpp}::horizontal_align_to_name
const VerticalAlignToName anonymous_namespace{EmbossStyleManager.cpp}::vertical_align_to_name
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_NAME = "name"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_DESCRIPTOR = "descriptor"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_LINE_HEIGHT = "line_height"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_DEPTH = "depth"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_USE_SURFACE = "use_surface"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_PER_GLYPH = "per_glyph"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_VERTICAL_ALIGN = "vertical_align"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_HORIZONTAL_ALIGN = "horizontal_align"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_BOLDNESS = "boldness"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_SKEW = "skew"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_DISTANCE = "distance"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_ANGLE = "angle"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_COLLECTION = "collection"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_CHAR_GAP = "char_gap"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_FONT_LINE_GAP = "line_gap"
const std::string anonymous_namespace{EmbossStyleManager.cpp}::APP_CONFIG_ACTIVE_FONT = "active_font"