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
  • Enum Constant Details

    • 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 and SoPickedPoint.getDetail() returns (usually) an SoDetail 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 for SoBufferedShape and classes derived from SoIndexedShape. This mode can be much faster because, for example, it does not need to check for intersection with the triangles of an SoIndexedFaceSet. For pick radius see setRadius(). 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 an SoFaceDetail (or whatever would normally be returned for that geometry).
  • Method Details

    • values

      public static SoRayPickAction.PickingModes[] 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

      public static SoRayPickAction.PickingModes valueOf(String name)
      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 name
      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 interface IntegerValuedEnum
      Returns:
      the integer value of the enum constant.