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

📄 cylinder.html

📁 这是一个JAVA的代码
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getShape(int)"><!-- --></A><H3>getShape</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Shape3D.html">Shape3D</A> <B>getShape</B>(int&nbsp;partId)</PRE><DL><DD>Obtains the Shape3D node associated with a given part of the cylinder.  This allows users to modify the appearance or geometry  of individual parts.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/utils/geometry/Primitive.html#getShape(int)">getShape</A></CODE> in class <CODE><A HREF="../../../../../com/sun/j3d/utils/geometry/Primitive.html">Primitive</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>partId</CODE> - The part to return (BODY, TOP, or BOTTOM).<DT><B>Returns:</B><DD>The Shape3D object associated with the partID.  If an invalid partId is passed in, null is returned.</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">Appearance</A>&nbsp;ap)</PRE><DL><DD>Sets appearance of the cylinder. This will set each part of the  cylinder (TOP,BOTTOM,BODY) to the same appearance. To set each   part's appearance separately, use getShape(partId) to get the  individual shape and call shape.setAppearance(ap).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/utils/geometry/Primitive.html#setAppearance(javax.media.j3d.Appearance)">setAppearance</A></CODE> in class <CODE><A HREF="../../../../../com/sun/j3d/utils/geometry/Primitive.html">Primitive</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAppearance(int)"><!-- --></A><H3>getAppearance</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Appearance.html">Appearance</A> <B>getAppearance</B>(int&nbsp;partId)</PRE><DL><DD>Gets the appearance of the specified part of the cylinder.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/utils/geometry/Primitive.html#getAppearance(int)">getAppearance</A></CODE> in class <CODE><A HREF="../../../../../com/sun/j3d/utils/geometry/Primitive.html">Primitive</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The appearance object associated with the partID.  If an invalid partId is passed in, null is returned.<DT><B>Since:</B><DD>Java 3D 1.2.1</DD></DD></DL></DD></DL><HR><A NAME="cloneNode(boolean)"><!-- --></A><H3>cloneNode</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Node.html">Node</A> <B>cloneNode</B>(boolean&nbsp;forceDuplicate)</PRE><DL><DD>Used to create a new instance of the node.  This routine is called by <code>cloneTree</code> to duplicate the current node. <code>cloneNode</code> should be overridden by any user subclassed objects.  All subclasses must have their <code>cloneNode</code> method consist of the following lines: <P><blockquote><pre>     public Node cloneNode(boolean forceDuplicate) {         UserSubClass usc = new UserSubClass();         usc.duplicateNode(this, forceDuplicate);         return usc;     } </pre></blockquote><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../javax/media/j3d/Group.html#cloneNode(boolean)">cloneNode</A></CODE> in class <CODE><A HREF="../../../../../javax/media/j3d/Group.html">Group</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>forceDuplicate</CODE> - 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.<DT><B>See Also:</B><DD><A HREF="../../../../../javax/media/j3d/Node.html#cloneTree()"><CODE>Node.cloneTree()</CODE></A>, <A HREF="../../../../../javax/media/j3d/Node.html#duplicateNode(javax.media.j3d.Node, boolean)"><CODE>Node.duplicateNode(javax.media.j3d.Node, boolean)</CODE></A>, <A HREF="../../../../../javax/media/j3d/NodeComponent.html#setDuplicateOnCloneTree(boolean)"><CODE>NodeComponent.setDuplicateOnCloneTree(boolean)</CODE></A></DL></DD></DL><HR><A NAME="duplicateNode(javax.media.j3d.Node, boolean)"><!-- --></A><H3>duplicateNode</H3><PRE>public void <B>duplicateNode</B>(<A HREF="../../../../../javax/media/j3d/Node.html">Node</A>&nbsp;originalNode,                          boolean&nbsp;forceDuplicate)</PRE><DL><DD>Copies all node information from <code>originalNode</code> into the current node.  This method is called from the <code>cloneNode</code> method which is, in turn, called by the <code>cloneTree</code> method. <P> For any <i>NodeComponent</i> objects contained by the object being duplicated, each <i>NodeComponent</i> object's <code>duplicateOnCloneTree</code> value is used to determine whether the <i>NodeComponent</i> should be duplicated in the new node or if just a reference to the current node should be placed in the new node.  This flag can be overridden by setting the <code>forceDuplicate</code> parameter in the <code>cloneTree</code> method to <code>true</code>.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../javax/media/j3d/Node.html#duplicateNode(javax.media.j3d.Node, boolean)">duplicateNode</A></CODE> in class <CODE><A HREF="../../../../../javax/media/j3d/Node.html">Node</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>originalNode</CODE> - the original node to duplicate.<DD><CODE>forceDuplicate</CODE> - 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.<DT><B>See Also:</B><DD><A HREF="../../../../../javax/media/j3d/Node.html#cloneTree()"><CODE>Node.cloneTree()</CODE></A>, <A HREF="../../../../../javax/media/j3d/Node.html#cloneNode(boolean)"><CODE>Node.cloneNode(boolean)</CODE></A>, <A HREF="../../../../../javax/media/j3d/NodeComponent.html#setDuplicateOnCloneTree(boolean)"><CODE>NodeComponent.setDuplicateOnCloneTree(boolean)</CODE></A></DL></DD></DL><HR><A NAME="getRadius()"><!-- --></A><H3>getRadius</H3><PRE>public float <B>getRadius</B>()</PRE><DL><DD>Returns the radius of the cylinder<P><DD><DL><DT><B>Since:</B><DD>Java 3D 1.2.1</DD></DD></DL></DD></DL><HR><A NAME="getHeight()"><!-- --></A><H3>getHeight</H3><PRE>public float <B>getHeight</B>()</PRE><DL><DD>Returns the height of the cylinder<P><DD><DL><DT><B>Since:</B><DD>Java 3D 1.2.1</DD></DD></DL></DD></DL><HR><A NAME="getXdivisions()"><!-- --></A><H3>getXdivisions</H3><PRE>public int <B>getXdivisions</B>()</PRE><DL><DD>Returns the number divisions along the X direction<P><DD><DL><DT><B>Since:</B><DD>Java 3D 1.2.1</DD></DD></DL></DD></DL><HR><A NAME="getYdivisions()"><!-- --></A><H3>getYdivisions</H3><PRE>public int <B>getYdivisions</B>()</PRE><DL><DD>Returns the number of divisions along the height of the cylinder<P><DD><DL><DT><B>Since:</B><DD>Java 3D 1.2.1</DD></DD></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../com/sun/j3d/utils/geometry/Cone.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../com/sun/j3d/utils/geometry/GeometryInfo.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Cylinder.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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