other versions
- wheezy-backports 3.1.4~abc9f50-3~bpo70+1
- jessie 3.1.4~abc9f50-7
SoGlyph(3) | Coin | SoGlyph(3) |
NAME¶
SoGlyph - The SoGlyph class is used to generate and reuse font glyph bitmaps and outlines.SYNOPSIS¶
#include <Inventor/misc/SoGlyph.h>Public Types¶
enum Fonttype { FONT2D = 1, FONT3D = 2 }
Public Member Functions¶
void unref (void) const
Static Public Member Functions¶
static const SoGlyph * getGlyph (const char character, const SbName &font)
Protected Member Functions¶
SoGlyph (void)
Detailed Description¶
The SoGlyph class is used to generate and reuse font glyph bitmaps and outlines.Coin 2.0
See Also:
SoText2, SoText3,
SoAsciiText
Constructor & Destructor Documentation¶
SoGlyph::SoGlyph (void) [protected]¶
Constructor.SoGlyph::~SoGlyph () [protected]¶
Destructor.Member Function Documentation¶
void SoGlyph::unref (void) const¶
Should be called when a node no longer will use a glyph. Will free memory used by this glyph when it is no longer used by any node.const SoGlyph * SoGlyph::getGlyph (const charcharacter, const SbName &font) [static]¶
Returns a character of the specified font, suitable for polygonal rendering.const SbVec2f * SoGlyph::getCoords (void) const¶
Returns coordinates for this glyph.const int * SoGlyph::getFaceIndices (void) const¶
Returns face indices for this glyph.const int * SoGlyph::getEdgeIndices (void) const¶
Returns edge indices for this glyph.const int * SoGlyph::getNextCWEdge (const intedgeidx) const¶
Returns a pointer to the next clockwise edge. Returns NULL if none could be found.const int * SoGlyph::getNextCCWEdge (const intedgeidx) const¶
Returns a pointer to the next counter clockwise edge. NULL if none could be found.float SoGlyph::getWidth (void) const¶
Convenience method which returns the exact width of the glyph.const SbBox2f & SoGlyph::getBoundingBox (void) const¶
Returns the bounding box of this glyph. This value is cached for performance.const SoGlyph * SoGlyph::getGlyph (SoState *state, const unsigned intcharacter, const SbVec2s &size, const floatangle) [static]¶
Returns a character of the specified font, suitable for bitmap rendering. The size parameter overrides state's SoFontSizeElement (if != SbVec2s(0,0))unsigned char * SoGlyph::getBitmap (SbVec2s &size, SbVec2s &pos, const SbBoolantialiased) const¶
Bitmap for glyph. size and pos are return parameters. Antialiased bitmap graphics not yet supported. Note that this function may return NULL if the glyph has no visible pixels (as for e.g. the space character). The returned buffer should not be deallocated by the caller.void SoGlyph::setCoords (const SbVec2f *coords, intnumcoords = -1) [protected]¶
Sets the coordinates for this glyph.void SoGlyph::setFaceIndices (const int *indices, intnumindices = -1) [protected]¶
Sets the face indices for this glyph.void SoGlyph::setEdgeIndices (const int *indices, intnumindices = -1) [protected]¶
Sets the edge indices for this glyph.Author¶
Generated automatically by Doxygen for Coin from the source code.Sat Oct 12 2013 | Version 4.0.0a |