Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
SoGlyphCache Class Reference

#include <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

void SoGlyphCache::readFontspec ( SoState state)

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

const cc_font_specification * SoGlyphCache::getCachedFontspec ( void  ) const

Returns the cached fontspec.


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