logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoTextDetail — stores detail information about a text node

Description

       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.

Inherits From

       SoDetail > SoTextDetail

Methods

SoTextDetail()virtual~SoTextDetail()
          Constructor and destructor.

     int32_tgetStringIndex()const
          Returns the index of the relevant string within a multiple-value string field of a text node.

     int32_tgetCharacterIndex()const
          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.

     SoText3::PartgetPart()const
          For SoText3, this returns which part was picked or generated.

     SbBox3fgetBoundingBox()constSbXfBox3fgetXfBoundingBox()const
          When the detail is returned from picking, these return the object-space bounding box of the  character
          that  was  intersected.  Otherwise,  they  return an empty box. The second method returns an SbXfBox3f
          instead of a SbBox3f. These methods are implemented only for 3D text.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoTextDetail — stores detail information about a text node

See Also

SoText2,SoText3,SoDetail,SoPickedPoint,SoPrimitiveVertexSoTextDetail(3IV)()

Synopsis

#include<Inventor/details/SoTextDetail.h>

          Methods from class SoTextDetail:

                         SoTextDetail()virtual~SoTextDetail()int32_tgetStringIndex()constint32_tgetCharacterIndex()constSoText3::PartgetPart()constSbBox3fgetBoundingBox()constSbXfBox3fgetXfBoundingBox()conststaticSoTypegetClassTypeId()

          Methods from class SoDetail:

     SoDetail*copy()constvirtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)const

See Also