Class PoArrow
- java.lang.Object
-
- All Implemented Interfaces:
SafeDisposable
public class PoArrow extends PoGraphMaster
Class to build a 2D arrow. This class builds an arrow in the plane XY. The arrow is defined by a point list. The start pattern and the end pattern can be parameterized.File format/default:
PoArrow
{point 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="Heading337">CATALOG PARTS</A></h4> <ul><b>PoArrow</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><br> <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
PoArrow.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<PoArrow.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.SoMFVec2f
point
Point list of the arrow.SoSFEnum<PoArrow.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 PoArrow()
Default constructor.PoArrow(SbVec2f[] _point)
Calls PoArrow(_point, PoArrow.PatternTypes.valueOf( PoArrow.PatternTypes.NO_PATTERN.getValue() ), PoArrow.PatternTypes.valueOf( PoArrow.PatternTypes.NO_PATTERN.getValue() ), (float)0.05f, (float)0.03f).PoArrow(SbVec2f[] _point, PoArrow.PatternTypes startType)
Calls PoArrow(_point, startType, PoArrow.PatternTypes.valueOf( PoArrow.PatternTypes.NO_PATTERN.getValue() ), (float)0.05f, (float)0.03f).PoArrow(SbVec2f[] _point, PoArrow.PatternTypes startType, PoArrow.PatternTypes endType)
Calls PoArrow(_point, startType, endType, (float)0.05f, (float)0.03f).PoArrow(SbVec2f[] _point, PoArrow.PatternTypes startType, PoArrow.PatternTypes endType, float _patternWidth)
Calls PoArrow(_point, startType, endType, _patternWidth, (float)0.03f).PoArrow(SbVec2f[] _point, PoArrow.PatternTypes startType, PoArrow.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 SoMFVec2f point
Point list of the arrow.
-
startPatternType
public final SoSFEnum<PoArrow.PatternTypes> startPatternType
Defines the start arrow pattern type.
-
endPatternType
public final SoSFEnum<PoArrow.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
-
PoArrow
public PoArrow(SbVec2f[] _point, PoArrow.PatternTypes startType, PoArrow.PatternTypes endType)
Calls PoArrow(_point, startType, endType, (float)0.05f, (float)0.03f).
-
PoArrow
public PoArrow(SbVec2f[] _point, PoArrow.PatternTypes startType)
Calls PoArrow(_point, startType, PoArrow.PatternTypes.valueOf( PoArrow.PatternTypes.NO_PATTERN.getValue() ), (float)0.05f, (float)0.03f).
-
PoArrow
public PoArrow(SbVec2f[] _point)
Calls PoArrow(_point, PoArrow.PatternTypes.valueOf( PoArrow.PatternTypes.NO_PATTERN.getValue() ), PoArrow.PatternTypes.valueOf( PoArrow.PatternTypes.NO_PATTERN.getValue() ), (float)0.05f, (float)0.03f).
-
PoArrow
public PoArrow(SbVec2f[] _point, PoArrow.PatternTypes startType, PoArrow.PatternTypes endType, float _patternWidth)
Calls PoArrow(_point, startType, endType, _patternWidth, (float)0.03f).
-
PoArrow
public PoArrow()
Default constructor.
-
PoArrow
public PoArrow(SbVec2f[] _point, PoArrow.PatternTypes startType, PoArrow.PatternTypes endType, float _patternWidth, float _patternHeight)
Constructor.
-
-
Method Detail
-
getClassNodekitCatalog
public static SoNodekitCatalog getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.
-
-