Stores detail information about a text node. More...
#include <Inventor/details/SoTextDetail.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoTextDetail () | |
virtual | ~SoTextDetail () |
int32_t | getStringIndex () const |
int32_t | getCharacterIndex () const |
SoText3::Part | getPart () const |
virtual SoDetail * | copy () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Stores detail information about a text node.
This class contains detail information about a point on a text shape (SoText2 or SoText3). It contains the part of the text, string, and character that were hit or generated.
SoText2, SoText3, SoDetail, SoPickedPoint, SoPrimitiveVertex
SoTextDetail::SoTextDetail | ( | ) |
Constructor.
virtual SoTextDetail::~SoTextDetail | ( | ) | [virtual] |
Destructor.
virtual SoDetail* SoTextDetail::copy | ( | ) | const [virtual] |
Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed.
Implements SoDetail.
int32_t SoTextDetail::getCharacterIndex | ( | ) | const [inline] |
Returns the index of the relevant character within the string.
For example, if the character of detail was the "u" within "Splurmph", the character index would be 3.
static SoType SoTextDetail::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoDetail.
SoText3::Part SoTextDetail::getPart | ( | ) | const [inline] |
For SoText3, this returns which part was picked or generated.
int32_t SoTextDetail::getStringIndex | ( | ) | const [inline] |
Returns the index of the relevant string within a multiple-value string field of a text node.
virtual SoType SoTextDetail::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.