Enum SoRayPickAction.PickingModes
- java.lang.Object
-
- java.lang.Enum<SoRayPickAction.PickingModes>
-
- com.openinventor.inventor.actions.SoRayPickAction.PickingModes
-
- All Implemented Interfaces:
IntegerValuedEnum
,java.io.Serializable
,java.lang.Comparable<SoRayPickAction.PickingModes>
- Enclosing class:
- SoRayPickAction
public static enum SoRayPickAction.PickingModes extends java.lang.Enum<SoRayPickAction.PickingModes> implements IntegerValuedEnum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
In the default mode, Inventor computes the intersection of the pick ray with geometry nodes (face, line, point, volume, mesh, etc).POINT_PICKING
In this mode, Inventor finds all the vertices inside the pick radius.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Returns the integer value of the enum constant.static SoRayPickAction.PickingModes
valueOf(int val)
Returns the enum constant of this type with the specified integer valuestatic SoRayPickAction.PickingModes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SoRayPickAction.PickingModes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final SoRayPickAction.PickingModes DEFAULT
In the default mode, Inventor computes the intersection of the pick ray with geometry nodes (face, line, point, volume, mesh, etc).SoPickedPoint.getPoint()
returns the coordinate of the intersection andSoPickedPoint.getDetail()
returns (usually) anSoDetail
class specific to the picked geometry.
-
POINT_PICKING
public static final SoRayPickAction.PickingModes POINT_PICKING
In this mode, Inventor finds all the vertices inside the pick radius. However this is only supported forSoBufferedShape
and classes derived fromSoIndexedShape
. This mode can be much faster because, for example, it does not need to check for intersection with the triangles of anSoIndexedFaceSet
. For pick radius seesetRadius()
. Specific different behaviors include:- If no vertex is inside the pick radius, no picked point is returned.
- If a vertex is inside the pick radius, SoPickedPoint->
getPoint()
returns the coordinate of the vertex, not the intersection with the geometry. - SoPickedPoint->getNormal() returns 0,0,0
- SoPickedPoint->getTextureCoords() returns 0,0,0,0
- SoPickedPoint->getDetail normally returns an
SoPointDetail
instead of anSoFaceDetail
(or whatever would normally be returned for that geometry).
-
-
Method Detail
-
values
public static SoRayPickAction.PickingModes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SoRayPickAction.PickingModes c : SoRayPickAction.PickingModes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SoRayPickAction.PickingModes valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
valueOf
public static SoRayPickAction.PickingModes valueOf(int val)
Returns the enum constant of this type with the specified integer value- Returns:
- the enum constant of this type with the specified integer value.
-
getValue
public int getValue()
Description copied from interface:IntegerValuedEnum
Returns the integer value of the enum constant.- Specified by:
getValue
in interfaceIntegerValuedEnum
- Returns:
- the integer value of the enum constant.
-
-