Package com.openinventor.inventor.nodes
Class SoAnnoText3Property
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.inventor.nodes.SoNode
com.openinventor.inventor.nodes.SoAnnoText3Property
- All Implemented Interfaces:
SafeDisposable
Annotation text property node.
This node sets the current annotation text properties in the state used by all subsequent
SoAnnoText3 nodes.
File format/default:
AnnoText3Property {
| renderPrintType | RENDER3D_PRINT_VECTOR |
| isCharOrientedRasterPrint | true |
| fontSizeHint | FIT_VECTOR_TEXT |
Action behavior:
Sets: SoAnnoText3CharOrientElement, SoAnnoText3FontSizeHintElement, SoAnnoText3RenderPrintElement
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFont size hint.static enumRender print type.Nested 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 TypeFieldDescriptionThis flag is used when the fieldrenderPrintTypeis equal to RENDER3D_PRINT_RASTER or RENDER2D_PRINT_RASTER.final SoSFBoolThis flag is used when the fieldrenderPrintTypeis equal to RENDER3D_PRINT_RASTER or RENDER2D_PRINT_RASTER.This flag specifies how annotation text should be rendered (as 3D text or 2D text) and how it should be printed when the Hard Copy Extension is used (as 3D vectors or 2D PostScript raster fonts).Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intGets the maximum font size (in pixels) that can be used whenrenderPrintTypefield is equal to RENDER2D_PRINT_RASTER.static voidsetMaxViewingFontSize(int size) Sets the maximum font size (in pixels) whenrenderPrintTypefield is equal to RENDER2D_PRINT_RASTER.Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writeMethods 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
-
renderPrintType
This flag specifies how annotation text should be rendered (as 3D text or 2D text) and how it should be printed when the Hard Copy Extension is used (as 3D vectors or 2D PostScript raster fonts). . Default is RENDER3D_PRINT_VECTOR. -
isCharOrientedRasterPrint
This flag is used when the fieldrenderPrintTypeis equal to RENDER3D_PRINT_RASTER or RENDER2D_PRINT_RASTER. It specifies whether the text should be oriented (or not) for printing when using the Hard Copy Extension. Default is true. -
fontSizeHint
This flag is used when the fieldrenderPrintTypeis equal to RENDER3D_PRINT_RASTER or RENDER2D_PRINT_RASTER. It specifies how the font size for 2D text (whether rendered or raster) changes according to the view. . Default is FIT_VECTOR_TEXT.
-
-
Constructor Details
-
SoAnnoText3Property
public SoAnnoText3Property()Constructor.
-
-
Method Details
-
getMaxViewingFontSize
public static int getMaxViewingFontSize()Gets the maximum font size (in pixels) that can be used whenrenderPrintTypefield is equal to RENDER2D_PRINT_RASTER. -
setMaxViewingFontSize
public static void setMaxViewingFontSize(int size) Sets the maximum font size (in pixels) whenrenderPrintTypefield is equal to RENDER2D_PRINT_RASTER. The maximum font size can also be set using the OIV_MAX_ANNO_RENDER2D_SIZE environment variable.
-