⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 branchgroup.java

📁 JAVA3D矩陈的相关类
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
     * This is specified as one or more individual bits that are bitwise "OR"ed together to      * describe the PickInfo data. The flags include :     * <ul>     * <code>PickInfo.SCENEGRAPHPATH</code> - request for computed SceneGraphPath.<br>         * <code>PickInfo.NODE</code> - request for computed intersected Node.<br>     * <code>PickInfo.LOCAL_TO_VWORLD</code> - request for computed local to virtual world transform.<br>     * <code>PickInfo.CLOSEST_INTERSECTION_POINT</code> - request for closest intersection point.<br>     * <code>PickInfo.CLOSEST_DISTANCE</code> - request for the distance of closest intersection.<br>     * <code>PickInfo.CLOSEST_GEOM_INFO</code> - request for only the closest intersection geometry information.<br>     * <code>PickInfo.ALL_GEOM_INFO</code> - request for all intersection geometry information.<br>     * </ul>     *     * @param pickShape the description of this picking volume or area.     *     * @exception IllegalArgumentException if flags contains both CLOSEST_GEOM_INFO and      * ALL_GEOM_INFO.     *     * @exception IllegalArgumentException if pickShape is a PickPoint and pick mode     * is set to PICK_GEOMETRY.     *     * @exception IllegalArgumentException if pick mode is neither PICK_BOUNDS      * nor PICK_GEOMETRY.     *     * @exception IllegalArgumentException if pick mode is PICK_BOUNDS      * and flags includes any of CLOSEST_INTERSECTION_POINT, CLOSEST_DISTANCE,     * CLOSEST_GEOM_INFO or ALL_GEOM_INFO.     *     * @exception IllegalArgumentException if pickShape is PickBounds      * and flags includes any of CLOSEST_INTERSECTION_POINT, CLOSEST_DISTANCE,     * CLOSEST_GEOM_INFO or ALL_GEOM_INFO.     *     * @exception IllegalStateException if BranchGroup is not live.     *     * @exception CapabilityNotSetException if the mode is     * PICK_GEOMETRY and the Geometry.ALLOW_INTERSECT capability bit     * is not set in any Geometry objects referred to by any shape     * node whose bounds intersects the PickShape.     *        * @exception CapabilityNotSetException if flags contains any of     * CLOSEST_INTERSECTION_POINT, CLOSEST_DISTANCE, CLOSEST_GEOM_INFO     * or ALL_GEOM_INFO, and the capability bits that control reading of     * coordinate data are not set in any GeometryArray object referred     * to by any shape node that intersects the PickShape.     * The capability bits that must be set to avoid this exception are as follows :     * <ul>      * <li>By-copy geometry : GeometryArray.ALLOW_COORDINATE_READ</li>     * <li>By-reference geometry : GeometryArray.ALLOW_REF_DATA_READ</li>     * <li>Indexed geometry : IndexedGeometryArray.ALLOW_COORDINATE_INDEX_READ     * (in addition to one of the above)</li>     * </ul>     *     * @see Locale#pickAllSorted(int,int,javax.media.j3d.PickShape)     * @see PickInfo     *      * @since Java 3D 1.4     *     */    public PickInfo[] pickAllSorted( int mode, int flags, PickShape pickShape ) {        validateModeFlagAndPickShape(mode, flags, pickShape);        return ((BranchGroupRetained)this.retained).pickAllSorted(mode, flags, pickShape);    }  /**   * Returns a SceneGraphPath that references the pickable item    * closest to the origin of <code>pickShape</code>.   *   * Note: If pickShape is of type PickBounds, the return is any pickable node   * below this BranchGroup.   * @param pickShape the PickShape object   *   * @see SceneGraphPath   * @see Locale#pickClosest   * @see PickShape   * @exception IllegalStateException if BranchGroup is not live.   *     */    public SceneGraphPath pickClosest( PickShape pickShape ) {        if(isLive()==false)	    throw new IllegalStateException(J3dI18N.getString("BranchGroup3"));        return ((BranchGroupRetained)this.retained).pickClosest(pickShape);               }    /**     * Returns a PickInfo which references the pickable item     * which is closest to the origin of <code>pickShape</code>.     * The accuracy of the pick is set by the pick mode. The mode include :      * PickInfo.PICK_BOUNDS and PickInfo.PICK_GEOMETRY. The amount of information returned      * is specified via a masked variable, flags, indicating which components are      * present in each returned PickInfo object.      *     * @param mode  picking mode, one of <code>PickInfo.PICK_BOUNDS</code> or <code>PickInfo.PICK_GEOMETRY</code>.     *     * @param flags a mask indicating which components are present in each PickInfo object.       * This is specified as one or more individual bits that are bitwise "OR"ed together to      * describe the PickInfo data. The flags include :     * <ul>     * <code>PickInfo.SCENEGRAPHPATH</code> - request for computed SceneGraphPath.<br>         * <code>PickInfo.NODE</code> - request for computed intersected Node.<br>     * <code>PickInfo.LOCAL_TO_VWORLD</code> - request for computed local to virtual world transform.<br>     * <code>PickInfo.CLOSEST_INTERSECTION_POINT</code> - request for closest intersection point.<br>     * <code>PickInfo.CLOSEST_DISTANCE</code> - request for the distance of closest intersection.<br>     * <code>PickInfo.CLOSEST_GEOM_INFO</code> - request for only the closest intersection geometry information.<br>     * <code>PickInfo.ALL_GEOM_INFO</code> - request for all intersection geometry information.<br>     * </ul>     *     * @param pickShape the description of this picking volume or area.     *     * @exception IllegalArgumentException if flags contains both CLOSEST_GEOM_INFO and      * ALL_GEOM_INFO.     *     * @exception IllegalArgumentException if pickShape is a PickPoint and pick mode     * is set to PICK_GEOMETRY.     *     * @exception IllegalArgumentException if pick mode is neither PICK_BOUNDS      * nor PICK_GEOMETRY.     *     * @exception IllegalArgumentException if pick mode is PICK_BOUNDS      * and flags includes any of CLOSEST_INTERSECTION_POINT, CLOSEST_DISTANCE,     * CLOSEST_GEOM_INFO or ALL_GEOM_INFO.     *     * @exception IllegalArgumentException if pickShape is PickBounds      * and flags includes any of CLOSEST_INTERSECTION_POINT, CLOSEST_DISTANCE,     * CLOSEST_GEOM_INFO or ALL_GEOM_INFO.     *     * @exception IllegalStateException if BranchGroup is not live.     *     * @exception CapabilityNotSetException if the mode is     * PICK_GEOMETRY and the Geometry.ALLOW_INTERSECT capability bit     * is not set in any Geometry objects referred to by any shape     * node whose bounds intersects the PickShape.     *        * @exception CapabilityNotSetException if flags contains any of     * CLOSEST_INTERSECTION_POINT, CLOSEST_DISTANCE, CLOSEST_GEOM_INFO     * or ALL_GEOM_INFO, and the capability bits that control reading of     * coordinate data are not set in any GeometryArray object referred     * to by any shape node that intersects the PickShape.     * The capability bits that must be set to avoid this exception are as follows :     * <ul>      * <li>By-copy geometry : GeometryArray.ALLOW_COORDINATE_READ</li>     * <li>By-reference geometry : GeometryArray.ALLOW_REF_DATA_READ</li>     * <li>Indexed geometry : IndexedGeometryArray.ALLOW_COORDINATE_INDEX_READ     * (in addition to one of the above)</li>     * </ul>     *     * @see Locale#pickClosest(int,int,javax.media.j3d.PickShape)     * @see PickInfo     *      * @since Java 3D 1.4     *     */    public PickInfo pickClosest( int mode, int flags, PickShape pickShape ) {        validateModeFlagAndPickShape(mode, flags, pickShape);        return ((BranchGroupRetained)this.retained).pickClosest(mode, flags, pickShape);    }  /**   * Returns a reference to any item that is Pickable below this BranchGroup that   * intersects with <code>pickShape</code>.   * @param pickShape the PickShape object   *   * @see SceneGraphPath   * @see Locale#pickAny   * @see PickShape   * @exception IllegalStateException if BranchGroup is not live.   *     */    public SceneGraphPath pickAny( PickShape pickShape ) {        if(isLive()==false)	    throw new IllegalStateException(J3dI18N.getString("BranchGroup3"));        return ((BranchGroupRetained)this.retained).pickAny(pickShape);                   }    /**     * Returns a PickInfo which references the pickable item  below this     * BranchGroup that intersects with <code>pickShape</code>.     * The accuracy of the pick is set by the pick mode. The mode include :      * PickInfo.PICK_BOUNDS and PickInfo.PICK_GEOMETRY. The amount of information returned      * is specified via a masked variable, flags, indicating which components are      * present in each returned PickInfo object.      *     * @param mode  picking mode, one of <code>PickInfo.PICK_BOUNDS</code> or <code>PickInfo.PICK_GEOMETRY</code>.     *     * @param flags a mask indicating which components are present in each PickInfo object.       * This is specified as one or more individual bits that are bitwise "OR"ed together to      * describe the PickInfo data. The flags include :     * <ul>     * <code>PickInfo.SCENEGRAPHPATH</code> - request for computed SceneGraphPath.<br>         * <code>PickInfo.NODE</code> - request for computed intersected Node.<br>     * <code>PickInfo.LOCAL_TO_VWORLD</code> - request for computed local to virtual world transform.<br>     * <code>PickInfo.CLOSEST_INTERSECTION_POINT</code> - request for closest intersection point.<br>     * <code>PickInfo.CLOSEST_DISTANCE</code> - request for the distance of closest intersection.<br>     * <code>PickInfo.CLOSEST_GEOM_INFO</code> - request for only the closest intersection geometry information.<br>     * <code>PickInfo.ALL_GEOM_INFO</code> - request for all intersection geometry information.<br>     * </ul>     *     * @param pickShape the description of this picking volume or area.     *     * @exception IllegalArgumentException if flags contains both CLOSEST_GEOM_INFO and      * ALL_GEOM_INFO.     *     * @exception IllegalArgumentException if pickShape is a PickPoint and pick mode     * is set to PICK_GEOMETRY.     *     * @exception IllegalArgumentException if pick mode is neither PICK_BOUNDS      * nor PICK_GEOMETRY.     *     * @exception IllegalArgumentException if pick mode is PICK_BOUNDS      * and flags includes any of CLOSEST_INTERSECTION_POINT, CLOSEST_DISTANCE,     * CLOSEST_GEOM_INFO or ALL_GEOM_INFO.     *     * @exception IllegalArgumentException if pickShape is PickBounds      * and flags includes any of CLOSEST_INTERSECTION_POINT, CLOSEST_DISTANCE,     * CLOSEST_GEOM_INFO or ALL_GEOM_INFO.     *     * @exception IllegalStateException if BranchGroup is not live.     *     * @exception CapabilityNotSetException if the mode is     * PICK_GEOMETRY and the Geometry.ALLOW_INTERSECT capability bit     * is not set in any Geometry objects referred to by any shape     * node whose bounds intersects the PickShape.     *        * @exception CapabilityNotSetException if flags contains any of     * CLOSEST_INTERSECTION_POINT, CLOSEST_DISTANCE, CLOSEST_GEOM_INFO     * or ALL_GEOM_INFO, and the capability bits that control reading of     * coordinate data are not set in any GeometryArray object referred     * to by any shape node that intersects the PickShape.     * The capability bits that must be set to avoid this exception are as follows :     * <ul>      * <li>By-copy geometry : GeometryArray.ALLOW_COORDINATE_READ</li>     * <li>By-reference geometry : GeometryArray.ALLOW_REF_DATA_READ</li>     * <li>Indexed geometry : IndexedGeometryArray.ALLOW_COORDINATE_INDEX_READ     * (in addition to one of the above)</li>     * </ul>     *     * @see Locale#pickAny(int,int,javax.media.j3d.PickShape)     * @see PickInfo     *      * @since Java 3D 1.4     *     */    public PickInfo pickAny( int mode, int flags, PickShape pickShape ) {        validateModeFlagAndPickShape(mode, flags, pickShape);        return ((BranchGroupRetained)this.retained).pickAny(mode, flags, pickShape);    }   /**    * Creates a new instance of the node.  This routine is called    * by <code>cloneTree</code> to duplicate the current node.    * @param forceDuplicate when set to <code>true</code>, causes the    *  <code>duplicateOnCloneTree</code> flag to be ignored.  When    *  <code>false</code>, the value of each node's    *  <code>duplicateOnCloneTree</code> variable determines whether    *  NodeComponent data is duplicated or copied.    *    * @see Node#cloneTree    * @see Node#cloneNode    * @see Node#duplicateNode    * @see NodeComponent#setDuplicateOnCloneTree    */    public Node cloneNode(boolean forceDuplicate) {        BranchGroup bg = new BranchGroup();	bg.duplicateNode(this, forceDuplicate);	return bg;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -