Class PoArrow3
- java.lang.Object
-
- All Implemented Interfaces:
SafeDisposable
public class PoArrow3 extends PoGraphMaster
Class to build a 3D arrow. This node draws a 3D arrow. The arrow is defined by a point list. The start pattern and the end pattern can be parameterized.This node draws a single 3D arrow consisting of a polyline with optional arrowhead or rectangle at each end. Therefore the minimum number of points is 2. Additional points could be used to make, for example, a curved arrow.
File format/default:
PoArrow3
{point 0 0 0 startPatternType NO_PATTERN endPatternType NO_PATTERN patternWidth 0.05 patternHeight 0.03 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <link REL="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"> <title></title> </head> <BODY> <h1></h1> <h4> <A NAME="Heading481">CATALOG PARTS</A></h4> <ul><b>PoArrow3</b> {</ul> <ul><ul><b>Separator</b> <tt>alternateRep</tt> (from PoBase) {<br> </ul></ul> <ul><ul><ul><b>AppearanceKit</b> <tt>appearance</tt> (from PoBase)</ul></ul></ul> <ul><ul><ul><i>Specifies the appearance of all the kit. By default lightModel.model=BASE_COLOR.</i></ul></ul></ul> <ul><ul><ul><b>MatrixTransform</b> <tt>domainTransform</tt> (from PoBase)</ul></ul></ul> <ul><ul><ul><i>Corresponds to the domain transformation.</i></ul></ul></ul> <ul><ul><ul><ul></ul></ul></ul></ul> <ul><ul><ul><b>Separator</b> <tt>bodySep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to draw the body of the arrow.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>bodyApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of the body of the arrow.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b> <tt>body</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a SoLineSet shape to draw the body of the arrow.</i></ul></ul></ul></ul> <ul><ul><ul>}<br> <br> <b>Separator</b> <tt>startSep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to draw the start pattern of the arrow.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>startApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of the start pattern of the arrow.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b> <tt>start</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a SoFaceSet shape to draw the start pattern of the arrow.</i></ul></ul></ul></ul> <ul><ul><ul>}<br> <br> <b>Separator</b> <tt>endSep</tt> {</ul></ul></ul> <ul><ul><ul><i>Contains properties and shapes to draw the end pattern of the arrow.</i></ul></ul></ul> <ul><ul><ul><ul><b>AppearanceKit</b> <tt>endApp</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Specifies the appearance of the end pattern of the arrow.</i></ul></ul></ul></ul> <ul><ul><ul><ul><b>Group</b> <tt>end</tt></ul></ul></ul></ul> <ul><ul><ul><ul><i>Contains a SoFaceSet shape to draw the end pattern of the arrow.</i></ul></ul></ul></ul> <ul><ul><ul>}</ul></ul></ul> <ul><ul>}</ul></ul> <ul>}</ul> <ul><ul><br> </ul></ul> </body> </html>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PoArrow3.PatternTypes
Type of pattern at the arrow extremities.-
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
Fields Modifier and Type Field Description SoSFEnum<PoArrow3.PatternTypes>
endPatternType
Defines the end arrow pattern type.SoSFFloat
patternHeight
Define the height of the start and end arrow pattern.SoSFFloat
patternWidth
Define the width of the start and end arrow pattern.SoMFVec3f
point
Point list of the arrow.SoSFEnum<PoArrow3.PatternTypes>
startPatternType
Defines the start arrow pattern type.-
Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoring
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description PoArrow3()
Default constructor.PoArrow3(SbVec3f[] _point)
Calls PoArrow3(_point, PoArrow3.PatternTypes.valueOf( PoArrow3.PatternTypes.NO_PATTERN.getValue() ), PoArrow3.PatternTypes.valueOf( PoArrow3.PatternTypes.NO_PATTERN.getValue() ), (float)0.05f, (float)0.03f).PoArrow3(SbVec3f[] _point, PoArrow3.PatternTypes startType)
Calls PoArrow3(_point, startType, PoArrow3.PatternTypes.valueOf( PoArrow3.PatternTypes.NO_PATTERN.getValue() ), (float)0.05f, (float)0.03f).PoArrow3(SbVec3f[] _point, PoArrow3.PatternTypes startType, PoArrow3.PatternTypes endType)
Calls PoArrow3(_point, startType, endType, (float)0.05f, (float)0.03f).PoArrow3(SbVec3f[] _point, PoArrow3.PatternTypes startType, PoArrow3.PatternTypes endType, float _patternWidth)
Calls PoArrow3(_point, startType, endType, _patternWidth, (float)0.03f).PoArrow3(SbVec3f[] _point, PoArrow3.PatternTypes startType, PoArrow3.PatternTypes endType, float _patternWidth, float _patternHeight)
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SoNodekitCatalog
getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.-
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 Detail
-
point
public final SoMFVec3f point
Point list of the arrow.
-
startPatternType
public final SoSFEnum<PoArrow3.PatternTypes> startPatternType
Defines the start arrow pattern type.
-
endPatternType
public final SoSFEnum<PoArrow3.PatternTypes> endPatternType
Defines the end arrow pattern type.
-
patternWidth
public final SoSFFloat patternWidth
Define the width of the start and end arrow pattern. It is given in the normalized space [0-1]x[0-1]x([0-1]) defined by the current domain (cfPoBase
description).
-
-
Constructor Detail
-
PoArrow3
public PoArrow3(SbVec3f[] _point, PoArrow3.PatternTypes startType, PoArrow3.PatternTypes endType)
Calls PoArrow3(_point, startType, endType, (float)0.05f, (float)0.03f).
-
PoArrow3
public PoArrow3(SbVec3f[] _point, PoArrow3.PatternTypes startType)
Calls PoArrow3(_point, startType, PoArrow3.PatternTypes.valueOf( PoArrow3.PatternTypes.NO_PATTERN.getValue() ), (float)0.05f, (float)0.03f).
-
PoArrow3
public PoArrow3(SbVec3f[] _point)
Calls PoArrow3(_point, PoArrow3.PatternTypes.valueOf( PoArrow3.PatternTypes.NO_PATTERN.getValue() ), PoArrow3.PatternTypes.valueOf( PoArrow3.PatternTypes.NO_PATTERN.getValue() ), (float)0.05f, (float)0.03f).
-
PoArrow3
public PoArrow3(SbVec3f[] _point, PoArrow3.PatternTypes startType, PoArrow3.PatternTypes endType, float _patternWidth)
Calls PoArrow3(_point, startType, endType, _patternWidth, (float)0.03f).
-
PoArrow3
public PoArrow3()
Default constructor.
-
PoArrow3
public PoArrow3(SbVec3f[] _point, PoArrow3.PatternTypes startType, PoArrow3.PatternTypes endType, float _patternWidth, float _patternHeight)
Constructor.
-
-
Method Detail
-
getClassNodekitCatalog
public static SoNodekitCatalog getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.
-
-