#include <include/Inventor/misc/SoGlyph.h>
Public Methods | |
void | unref (void) const |
const SbVec2f * | getCoords (void) const |
const int * | getFaceIndices (void) const |
const int * | getEdgeIndices (void) const |
const int * | getNextCWEdge (const int edgeidx) const |
const int * | getNextCCWEdge (const int edgeidx) const |
float | getWidth (void) const |
const SbBox2f & | getBoundingBox (void) const |
Static Public Methods | |
const SoGlyph * | getGlyph (const char character, const SbName &font) |
Protected Methods | |
SoGlyph (void) | |
~SoGlyph () | |
void | setCoords (SbVec2f *coords, int numcoords=-1) |
void | setFaceIndices (int *indices, int numindices=-1) |
void | setEdgeIndices (int *indices, int numindices=-1) |
FIXME: class doc
Be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
|
Constructor. |
|
Destructor. |
|
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. |
|
Returns a character of the specified font. |
|
Returns coordinates for this glyph. |
|
Returns face indices for this glyph. |
|
Returns edge indices for this glyph. |
|
Returns a pointer to the next clockwise edge. Returns NULL if none could be found. |
|
Returns a pointer to the next counter clockwise edge. NULL if none could be found. |
|
Convenience method which returns the exact width of the glyph. |
|
Returns the bounding box of this glyph. This value is cached for performance. |
|
Sets the coordinates for this glyph. If numcoords > 0, the data will be copied before returing. If numcoords <= 0, coords will be used directly. |
|
Sets the face indices for this glyph. If numindices > 0, the data will be copied before returning. If numcoords <= 0, indices will be used directly. |
|
Sets the edge indices for this glyph. If numindices > 0, the data will be copied before returning. If numcoords <= 0, indices will be used directly. |