Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://coin3d.github.io
https://www.kongsberg.com/en/kogt/
SoGlyphCache Class Reference

#include <Inventor/caches/SoGlyphCache.h>

Inheritance diagram for SoGlyphCache:
SoCache

Public Member Functions

 SoGlyphCache (SoState *state)
 
void readFontspec (SoState *state)
 
const cc_font_specification * getCachedFontspec (void) const
 
void addGlyph (cc_glyph2d *glyph)
 
void addGlyph (cc_glyph3d *glyph)
 
- Public Member Functions inherited from SoCache
 SoCache (SoState *const state)
 
void ref (void)
 
void unref (SoState *state=NULL)
 
void addElement (const SoElement *const elem)
 
virtual void addCacheDependency (const SoState *state, SoCache *cache)
 
virtual SbBool isValid (const SoState *state) const
 
const SoElementgetInvalidElement (const SoState *const state) const
 
void invalidate (void)
 

Additional Inherited Members

- Protected Member Functions inherited from SoCache
virtual void destroy (SoState *state)
 
virtual ~SoCache ()
 

Detailed Description

The SoGlyphClass is used to cache glyphs.

Member Function Documentation

◆ readFontspec()

void SoGlyphCache::readFontspec ( SoState * state)

Read and store current font specification. Will create cache dependencies since some elements are read. We can't read the font specification in the constructor since we need to update SoCacheElement before reading the elements.

◆ getCachedFontspec()

const cc_font_specification * SoGlyphCache::getCachedFontspec ( void ) const

Returns the cached font specification.


The documentation for this class was generated from the following files: