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.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFShortDefines the end line character.final SoSFStringFont name for text.final SoSFShortDefines the max number of characters per line.final SoSFBoolEnables/Disables drawing of the outline of polygonal text (SoText3andSoAnnoText3).final SoSFBoolEnables/Disables the use of a predefined profile for 3D text if they are activated (cf profileEnabled field).final SoSFBoolEnables/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, writeMethods 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, touchMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods 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
endLineCharcharacters) are never truncated, so lines could exceedlineLengthcharacters if the first word of the line contains more thanlineLengthcharacters. -
endLineChar
Defines the end line character. -
profileEnabled
Enables/Disables the appearance of a profile for 3D Text. OnlySoText3text 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 (SoText3andSoAnnoText3). 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.
-