Class SoTextDetail
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.details.SoDetail
-
- com.openinventor.inventor.details.SoTextDetail
-
public class SoTextDetail extends SoDetail
Stores detail information about a text node. This class contains detail information about a point on a text shape (SoText2
orSoText3
). It contains the part of the text, string, and character that were hit or generated.- See Also:
SoText2
,SoText3
,SoDetail
,SoPickedPoint
,SoPrimitiveVertex
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoTextDetail()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoDetail
copy()
Returns an instance that is a copy of this instance.int
getCharacterIndex()
Returns the index of the relevant character within the string.SoText3.PartType
getPart()
ForSoText3
, this returns which part was picked or generated.int
getStringIndex()
Returns the index of the relevant string within a multiple-value string field of a text node.void
setCharacterIndex(int i)
void
setPart(SoText3.PartType p)
void
setStringIndex(int i)
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
setPart
public void setPart(SoText3.PartType p)
-
setStringIndex
public void setStringIndex(int i)
-
getCharacterIndex
public int getCharacterIndex()
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.
-
getPart
public SoText3.PartType getPart()
ForSoText3
, this returns which part was picked or generated.
-
copy
public SoDetail copy()
Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed.
-
setCharacterIndex
public void setCharacterIndex(int i)
-
getStringIndex
public int getStringIndex()
Returns the index of the relevant string within a multiple-value string field of a text node.
-
-