Package com.openinventor.meshviz.graph
Class PoAxis
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
PoAngularAxis
,PoCartesianAxis
,PoPolarAxis
,PoTimeAxis
Abstract class for axis representations.
This class groups all common methods and all common fields of all axes. Some enumerations are named DEPEND, in such a case, the choice of these values is done when building the axis.
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
).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
Axis reverse type.static class
static enum
Graduation position type.static class
static class
static enum
Margin type.static enum
Text path type.static class
static enum
Tick position type.static enum
Sub-tick type.static class
static enum
Title position type.static enum
Enumerations.Nested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoBase
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypes
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
FieldsModifier and TypeFieldDescriptionfinal SoSFFloat
Arrow height.final SoSFFloat
Arrow length.final SoSFEnum
<PoAxis.Visibilities> Arrow visibility.final SoSFString
String to be concatenated.final SoSFBool
Specify the visibility of a string concatenated with the graduations.final SoSFFloat
Distance from the graduations to the axis.final SoSFString
Graduations font name.final SoSFFloat
Font size of the graduations.final SoSFEnum
<PoAxis.TextPaths> Graduations path.final SoSFEnum
<PoAxis.GradPositions> Graduations position.final SoSFEnum
<PoAxis.Visibilities> Graduations visibility.final SoSFFloat
Grid lines length other side graduation texts.final SoSFFloat
Grid lines length side graduation texts.final SoSFEnum
<PoAxis.Visibilities> Grid lines visibility.final SoSFFloat
Margin at the end of the axis.final SoSFFloat
Margin at the start of the axis.final SoSFEnum
<PoAxis.MarginTypes> Relative or absolute margin.final SoSFEnum
<PoAxis.AxisReverses> Allow to reverse the writing path of all axis texts.final SoSFUShort
First graduation to display.final SoSFUShort
Last graduation to display (number starting with the ending one).final SoSFFloat
Main graduations ticks length.final SoSFUShort
Number of secondary graduations (tickSubDef = NUM_SUB_TICK), or period of texts of graduations (tickSubDef = PERIOD_MAIN_TICK).final SoSFEnum
<PoAxis.TickPositions> Position of the tick marks.final SoSFEnum
<PoAxis.TickSubDefs> Secondary graduations tick definition.final SoSFFloat
Secondary graduations ticks length.final SoSFEnum
<PoAxis.Visibilities> Tick marks visibility.final SoSFFloat
Distance from the title to the axis.final SoSFString
Title font name.final SoSFFloat
Font size of the title.final SoSFEnum
<PoAxis.TextPaths> Path of the title.final SoSFEnum
<PoAxis.TitlePositions> Position of the title.final SoSFString
Title string.final SoSFEnum
<PoAxis.Visibilities> Visibility of the title.Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoring
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptiongetArrow()
Gets the arrow axis attributes computed by the last axis rebuilding.static SoNodekitCatalog
Returns theSoNodekitCatalog
for this class.getGrad()
Gets the graduations axis attributes computed by the last axis rebuilding.getGrid()
Gets the grid axis attributes computed by the last axis rebuilding.Gets the margin axis attributes computed by the last axis rebuilding.Gets a reference toPbMiscTextAttr
object for miscellaneous text attributes.Gets the reverse flag axis attributes computed by the last axis rebuilding.getTick()
Gets the tick axis attributes computed by the last axis rebuilding.getTitle()
Gets the title axis attributes computed by the last axis rebuilding.void
setMiscTextAttr
(PbMiscTextAttr textAttr) Sets a reference toPbMiscTextAttr
object for miscellaneous text attributes.Methods inherited from class com.openinventor.meshviz.graph.PoBase
addPostRebuildCallback, addPreRebuildCallback, getDomain, getNodeWriteFormat, getTextType, getUpdateMethod, isBuilt, isModified, isVRML2Mode, rebuild, setDomain, setNodeWriteFormat, setTextType, setUpdateMethod, setVRML2Mode, touchKit
Methods inherited from class com.openinventor.inventor.nodekits.SoBaseKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
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, 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 Details
-
gradVisibility
Graduations visibility. . Default is VISIBILITY_DEPEND. -
gradPosition
Graduations position. . Default is GRAD_DEPEND. -
gradPath
Graduations path. . Default is PATH_DEPEND. -
gradFontName
Graduations font name. If the font is equal to its default value (empty string), the font used is the font of the current miscellaneous text attributes. Default is empty string. -
gradFontSize
Font size of the graduations. If this value is <= 0, the graduations font size is fixed at 0.04 if the graduations do not cross each other. This value is a percentage of the current domain (seePoBase
description). As a result, the size of graduations text on the screen is the same regardless of text orientation. Default is 0. -
gradDistAxis
Distance from the graduations to the axis. If this value is <= 0, the distance is automatically calculated. This value is a percentage of the current domain (cfPoBase
description). Default is 0. -
gradAddStringVisibility
Specify the visibility of a string concatenated with the graduations. Default is false. -
gradAddString
String to be concatenated. Default is empty string. -
marginType
Relative or absolute margin. . Default is REL_MARGIN. -
marginStart
Margin at the start of the axis. Default is 0. -
marginEnd
Margin at the end of the axis. Default is 0. -
titleVisibility
Visibility of the title. . Default is VISIBILITY_DEPEND. -
titlePosition
Position of the title. . Default is TITLE_DEPEND. -
titlePath
Path of the title. . Default is PATH_DEPEND. -
titleFontName
Title font name. If the font is equal to its default value (empty string), the font used is the font of the current miscellaneous text attributes. Default is empty string. -
titleFontSize
Font size of the title. If this value is <= 0, the graduations font size is fixed at 0.055. This value is a percentage of the current domain (seePoBase
description). As a result, the size of text on the screen is the same regardless of text orientation. Default is 0. -
titleDistAxis
Distance from the title to the axis. If this value is <= 0, the distance is automatically calculated. This value is a percentage of the current domain (cfPoBase
description). Default is 0. -
titleString
Title string. Default is empty string. -
gridVisibility
Grid lines visibility. . Default is VISIBILITY_DEPEND. -
gridLengthGradSide
Grid lines length side graduation texts. Default is 0. -
gridLengthGradOtherSide
Grid lines length other side graduation texts. Default is 1. -
arrowVisibility
Arrow visibility. . Default is VISIBILITY_DEPEND. -
arrowHeight
Arrow height. If this value is <= 0, the height is fixed at 0.03. This value is a percentage of the current domain (cfPoBase
description). Default is 0.03. -
arrowLength
Arrow length. If this value is <= 0, the length is fixed at 0.05. This value is a percentage of the current domain (cfPoBase
description). Default is 0.05. -
tickVisibility
Tick marks visibility. . Default is VISIBILITY_DEPEND. -
tickPosition
Position of the tick marks. . Default is TICK_GRAD_SIDE. -
tickMainLength
Main graduations ticks length. If this value is <= 0, the height is automatically calculated. This value is a percentage of the current domain (cfPoBase
description). Default is 0. -
tickSubLength
Secondary graduations ticks length. If this value is <= 0, the length is automatically calculated. This value is a percentage of the current domain (cfPoBase
description). Default is 0. -
tickSubDef
Secondary graduations tick definition. The secondary graduations can be given either by a number or by a period. . Default is PERIOD_MAIN_TICK. -
tickNumOrPeriod
Number of secondary graduations (tickSubDef = NUM_SUB_TICK), or period of texts of graduations (tickSubDef = PERIOD_MAIN_TICK). Default is 1. -
tickFirstGrad
First graduation to display. Default is 1. -
tickLastGrad
Last graduation to display (number starting with the ending one). Default is 1. -
reverseFlag
Allow to reverse the writing path of all axis texts. . Default is AXIS_REVERSE_DEPEND.
-
-
Method Details
-
getGrid
Gets the grid axis attributes computed by the last axis rebuilding. If the axis have never been built, the method return the value of the equivalent field. -
getClassNodekitCatalog
Returns theSoNodekitCatalog
for this class. -
getArrow
Gets the arrow axis attributes computed by the last axis rebuilding. If the axis have never been built, the method return the value of the equivalent field. -
getTitle
Gets the title axis attributes computed by the last axis rebuilding. If the axis have never been built, the method return the value of the equivalent field. -
getReverseFlag
Gets the reverse flag axis attributes computed by the last axis rebuilding. If the axis have never been built, the method return the value of the equivalent field. -
getTick
Gets the tick axis attributes computed by the last axis rebuilding. If the axis have never been built, the method return the value of the equivalent field. -
getMiscTextAttr
Gets a reference toPbMiscTextAttr
object for miscellaneous text attributes. -
setMiscTextAttr
Sets a reference toPbMiscTextAttr
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 nodePoMiscTextAttr
) which are used. -
getMargin
Gets the margin axis attributes computed by the last axis rebuilding. If the axis have never been built, the method return the value of the equivalent field. -
getGrad
Gets the graduations axis attributes computed by the last axis rebuilding. If the axis have never been built, the method return the value of the equivalent field.
-