public class PoMiscTextAttr extends PoNode
File format/default:
fontName | "defaultFont" |
lineLength | LINE_LENGTH_MAX |
endLineChar | ' ' |
profileEnabled | false |
predefinedProfileEnabled | true |
outliningEnabled | true |
Modifier and Type | Class and Description |
---|---|
static class |
PoMiscTextAttr.LineLengths
Line length.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFShort |
endLineChar
Defines the end line character.
|
SoSFString |
fontName
Font name for text.
|
static int |
LINE_LENGTH_MAX
Deprecated.
Use
PoMiscTextAttr.LineLengths.LINE_LENGTH_MAX instead. |
static int |
LINE_LENGTH_MIN
Deprecated.
Use
PoMiscTextAttr.LineLengths.LINE_LENGTH_MIN instead. |
SoSFShort |
lineLength
Defines the max number of characters per line.
|
SoSFBool |
outliningEnabled
Enables/Disables drawing of the outline of polygonal text (
SoText3 and SoAnnoText3 ). |
SoSFBool |
predefinedProfileEnabled
Enables/Disables the use of a predefined profile for 3D text if they are activated (cf profileEnabled field).
|
SoSFBool |
profileEnabled
Enables/Disables the appearance of a profile for 3D Text.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
PoMiscTextAttr()
Constructor.
|
callback, doAction, getBoundingBox, getMatrix, getPrimitiveCount, GLRender, handleEvent, pick, search, write
affectsState, copy, copy, distribute, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, rayPick, setOverride, touch
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int LINE_LENGTH_MAX
PoMiscTextAttr.LineLengths.LINE_LENGTH_MAX
instead.@Deprecated public static final int LINE_LENGTH_MIN
PoMiscTextAttr.LineLengths.LINE_LENGTH_MIN
instead.public final SoSFString fontName
public final SoSFShort lineLength
Example of use with the string "United States of America" (24 characters) :
Be careful, words (consecutive characters delimited by endLineChar
characters) are never truncated, so lines could exceed lineLength
characters if the first word of the line contains more than lineLength
characters.
public final SoSFShort endLineChar
public final SoSFBool profileEnabled
SoText3
text takes into account of this option (cf PoBase.setTextType()
and PoBase.setVRML2Mode()
) to to select the type of text used).public final SoSFBool predefinedProfileEnabled
SoLinearProfile
,...)public final SoSFBool outliningEnabled
SoText3
and SoAnnoText3
).
For filled text that is small relative to the viewer size, drawing the outline improves the appearance of the text. For larger text, the outline can be deactivated to improve performance and prevent the text having a bold appearance.
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com