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
public class SoAnnoText3Property extends SoNode
Annotation text property node. This node sets the current annotation text properties in the state used by all subsequentSoAnnoText3
nodes.File format/default:
AnnoText3Property {
renderPrintType RENDER3D_PRINT_VECTOR isCharOrientedRasterPrint true fontSizeHint FIT_VECTOR_TEXT Action behavior:
Sets:
SoAnnoText3CharOrientElement
,SoAnnoText3FontSizeHintElement
,SoAnnoText3RenderPrintElement
- See Also:
SoAnnoText3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoAnnoText3Property.FontSizeHints
Font size hint.static class
SoAnnoText3Property.RenderPrintTypes
Render print type.-
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 SoSFEnum<SoAnnoText3Property.FontSizeHints>
fontSizeHint
This flag is used when the fieldrenderPrintType
is equal to RENDER3D_PRINT_RASTER or RENDER2D_PRINT_RASTER.SoSFBool
isCharOrientedRasterPrint
This flag is used when the fieldrenderPrintType
is equal to RENDER3D_PRINT_RASTER or RENDER2D_PRINT_RASTER.SoSFEnum<SoAnnoText3Property.RenderPrintTypes>
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).-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoAnnoText3Property()
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getMaxViewingFontSize()
Gets the maximum font size (in pixels) that can be used whenrenderPrintType
field is equal to RENDER2D_PRINT_RASTER.static void
setMaxViewingFontSize(int size)
Sets the maximum font size (in pixels) whenrenderPrintType
field 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, write
-
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
-
renderPrintType
public final SoSFEnum<SoAnnoText3Property.RenderPrintTypes> 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
public final SoSFBool isCharOrientedRasterPrint
This flag is used when the fieldrenderPrintType
is 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
public final SoSFEnum<SoAnnoText3Property.FontSizeHints> fontSizeHint
This flag is used when the fieldrenderPrintType
is 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.
-
-
Method Detail
-
getMaxViewingFontSize
public static int getMaxViewingFontSize()
Gets the maximum font size (in pixels) that can be used whenrenderPrintType
field is equal to RENDER2D_PRINT_RASTER.
-
setMaxViewingFontSize
public static void setMaxViewingFontSize(int size)
Sets the maximum font size (in pixels) whenrenderPrintType
field is equal to RENDER2D_PRINT_RASTER. The maximum font size can also be set using the OIV_MAX_ANNO_RENDER2D_SIZE environment variable.
-
-