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

📄 shape3d.html

📁 JAVA多媒体开发类库说明
💻 HTML
📖 第 1 页 / 共 5 页
字号:
 Shape3D node's list of geometry components with the specified geometry component. If there are existing geometry components in the list (besides the one being replaced), the new geometry component must be of the same equivalence class (point, line, polygon, CompressedGeometry, Raster, Text3D) as the others.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>geometry</CODE> - the geometry component to be stored at the specified index.<DD><CODE>index</CODE> - the index of the geometry component to be replaced.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the new geometry component is not of of the same equivalence class as the existing geometry components.<DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B></DT>  <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="getGeometry(int)"><!-- --></A><H3>getGeometry</H3><PRE>public <A HREF="../../../javax/media/j3d/Geometry.html" title="class in javax.media.j3d">Geometry</A> <B>getGeometry</B>(int&nbsp;index)</PRE><DL><DD>Retrieves the geometry component at the specified index from this Shape3D node's list of geometry components.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the geometry component to be returned.<DT><B>Returns:</B><DD>the geometry component at the specified index.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B></DT>  <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="insertGeometry(javax.media.j3d.Geometry, int)"><!-- --></A><H3>insertGeometry</H3><PRE>public void <B>insertGeometry</B>(<A HREF="../../../javax/media/j3d/Geometry.html" title="class in javax.media.j3d">Geometry</A>&nbsp;geometry,                           int&nbsp;index)</PRE><DL><DD>Inserts the specified geometry component into this Shape3D node's list of geometry components at the specified index. If there are existing geometry components in the list, the new geometry component must be of the same equivalence class (point, line, polygon, CompressedGeometry, Raster, Text3D) as the others.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>geometry</CODE> - the geometry component to be inserted at the specified index.<DD><CODE>index</CODE> - the index at which the geometry component is inserted.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the new geometry component is not of of the same equivalence class as the existing geometry components.<DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B></DT>  <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="removeGeometry(int)"><!-- --></A><H3>removeGeometry</H3><PRE>public void <B>removeGeometry</B>(int&nbsp;index)</PRE><DL><DD>Removes the geometry component at the specified index from this Shape3D node's list of geometry components.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the geometry component to be removed.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B></DT>  <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="getAllGeometries()"><!-- --></A><H3>getAllGeometries</H3><PRE>public java.util.Enumeration <B>getAllGeometries</B>()</PRE><DL><DD>Returns an enumeration of this Shape3D node's list of geometry components.<P><DD><DL><DT><B>Returns:</B><DD>an Enumeration object containing all geometry components in this Shape3D node's list of geometry components.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B></DT>  <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="addGeometry(javax.media.j3d.Geometry)"><!-- --></A><H3>addGeometry</H3><PRE>public void <B>addGeometry</B>(<A HREF="../../../javax/media/j3d/Geometry.html" title="class in javax.media.j3d">Geometry</A>&nbsp;geometry)</PRE><DL><DD>Appends the specified geometry component to this Shape3D node's list of geometry components. If there are existing geometry components in the list, the new geometry component must be of the same equivalence class (point, line, polygon, CompressedGeometry, Raster, Text3D) as the others.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>geometry</CODE> - the geometry component to be appended.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if the new geometry component is not of of the same equivalence class as the existing geometry components.<DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B></DT>  <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="numGeometries()"><!-- --></A><H3>numGeometries</H3><PRE>public int <B>numGeometries</B>()</PRE><DL><DD>Returns the number of geometry components in this Shape3D node's list of geometry components.<P><DD><DL><DT><B>Returns:</B><DD>the number of geometry components in this Shape3D node's list of geometry components.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B></DT>  <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="indexOfGeometry(javax.media.j3d.Geometry)"><!-- --></A><H3>indexOfGeometry</H3><PRE>public int <B>indexOfGeometry</B>(<A HREF="../../../javax/media/j3d/Geometry.html" title="class in javax.media.j3d">Geometry</A>&nbsp;geometry)</PRE><DL><DD>Retrieves the index of the specified geometry component in this Shape3D node's list of geometry components.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>geometry</CODE> - the geometry component to be looked up.<DT><B>Returns:</B><DD>the index of the specified geometry component; returns -1 if the object is not in the list.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B></DT>  <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="removeGeometry(javax.media.j3d.Geometry)"><!-- --></A><H3>removeGeometry</H3><PRE>public void <B>removeGeometry</B>(<A HREF="../../../javax/media/j3d/Geometry.html" title="class in javax.media.j3d">Geometry</A>&nbsp;geometry)</PRE><DL><DD>Removes the specified geometry component from this Shape3D node's list of geometry components. If the specified object is not in the list, the list is not modified.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>geometry</CODE> - the geometry component to be removed.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B></DT>  <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="removeAllGeometries()"><!-- --></A><H3>removeAllGeometries</H3><PRE>public void <B>removeAllGeometries</B>()</PRE><DL><DD>Removes all geometry components from this Shape3D node.<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B></DT>  <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="setAppearance(javax.media.j3d.Appearance)"><!-- --></A><H3>setAppearance</H3><PRE>public void <B>setAppearance</B>(<A HREF="../../../javax/media/j3d/Appearance.html" title="class in javax.media.j3d">Appearance</A>&nbsp;appearance)</PRE><DL><DD>Sets the appearance component of this Shape3D node.  Setting it to null specifies that default values are used for all appearance attributes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>appearance</CODE> - the new appearance component for this shape node<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="getAppearance()"><!-- --></A><H3>getAppearance</H3><PRE>public <A HREF="../../../javax/media/j3d/Appearance.html" title="class in javax.media.j3d">Appearance</A> <B>getAppearance</B>()</PRE><DL><DD>Retrieves the appearance component of this shape node.<P><DD><DL><DT><B>Returns:</B><DD>the appearance component of this shape node<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="intersect(javax.media.j3d.SceneGraphPath, javax.media.j3d.PickShape)"><!-- --></A><H3>intersect</H3><PRE>public boolean <B>intersect</B>(<A HREF="../../../javax/media/j3d/SceneGraphPath.html" title="class in javax.media.j3d">SceneGraphPath</A>&nbsp;path,                         <A HREF="../../../javax/media/j3d/PickShape.html" title="class in javax.media.j3d">PickShape</A>&nbsp;pickShape)</PRE><DL><DD>Checks whether the geometry in this shape node intersects with the specified pickShape.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>path</CODE> - the SceneGraphPath to this shape node<DD><CODE>pickShape</CODE> - the PickShape to be intersected<DT><B>Returns:</B><DD>true if the pick shape intersects this node; false

⌨️ 快捷键说明

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