Enum SoRayPickAction.PickingModes

    • 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 value
      static 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.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 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 name
        java.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 interface IntegerValuedEnum
        Returns:
        the integer value of the enum constant.