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

Add caching for shape of glyphs. More...

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Emboss.hpp>

Collaboration diagram for Slic3r::Emboss::FontFileWithCache:

Public Member Functions

 FontFileWithCache ()
 FontFileWithCache (std::unique_ptr< FontFile > font_file)
bool has_value () const

Public Attributes

std::shared_ptr< const FontFile > font_file
std::shared_ptr< Emboss::Glyphs > cache

Detailed Description

Add caching for shape of glyphs.

Constructor & Destructor Documentation

◆ FontFileWithCache() [1/2]

Slic3r::Emboss::FontFileWithCache::FontFileWithCache ( )
inline
123: font_file(nullptr), cache(nullptr) {}
std::shared_ptr< Emboss::Glyphs > cache
Definition Emboss.hpp:121
std::shared_ptr< const FontFile > font_file
Definition Emboss.hpp:116

References cache, and font_file.

◆ FontFileWithCache() [2/2]

Slic3r::Emboss::FontFileWithCache::FontFileWithCache ( std::unique_ptr< FontFile > font_file)
inlineexplicit
125 : font_file(std::move(font_file))
126 , cache(std::make_shared<Emboss::Glyphs>())
127 {}

References cache, and font_file.

Member Function Documentation

◆ has_value()

bool Slic3r::Emboss::FontFileWithCache::has_value ( ) const
inline
128{ return font_file != nullptr && cache != nullptr; }

References cache, and font_file.

Referenced by Slic3r::GUI::Emboss::StyleManager::clear_glyphs_cache(), anonymous_namespace{Emboss.cpp}::letter2shapes(), and Slic3r::Emboss::text2vshapes().

Here is the caller graph for this function:

Member Data Documentation

◆ cache

◆ font_file


The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Emboss.hpp