Enum Class SoRayPickAction.PickingModes
java.lang.Object
java.lang.Enum<SoRayPickAction.PickingModes>
com.openinventor.inventor.actions.SoRayPickAction.PickingModes
- All Implemented Interfaces:
IntegerValuedEnum
,Serializable
,Comparable<SoRayPickAction.PickingModes>
,Constable
- Enclosing class:
SoRayPickAction
public static enum SoRayPickAction.PickingModes
extends Enum<SoRayPickAction.PickingModes>
implements IntegerValuedEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIn the default mode, Inventor computes the intersection of the pick ray with geometry nodes (face, line, point, volume, mesh, etc).In this mode, Inventor finds all the vertices inside the pick radius. -
Method Summary
Modifier and TypeMethodDescriptionint
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
Returns the enum constant of this class with the specified name.static SoRayPickAction.PickingModes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
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
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
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.
-