Package com.openinventor.meshviz.nodes
Class PoMiscTextAttr
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.inventor.nodes.SoNode
com.openinventor.meshviz.nodes.PoNode
com.openinventor.meshviz.nodes.PoMiscTextAttr
- All Implemented Interfaces:
SafeDisposable
Node to define miscellaneous text attributes (font name, line length,...).
This node defines the current miscellaneous text attributes for all subsequent MeshViz representations which contain text. These attributes are the font name, the line length, the end line character.
File format/default:
fontName | "defaultFont" |
lineLength | LINE_LENGTH_MAX |
endLineChar | ' ' |
profileEnabled | false |
predefinedProfileEnabled | true |
outliningEnabled | true |
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFShort
Defines the end line character.final SoSFString
Font name for text.final SoSFShort
Defines the max number of characters per line.final SoSFBool
Enables/Disables drawing of the outline of polygonal text (SoText3
andSoAnnoText3
).final SoSFBool
Enables/Disables the use of a predefined profile for 3D text if they are activated (cf profileEnabled field).final SoSFBool
Enables/Disables the appearance of a profile for 3D Text.Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.openinventor.meshviz.nodes.PoNode
callback, doAction, getBoundingBox, getMatrix, getPrimitiveCount, GLRender, handleEvent, pick, search, write
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, copy, copy, distribute, getAlternateRep, getByName, getRenderEngineMode, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, rayPick, setOverride, touch
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
fontName
Font name for text. -
lineLength
Defines the max number of characters per line. If several endLineChar appear before the lineLength character, only the last endLineChar is taken into account. if lineLength = LINE_LENGTH_MAX, the lines length is not limited, and if lineLength = LINE_LENGTH_MIN, the lines are limited to one word.Example of use with the string "United States of America" (24 characters) :
- with endLineChar = ' ' and lineLength = 15, the string is cut into two lines: "United States" and "of America".
- with endLineChar = ' ' and lineLength = 18, the string is cut into two lines: "United States of" and "America".
Be careful, words (consecutive characters delimited by
endLineChar
characters) are never truncated, so lines could exceedlineLength
characters if the first word of the line contains more thanlineLength
characters. -
endLineChar
Defines the end line character. -
profileEnabled
Enables/Disables the appearance of a profile for 3D Text. OnlySoText3
text takes into account of this option (cfPoBase.setTextType()
) to to select the type of text used). -
predefinedProfileEnabled
Enables/Disables the use of a predefined profile for 3D text if they are activated (cf profileEnabled field). If this field is set to false, the current profile in the state is used (cfSoLinearProfile
,...) -
outliningEnabled
Enables/Disables drawing of the outline of polygonal text (SoText3
andSoAnnoText3
). 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.- Since:
- Open Inventor 4.0
-
-
Constructor Details
-
PoMiscTextAttr
public PoMiscTextAttr()Constructor.
-