Package com.openinventor.meshviz.graph
Class PoLinearAxis
java.lang.Object
- All Implemented Interfaces:
SafeDisposable
Class to build a linear axis.
This class builds a linear axis. This axis will be generated between the point start and the point end. The graduations (tick marks, labels, etc) will be in the plane given by the field
PoCartesianAxis.type.
By default, the text of the displayed graduations (the tick mark labels) are based on the actual coordinates of the axis (start and end). The text of the graduations is based on the specified range if the gradStart and gradEnd fields are not equal.
The graduations format depends on the current numerical display format. If the method setFormat(format) is called, the current numerical display format is "format". Otherwise the numerical display format is the inherited value from PoNumericDisplayFormat (default AUTO).
See PoAxis for discussion of axis attributes.
| Axis Attributes |
![]() |
- Log axis (
PoLogAxis) - Time axis (
PoTimeAxis) - General non-numeric axis (
PoGenAxis) - Polar axis (
PoPolarLinAxis,PoPolarLogAxis)
Multiple axes can generated conveniently using PoGroup2Axis, etc.
File format/default:
| gradVisibility | VISILITY_DEPEND |
| gradPosition | GRAD_DEPEND |
| gradPath | PATH_DEPEND |
| gradFontName | "" |
| gradFontSize | 0 |
| gradDistAxis | 0 |
| gradAddStringVisibility | false |
| gradAddString | "" |
| marginType | REL_MARGIN |
| marginStart | 0 |
| marginEnd | 0 |
| titleVisibility | VISILITY_DEPEND |
| titlePosition | TITLE_DEPEND |
| titlePath | PATH_DEPEND |
| titleFontName | "" |
| titleFontSize | 0 |
| titleDistAxis | 0 |
| titleString | "" |
| gridVisibility | VISILITY_DEPEND |
| gridLengthGradSide | 0 |
| gridLengthGradOtherSide | 1 |
| arrowVisibility | VISIBILITY_DEPEND |
| arrowHeight | 0.03 |
| arrowLength | 0.05 |
| tickVisibility | VISIBILITY_DEPEND |
| tickPosition | TICK_GRAD_SIDE |
| tickMainLength | 0 |
| tickSubLength | 0 |
| tickSubDef | PERIOD_MAIN_TICK |
| tickNumOrPeriod | 1 |
| tickFirstGrad | 1 |
| tickLastGrad | 1 |
| reverseFlag | AXIS_REVERSE_DEPEND |
| start | 0 0 0 |
| end | 1 |
| gradStart | 0 |
| gradEnd | 0 |
| type | XY |
| step | 0 |
| gradFit | GRAD_UNFIT |
| multFactorPosition | MULT_FACTOR_END |
| multFactorDistAxis | 0 |
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFirst graduation rounded or not.static classstatic enumNested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoCartesianAxis
PoCartesianAxis.TypesNested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoAxis
PoAxis.ArrowAttributes, PoAxis.AxisReverses, PoAxis.GradAttributes, PoAxis.GradPositions, PoAxis.GridAttributes, PoAxis.MarginAttributes, PoAxis.MarginTypes, PoAxis.TextPaths, PoAxis.TickAttributes, PoAxis.TickPositions, PoAxis.TickSubDefs, PoAxis.TitleAttributes, PoAxis.TitlePositions, PoAxis.VisibilitiesNested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoBase
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypesNested 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 TypeFieldDescriptionfinal SoSFEnum<PoLinearAxis.GradFits> This flag indicates if the first graduation is rounded or not.final SoSFFloatDistance from the multiplicative factor to the axis.Position of the multiplicative factor.final SoSFFloatDefines the step for the axis.Fields inherited from class com.openinventor.meshviz.graph.PoCartesianAxis
end, gradEnd, gradStart, start, typeFields inherited from class com.openinventor.meshviz.graph.PoAxis
arrowHeight, arrowLength, arrowVisibility, gradAddString, gradAddStringVisibility, gradDistAxis, gradFontName, gradFontSize, gradPath, gradPosition, gradVisibility, gridLengthGradOtherSide, gridLengthGradSide, gridVisibility, marginEnd, marginStart, marginType, reverseFlag, tickFirstGrad, tickLastGrad, tickMainLength, tickNumOrPeriod, tickPosition, tickSubDef, tickSubLength, tickVisibility, titleDistAxis, titleFontName, titleFontSize, titlePath, titlePosition, titleString, titleVisibilityFields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoringFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PoLinearAxis(SbVec3f _start, float _end, PoCartesianAxis.Types _type) Calls PoLinearAxis(_start, _end, _type, (float)0.0).PoLinearAxis(SbVec3f _start, float _end, PoCartesianAxis.Types _type, float _step) Constructor.PoLinearAxis(SbVec3f _start, float _end, PoCartesianAxis.Types _type, float _gradStart, float _gradEnd) Calls PoLinearAxis(_start, _end, _type, _gradStart, _gradEnd, (float)0.0).PoLinearAxis(SbVec3f _start, float _end, PoCartesianAxis.Types _type, float _gradStart, float _gradEnd, float _step) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalogReturns theSoNodekitCatalogfor this class.Gets a reference to thePbNumericDisplayFormatobject for the numerical display format for the graduations.Returns the current multiplicative factor attributes (those computed can be different from the associated field).floatgetStep()Returns the current step attribute (the step computed can be different from the associated field).voidsetFormat(PbNumericDisplayFormat format) Sets a reference to aPbNumericDisplayFormatobject for the numerical display format for the graduations.Methods inherited from class com.openinventor.meshviz.graph.PoAxis
getArrow, getGrad, getGrid, getMargin, getMiscTextAttr, getReverseFlag, getTick, getTitle, setMiscTextAttrMethods inherited from class com.openinventor.meshviz.graph.PoBase
addPostRebuildCallback, addPreRebuildCallback, getDomain, getNodeWriteFormat, getTextType, getUpdateMethod, isBuilt, isModified, isVRML2Mode, rebuild, setDomain, setNodeWriteFormat, setTextType, setUpdateMethod, setVRML2Mode, touchKitMethods inherited from class com.openinventor.inventor.nodekits.SoBaseKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildrenMethods 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, 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
-
step
Defines the step for the axis. If this value is <= 0, the step is automatically calculated. -
gradFit
This flag indicates if the first graduation is rounded or not. -
multFactorPosition
Position of the multiplicative factor. -
multFactorDistAxis
Distance from the multiplicative factor to the axis. This value is a percentage of the current domain (cfPoBasedescription). If this value is <= 0, the distance is automatically calculated.
-
-
Constructor Details
-
PoLinearAxis
Calls PoLinearAxis(_start, _end, _type, (float)0.0). -
PoLinearAxis
public PoLinearAxis(SbVec3f _start, float _end, PoCartesianAxis.Types _type, float _gradStart, float _gradEnd) Calls PoLinearAxis(_start, _end, _type, _gradStart, _gradEnd, (float)0.0). -
PoLinearAxis
public PoLinearAxis()Default constructor. -
PoLinearAxis
Constructor. -
PoLinearAxis
public PoLinearAxis(SbVec3f _start, float _end, PoCartesianAxis.Types _type, float _gradStart, float _gradEnd, float _step) Constructor.- Since:
- Open Inventor 9.3
-
-
Method Details
-
getMultFactor
Returns the current multiplicative factor attributes (those computed can be different from the associated field). -
getClassNodekitCatalog
Returns theSoNodekitCatalogfor this class. -
setFormat
Sets a reference to aPbNumericDisplayFormatobject for the numerical display format for the graduations. If this method is not called (or called passing NULL as argument), the numerical display format defined in the current inherited state (defined with the property nodePoNumericDisplayFormat) is used. -
getFormat
Gets a reference to thePbNumericDisplayFormatobject for the numerical display format for the graduations. Returns null if none specified. -
getStep
public float getStep()Returns the current step attribute (the step computed can be different from the associated field).
-
