Class PoAutoCubeAxis
- All Implemented Interfaces:
SafeDisposable
SoCamera
class). The graduations and the title of the axes are always legible whatever the view definition. The two points (start and end fields) define the diagonal of the parallelepiped and only the edges which are intersecting a visible face and an invisible face will be graduated. The visible and invisible faces depend on the view definition. The visible faces of the parallelepiped are the back faces.
1-----------2 Y /| (2) /| | / | / | | / | (5) / | Vertices numerotation. | 6----------5 | ----- X | | | (1) | / |(3) 0----|------3 / | / | (4) / / | / | / Z |/ (0) | / 7----------4 Face 0 : 4 5 6 7 ==> edges : (4,5) (5,6) (6,7) (7,4) Face 1 : 2 3 4 5 ==> edges : (2,3) (3,4) (4,5) (5,2) Face 2 : 0 1 2 3 ==> edges : (0,1) (1,2) (2,3) (3,0) Face 3 : 0 1 6 7 ==> edges : (0,1) (1,6) (6,7) (7,0) Face 4 : 0 3 4 7 ==> edges : (0,3) (3,4) (4,7) (7,0) Face 5 : 1 2 5 6 ==> edges : (1,2) (2,5) (5,6) (6,1)
The graduations of these axes are defined by the fields gradStart
and gradEnd
. However if these fields are equal, the fields start
and end
are used to define the graduation values. Furthermore, the fields gradStart
and gradEnd
are always ignored for axis type GENERALIZED
.
File format/default:
start | 0 0 0 |
end | 1 1 1 |
gradStart | 0 0 0 |
gradEnd | 0 0 0 |
xTitle | "" |
yTitle | "" |
zTitle | "" |
isGridLinesXVisible | false |
isGridLinesYVisible | false |
isGridLinesZVisible | false |
isBackgroundFacesVisible | false |
isIntersectingGradsVisible | false |
modellingMatrix | 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 |
viewingMatrix | 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 |
projectionMatrix | 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 |
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Type of axes on the parallelepiped edges.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 SoSFVec3f
End point of the parallelepiped's diagonal.final SoSFVec3f
Defines the value of the graduation (tick label) corresponding to the end point of this group of axes.final SoSFVec3f
Defines the value of the graduation (tick label) corresponding to the starting point of this group of axes.final SoSFBool
Sets the visibility of visible faces.final SoSFBool
Sets the visibility of the grid lines of the X axes displayed on the visible faces.final SoSFBool
Sets the visibility of the grid lines of the Y axes displayed on the visible faces.final SoSFBool
Sets the visibility of the grid lines of the Z axes displayed on the visible faces.final SoSFBool
Given A1 and A2 2 consecutive axes with the first (the last) graduation of A1 intersects the first or the last graduation of A2.final SoSFMatrix
This modelling matrix is used to determine the visibility of each face (and thus the axes to draw).final SoSFMatrix
This modelling matrix is used to determine the visibility of each face (and thus the axes to draw).final SoSFVec3f
Start point of the parallelepiped's diagonal.final SoSFMatrix
This viewing matrix is used to determine the visibility of each face (and thus the axes to draw).final SoSFString
Title of the X axes.final SoSFString
Title of the Y axes.final SoSFString
Title of the Z axes.Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoring
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PoAutoCubeAxis
(SbVec3f _start, SbVec3f _end, PoAutoCubeAxis.AxisTypes xAxisType, PoAutoCubeAxis.AxisTypes yAxisType, PoAutoCubeAxis.AxisTypes zAxisType) Calls PoAutoCubeAxis(_start, _end, xAxisType, yAxisType, zAxisType, (java.lang.String)null, (java.lang.String)null, (java.lang.String)null).PoAutoCubeAxis
(SbVec3f _start, SbVec3f _end, PoAutoCubeAxis.AxisTypes xAxisType, PoAutoCubeAxis.AxisTypes yAxisType, PoAutoCubeAxis.AxisTypes zAxisType, String xTtle) Calls PoAutoCubeAxis(_start, _end, xAxisType, yAxisType, zAxisType, xTtle, (java.lang.String)null, (java.lang.String)null).PoAutoCubeAxis
(SbVec3f _start, SbVec3f _end, PoAutoCubeAxis.AxisTypes xAxisType, PoAutoCubeAxis.AxisTypes yAxisType, PoAutoCubeAxis.AxisTypes zAxisType, String xTtle, String yTtle) Calls PoAutoCubeAxis(_start, _end, xAxisType, yAxisType, zAxisType, xTtle, yTtle, (java.lang.String)null).PoAutoCubeAxis
(SbVec3f _start, SbVec3f _end, PoAutoCubeAxis.AxisTypes xAxisType, PoAutoCubeAxis.AxisTypes yAxisType, PoAutoCubeAxis.AxisTypes zAxisType, String xTtle, String yTtle, String zTtle) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalog
Returns theSoNodekitCatalog
for this class.void
GLRender
(SoGLRenderAction action) Forces node-kit rebuilding.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, 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
-
start
Start point of the parallelepiped's diagonal. (0,0,0) by default. -
end
End point of the parallelepiped's diagonal. (1,1,1) by default. -
gradStart
Defines the value of the graduation (tick label) corresponding to the starting point of this group of axes. SeePoCartesianAxis.gradStart
for details.- Since:
- Open Inventor 9.5.1
-
gradEnd
Defines the value of the graduation (tick label) corresponding to the end point of this group of axes. SeePoCartesianAxis.gradEnd
for details.- Since:
- Open Inventor 9.5.1
-
xTitle
Title of the X axes. Empty by default. -
yTitle
Title of the Y axes. Empty by default. -
zTitle
Title of the Z axes. Empty by default. -
isGridLinesXVisible
Sets the visibility of the grid lines of the X axes displayed on the visible faces. (The attributes of grid lines ofPoAxis
cannot be used because the graduations of thes axes are not necessarily in the same plane than the visible faces). false by default. -
isGridLinesYVisible
Sets the visibility of the grid lines of the Y axes displayed on the visible faces. (The attributes of grid lines ofPoAxis
cannot be used because the graduations of thes axes are not necessarily in the same plane than the visible faces). false by default. -
isGridLinesZVisible
Sets the visibility of the grid lines of the Z axes displayed on the visible faces. (The attributes of grid lines ofPoAxis
cannot be used because the graduations of thes axes are not necessarily in the same plane than the visible faces). false by default. -
isBackgroundFacesVisible
Sets the visibility of visible faces. false by default. -
isIntersectingGradsVisible
Given A1 and A2 2 consecutive axes with the first (the last) graduation of A1 intersects the first or the last graduation of A2. This flag allows the application to suppress or not the first (the last) graduation of A1. The attribute tickFirstGrad (tickLastGrad) ofPoAxis
is used to suppress the first (the last) graduation. false by default. -
modellingMatrix
This modelling matrix is used to determine the visibility of each face (and thus the axes to draw). Each time anSoGLRenderAction
, anSoCallbackAction
, anSoRayPickAction
or anSoVectorizeAction
traverse this node, this matrix is set to the current modelling matrix and the axes are rebuilt. -
viewingMatrix
This viewing matrix is used to determine the visibility of each face (and thus the axes to draw). Each time anSoGLRenderAction
, anSoCallbackAction
, anSoRayPickAction
or anSoVectorizeAction
traverse this node, this matrix is set to the current viewing matrix and the axes are rebuilt. viewingMatrix depends on the current camera. -
projectionMatrix
This modelling matrix is used to determine the visibility of each face (and thus the axes to draw). Each time anSoGLRenderAction
, anSoCallbackAction
, anSoRayPickAction
or anSoVectorizeAction
traverse this node, this matrix is set to the current projection matrix and the axes are rebuilt. projectionMatrix depends on the current camera.
-
-
Constructor Details
-
PoAutoCubeAxis
public PoAutoCubeAxis(SbVec3f _start, SbVec3f _end, PoAutoCubeAxis.AxisTypes xAxisType, PoAutoCubeAxis.AxisTypes yAxisType, PoAutoCubeAxis.AxisTypes zAxisType, String xTtle, String yTtle) Calls PoAutoCubeAxis(_start, _end, xAxisType, yAxisType, zAxisType, xTtle, yTtle, (java.lang.String)null). -
PoAutoCubeAxis
public PoAutoCubeAxis(SbVec3f _start, SbVec3f _end, PoAutoCubeAxis.AxisTypes xAxisType, PoAutoCubeAxis.AxisTypes yAxisType, PoAutoCubeAxis.AxisTypes zAxisType, String xTtle) Calls PoAutoCubeAxis(_start, _end, xAxisType, yAxisType, zAxisType, xTtle, (java.lang.String)null, (java.lang.String)null). -
PoAutoCubeAxis
public PoAutoCubeAxis(SbVec3f _start, SbVec3f _end, PoAutoCubeAxis.AxisTypes xAxisType, PoAutoCubeAxis.AxisTypes yAxisType, PoAutoCubeAxis.AxisTypes zAxisType) Calls PoAutoCubeAxis(_start, _end, xAxisType, yAxisType, zAxisType, (java.lang.String)null, (java.lang.String)null, (java.lang.String)null). -
PoAutoCubeAxis
public PoAutoCubeAxis()Default constructor. -
PoAutoCubeAxis
public PoAutoCubeAxis(SbVec3f _start, SbVec3f _end, PoAutoCubeAxis.AxisTypes xAxisType, PoAutoCubeAxis.AxisTypes yAxisType, PoAutoCubeAxis.AxisTypes zAxisType, String xTtle, String yTtle, String zTtle) Constructor. (By default the X, Y, and Z axes are linear).
-
-
Method Details
-
GLRender
Forces node-kit rebuilding. SeePoBase
. -
getClassNodekitCatalog
Returns theSoNodekitCatalog
for this class.
-