public class PoAxis extends PoBaseAxis
All axis texts depend on the current miscellaneous text attributes which define the font name, line length and so on. If the method setMiscTextAttr(textAttr) is called, the current miscellaneous text attributes are defined by "textAttr". Otherwise the current miscellaneous text attributes are specified in the current inherited state (cf property node PoMiscTextAttr
).
Note: Some axis attributes can be defined by calling the method SoBaseKit.set(). However this is typically not possible for attributes that are reset during the traversal of the scene graph. For instance the following code sample must be used in order to specify a renderStyle "texture" for the font of the main graduations of an axis.
class MyAxisCB extends PoRebuildCB { @Override public void invoke(PoBase myAxis) { myAxis.set("mainGradTextApp.font", "renderStyle TEXTURE"); } } ... PoLinearAxis myAxis = new PoLinearAxis(); myAxis.addPostRebuildCallback(new MyAxisCB(), null);
Modifier and Type | Class and Description |
---|---|
static class |
PoAxis.ArrowAttributes |
static class |
PoAxis.AxisReverses
Axis reverse type.
|
static class |
PoAxis.GradAttributes |
static class |
PoAxis.GradPositions
Graduation position type.
|
static class |
PoAxis.GridAttributes |
static class |
PoAxis.MarginAttributes |
static class |
PoAxis.MarginTypes
Margin type.
|
static class |
PoAxis.TextPaths
Text path type.
|
static class |
PoAxis.TickAttributes |
static class |
PoAxis.TickPositions
Tick position type.
|
static class |
PoAxis.TickSubDefs
Sub-tick type.
|
static class |
PoAxis.TitleAttributes |
static class |
PoAxis.TitlePositions
Title position type.
|
static class |
PoAxis.Visibilities
Enumerations.
|
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFFloat |
arrowHeight
Arrow height.
|
SoSFFloat |
arrowLength
Arrow length.
|
SoSFEnum<PoAxis.Visibilities> |
arrowVisibility
Arrow visibility.
|
static int |
AXIS_NO_REVERSE
Deprecated.
Use
PoAxis.AxisReverses.AXIS_NO_REVERSE instead. |
static int |
AXIS_REVERSE
Deprecated.
Use
PoAxis.AxisReverses.AXIS_REVERSE instead. |
static int |
AXIS_REVERSE_DEPEND
Deprecated.
Use
PoAxis.AxisReverses.AXIS_REVERSE_DEPEND instead. |
static int |
FIXED_MARGIN
Deprecated.
Use
PoAxis.MarginTypes.FIXED_MARGIN instead. |
static int |
GRAD_ABOVE
Deprecated.
Use
PoAxis.GradPositions.GRAD_ABOVE instead. |
static int |
GRAD_BELOW
Deprecated.
Use
PoAxis.GradPositions.GRAD_BELOW instead. |
static int |
GRAD_DEPEND
Deprecated.
Use
PoAxis.GradPositions.GRAD_DEPEND instead. |
SoSFString |
gradAddString
String to be concatenated.
|
SoSFBool |
gradAddStringVisibility
Specify the visibility of a string concatenated with the graduations.
|
SoSFFloat |
gradDistAxis
Distance from the graduations to the axis.
|
SoSFString |
gradFontName
Graduations font name.
|
SoSFFloat |
gradFontSize
Font size of the graduations.
|
SoSFEnum<PoAxis.TextPaths> |
gradPath
Graduations path.
|
SoSFEnum<PoAxis.GradPositions> |
gradPosition
Graduations position.
|
SoSFEnum<PoAxis.Visibilities> |
gradVisibility
Graduations visibility.
|
SoSFFloat |
gridLengthGradOtherSide
Grid lines length other side graduation texts.
|
SoSFFloat |
gridLengthGradSide
Grid lines length side graduation texts.
|
SoSFEnum<PoAxis.Visibilities> |
gridVisibility
Grid lines visibility.
|
SoSFFloat |
marginEnd
Margin at the end of the axis.
|
SoSFFloat |
marginStart
Margin at the start of the axis.
|
SoSFEnum<PoAxis.MarginTypes> |
marginType
Relative or absolute margin.
|
static int |
NUM_SUB_TICK
Deprecated.
Use
PoAxis.TickSubDefs.NUM_SUB_TICK instead. |
static int |
PATH_DEPEND
Deprecated.
Use
PoAxis.TextPaths.PATH_DEPEND instead. |
static int |
PATH_DOWN
Deprecated.
Use
PoAxis.TextPaths.PATH_DOWN instead. |
static int |
PATH_LEFT
Deprecated.
Use
PoAxis.TextPaths.PATH_LEFT instead. |
static int |
PATH_RIGHT
Deprecated.
Use
PoAxis.TextPaths.PATH_RIGHT instead. |
static int |
PATH_UP
Deprecated.
Use
PoAxis.TextPaths.PATH_UP instead. |
static int |
PERIOD_MAIN_TICK
Deprecated.
Use
PoAxis.TickSubDefs.PERIOD_MAIN_TICK instead. |
static int |
REL_MARGIN
Deprecated.
Use
PoAxis.MarginTypes.REL_MARGIN instead. |
SoSFEnum<PoAxis.AxisReverses> |
reverseFlag
Allow to reverse the writing path of all axis texts.
|
static int |
TICK_ACROSS_AXIS
Deprecated.
Use
PoAxis.TickPositions.TICK_ACROSS_AXIS instead. |
static int |
TICK_GRAD_OTHER_SIDE
Deprecated.
Use
PoAxis.TickPositions.TICK_GRAD_OTHER_SIDE instead. |
static int |
TICK_GRAD_SIDE
Deprecated.
Use
PoAxis.TickPositions.TICK_GRAD_SIDE instead. |
SoSFUShort |
tickFirstGrad
First graduation to display.
|
SoSFUShort |
tickLastGrad
Last graduation to display (number starting with the ending one).
|
SoSFFloat |
tickMainLength
Main graduations ticks length.
|
SoSFUShort |
tickNumOrPeriod
Number of secondary graduations (tickSubDef = NUM_SUB_TICK), or period of texts of graduations (tickSubDef = PERIOD_MAIN_TICK).
|
SoSFEnum<PoAxis.TickPositions> |
tickPosition
Position of the tick marks.
|
SoSFEnum<PoAxis.TickSubDefs> |
tickSubDef
Secondary graduations tick definition.
|
SoSFFloat |
tickSubLength
Secondary graduations ticks length.
|
SoSFEnum<PoAxis.Visibilities> |
tickVisibility
Tick marks visibility.
|
static int |
TITLE_DEPEND
Deprecated.
Use
PoAxis.TitlePositions.TITLE_DEPEND instead. |
static int |
TITLE_END
Deprecated.
Use
PoAxis.TitlePositions.TITLE_END instead. |
static int |
TITLE_MIDDLE
Deprecated.
Use
PoAxis.TitlePositions.TITLE_MIDDLE instead. |
SoSFFloat |
titleDistAxis
Distance from the title to the axis.
|
SoSFString |
titleFontName
Title font name.
|
SoSFFloat |
titleFontSize
Font size of the title.
|
SoSFEnum<PoAxis.TextPaths> |
titlePath
Path of the title.
|
SoSFEnum<PoAxis.TitlePositions> |
titlePosition
Position of the title.
|
SoSFString |
titleString
Title string.
|
SoSFEnum<PoAxis.Visibilities> |
titleVisibility
Visibility of the title.
|
static int |
VISIBILITY_DEPEND
Deprecated.
Use
PoAxis.Visibilities.VISIBILITY_DEPEND instead. |
static int |
VISIBILITY_OFF
Deprecated.
Use
PoAxis.Visibilities.VISIBILITY_OFF instead. |
static int |
VISIBILITY_ON
Deprecated.
Use
PoAxis.Visibilities.VISIBILITY_ON instead. |
FOLD_NODE_WRITE_FORMAT, SO_ANNO_TEXT3, SO_TEXT3, UNFOLD_NODE_WRITE_FORMAT, UPDATE_METHOD_IMMEDIATE, UPDATE_METHOD_ON_ACTION
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
PoAxis.ArrowAttributes |
getArrow()
Gets the arrow axis attributes computed by the last axis rebuilding.
|
static SoNodekitCatalog |
getClassNodekitCatalog()
Returns the
SoNodekitCatalog for this class. |
PoAxis.GradAttributes |
getGrad()
Gets the graduations axis attributes computed by the last axis rebuilding.
|
PoAxis.GridAttributes |
getGrid()
Gets the grid axis attributes computed by the last axis rebuilding.
|
PoAxis.MarginAttributes |
getMargin()
Gets the margin axis attributes computed by the last axis rebuilding.
|
PbMiscTextAttr |
getMiscTextAttr()
Gets a reference to
PbMiscTextAttr object for miscellaneous text attributes. |
PoAxis.AxisReverses |
getReverseFlag()
Gets the reverse flag axis attributes computed by the last axis rebuilding.
|
PoAxis.TickAttributes |
getTick()
Gets the tick axis attributes computed by the last axis rebuilding.
|
PoAxis.TitleAttributes |
getTitle()
Gets the title axis attributes computed by the last axis rebuilding.
|
void |
setMiscTextAttr(PbMiscTextAttr textAttr)
Sets a reference to
PbMiscTextAttr object for miscellaneous text attributes. |
addPostRebuildCallback, addPreRebuildCallback, getDomain, getNodeWriteFormat, getTextType, getUpdateMethod, isBuilt, isModified, isVRML2Mode, rebuild, setDomain, setNodeWriteFormat, setTextType, setUpdateMethod, setVRML2Mode, touchKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int VISIBILITY_OFF
PoAxis.Visibilities.VISIBILITY_OFF
instead.@Deprecated public static final int VISIBILITY_ON
PoAxis.Visibilities.VISIBILITY_ON
instead.@Deprecated public static final int VISIBILITY_DEPEND
PoAxis.Visibilities.VISIBILITY_DEPEND
instead.@Deprecated public static final int PATH_RIGHT
PoAxis.TextPaths.PATH_RIGHT
instead.@Deprecated public static final int PATH_LEFT
PoAxis.TextPaths.PATH_LEFT
instead.@Deprecated public static final int PATH_UP
PoAxis.TextPaths.PATH_UP
instead.@Deprecated public static final int PATH_DOWN
PoAxis.TextPaths.PATH_DOWN
instead.@Deprecated public static final int PATH_DEPEND
PoAxis.TextPaths.PATH_DEPEND
instead.@Deprecated public static final int GRAD_ABOVE
PoAxis.GradPositions.GRAD_ABOVE
instead.@Deprecated public static final int GRAD_BELOW
PoAxis.GradPositions.GRAD_BELOW
instead.@Deprecated public static final int GRAD_DEPEND
PoAxis.GradPositions.GRAD_DEPEND
instead.@Deprecated public static final int REL_MARGIN
PoAxis.MarginTypes.REL_MARGIN
instead.@Deprecated public static final int FIXED_MARGIN
PoAxis.MarginTypes.FIXED_MARGIN
instead.@Deprecated public static final int TICK_GRAD_SIDE
PoAxis.TickPositions.TICK_GRAD_SIDE
instead.@Deprecated public static final int TICK_GRAD_OTHER_SIDE
PoAxis.TickPositions.TICK_GRAD_OTHER_SIDE
instead.@Deprecated public static final int TICK_ACROSS_AXIS
PoAxis.TickPositions.TICK_ACROSS_AXIS
instead.@Deprecated public static final int TITLE_MIDDLE
PoAxis.TitlePositions.TITLE_MIDDLE
instead.@Deprecated public static final int TITLE_END
PoAxis.TitlePositions.TITLE_END
instead.@Deprecated public static final int TITLE_DEPEND
PoAxis.TitlePositions.TITLE_DEPEND
instead.@Deprecated public static final int NUM_SUB_TICK
PoAxis.TickSubDefs.NUM_SUB_TICK
instead.@Deprecated public static final int PERIOD_MAIN_TICK
PoAxis.TickSubDefs.PERIOD_MAIN_TICK
instead.@Deprecated public static final int AXIS_NO_REVERSE
PoAxis.AxisReverses.AXIS_NO_REVERSE
instead.@Deprecated public static final int AXIS_REVERSE
PoAxis.AxisReverses.AXIS_REVERSE
instead.@Deprecated public static final int AXIS_REVERSE_DEPEND
PoAxis.AxisReverses.AXIS_REVERSE_DEPEND
instead.public final SoSFEnum<PoAxis.Visibilities> gradVisibility
public final SoSFEnum<PoAxis.GradPositions> gradPosition
public final SoSFEnum<PoAxis.TextPaths> gradPath
public final SoSFString gradFontName
public final SoSFFloat gradFontSize
PoBase
description). As a result, the size of graduations text on the screen is the same regardless of text orientation. Default is 0.public final SoSFFloat gradDistAxis
PoBase
description). Default is 0.public final SoSFBool gradAddStringVisibility
public final SoSFString gradAddString
public final SoSFEnum<PoAxis.MarginTypes> marginType
public final SoSFFloat marginStart
public final SoSFFloat marginEnd
public final SoSFEnum<PoAxis.Visibilities> titleVisibility
public final SoSFEnum<PoAxis.TitlePositions> titlePosition
public final SoSFEnum<PoAxis.TextPaths> titlePath
public final SoSFString titleFontName
public final SoSFFloat titleFontSize
PoBase
description). As a result, the size of text on the screen is the same regardless of text orientation. Default is 0.public final SoSFFloat titleDistAxis
PoBase
description). Default is 0.public final SoSFString titleString
public final SoSFEnum<PoAxis.Visibilities> gridVisibility
public final SoSFFloat gridLengthGradSide
public final SoSFFloat gridLengthGradOtherSide
public final SoSFEnum<PoAxis.Visibilities> arrowVisibility
public final SoSFFloat arrowHeight
PoBase
description). Default is 0.03.public final SoSFFloat arrowLength
PoBase
description). Default is 0.05.public final SoSFEnum<PoAxis.Visibilities> tickVisibility
public final SoSFEnum<PoAxis.TickPositions> tickPosition
public final SoSFFloat tickMainLength
PoBase
description). Default is 0.public final SoSFFloat tickSubLength
PoBase
description). Default is 0.public final SoSFEnum<PoAxis.TickSubDefs> tickSubDef
public final SoSFUShort tickNumOrPeriod
public final SoSFUShort tickFirstGrad
public final SoSFUShort tickLastGrad
public final SoSFEnum<PoAxis.AxisReverses> reverseFlag
public void setMiscTextAttr(PbMiscTextAttr textAttr)
PbMiscTextAttr
object for miscellaneous text attributes.
If this method is not called (or called passing NULL as argument), this is the miscellaneous text attributes defined in the current inherited state (defined with the property node PoMiscTextAttr
) which are used.public PoAxis.TickAttributes getTick()
public static SoNodekitCatalog getClassNodekitCatalog()
SoNodekitCatalog
for this class.public PoAxis.GridAttributes getGrid()
public PoAxis.ArrowAttributes getArrow()
public PoAxis.AxisReverses getReverseFlag()
public PoAxis.TitleAttributes getTitle()
public PbMiscTextAttr getMiscTextAttr()
PbMiscTextAttr
object for miscellaneous text attributes.public PoAxis.GradAttributes getGrad()
public PoAxis.MarginAttributes getMargin()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com