📄 orientedshape3d.html
字号:
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the x component of the alignment axis<DD><CODE>y</CODE> - the y component of the alignment axis<DD><CODE>z</CODE> - the z component of the alignment axis<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="getAlignmentAxis(javax.vecmath.Vector3f)"><!-- --></A><H3>getAlignmentAxis</H3><PRE>public void <B>getAlignmentAxis</B>(<A HREF="../../../javax/vecmath/Vector3f.html" title="class in javax.vecmath">Vector3f</A> axis)</PRE><DL><DD>Retrieves the alignment axis of this OrientedShape3D node, and copies it into the specified vector.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>axis</CODE> - the vector that will contain the alignment axis<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="setRotationPoint(javax.vecmath.Point3f)"><!-- --></A><H3>setRotationPoint</H3><PRE>public void <B>setRotationPoint</B>(<A HREF="../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A> point)</PRE><DL><DD>Sets the new rotation point. This is the point about which the OrientedShape3D rotates when the mode is ROTATE_ABOUT_POINT.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>point</CODE> - the new rotation point<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="setRotationPoint(float, float, float)"><!-- --></A><H3>setRotationPoint</H3><PRE>public void <B>setRotationPoint</B>(float x, float y, float z)</PRE><DL><DD>Sets the new rotation point. This is the point about which the OrientedShape3D rotates when the mode is ROTATE_ABOUT_POINT.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x component of the rotation point<DD><CODE>y</CODE> - the y component of the rotation point<DD><CODE>z</CODE> - the z component of the rotation point<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="getRotationPoint(javax.vecmath.Point3f)"><!-- --></A><H3>getRotationPoint</H3><PRE>public void <B>getRotationPoint</B>(<A HREF="../../../javax/vecmath/Point3f.html" title="class in javax.vecmath">Point3f</A> point)</PRE><DL><DD>Retrieves the rotation point of this OrientedShape3D node, and copies it into the specified vector.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>point</CODE> - the point that will contain the rotation point<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="setConstantScaleEnable(boolean)"><!-- --></A><H3>setConstantScaleEnable</H3><PRE>public void <B>setConstantScaleEnable</B>(boolean constantScaleEnable)</PRE><DL><DD>Sets the constant scale enable flag.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>constantScaleEnable</CODE> - a flag indicating whether to enable constant scale<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="getConstantScaleEnable()"><!-- --></A><H3>getConstantScaleEnable</H3><PRE>public boolean <B>getConstantScaleEnable</B>()</PRE><DL><DD>Retrieves the constant scale enable flag.<P><DD><DL><DT><B>Returns:</B><DD>the current constant scale enable flag<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="setScale(double)"><!-- --></A><H3>setScale</H3><PRE>public void <B>setScale</B>(double scale)</PRE><DL><DD>Sets the scale for this OrientedShape3D. This scale is used when the constant scale enable flag is set to true.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - the scale value<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="getScale()"><!-- --></A><H3>getScale</H3><PRE>public double <B>getScale</B>()</PRE><DL><DD>Retrieves the scale value for this OrientedShape3D.<P><DD><DL><DT><B>Returns:</B><DD>the current scale value<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="cloneNode(boolean)"><!-- --></A><H3>cloneNode</H3><PRE>public <A HREF="../../../javax/media/j3d/Node.html" title="class in javax.media.j3d">Node</A> <B>cloneNode</B>(boolean 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/Shape3D.html#cloneNode(boolean)">cloneNode</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/Shape3D.html" title="class in javax.media.j3d">Shape3D</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" title="class in javax.media.j3d">Node</A> originalNode, boolean 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 <code>NodeComponent</code> objects contained by the object being duplicated, each <code>NodeComponent</code> object's <code>duplicateOnCloneTree</code> value is used to determine whether the <code>NodeComponent</code> 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>. <br> NOTE: Applications should <i>not</i> call this method directly. It should only be called by the cloneNode method.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/media/j3d/Shape3D.html#duplicateNode(javax.media.j3d.Node, boolean)">duplicateNode</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/Shape3D.html" title="class in javax.media.j3d">Shape3D</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>Throws:</B><DD><CODE>java.lang.ClassCastException</CODE> - if originalNode is not an instance of <code>Shape3D</code><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><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/media/j3d/OrderedGroup.html" title="class in javax.media.j3d"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/PathInterpolator.html" title="class in javax.media.j3d"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?javax/media/j3d/OrientedShape3D.html" target="_top"><B>FRAMES</B></A> <A HREF="OrientedShape3D.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1">Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../../LICENSE-SPEC.html">license terms</a>.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -