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
public class PoMiscTextAttr extends PoNode
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 Classes Modifier and Type Class Description static class
PoMiscTextAttr.LineLengths
Line length.-
Nested 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
Fields Modifier and Type Field Description SoSFShort
endLineChar
Defines the end line character.SoSFString
fontName
Font name for text.SoSFShort
lineLength
Defines the max number of characters per line.SoSFBool
outliningEnabled
Enables/Disables drawing of the outline of polygonal text (SoText3
andSoAnnoText3
).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.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description PoMiscTextAttr()
Constructor.
-
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 Detail
-
fontName
public final SoSFString fontName
Font name for text.
-
lineLength
public final SoSFShort 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
public final SoSFShort endLineChar
Defines the end line character.
-
profileEnabled
public final SoSFBool 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
public final SoSFBool 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
public final SoSFBool 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
-
-