📄 textureunitstate.html
字号:
<CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureUnitState.html#duplicateNodeComponent(javax.media.j3d.NodeComponent)">duplicateNodeComponent</A></B>(<A HREF="../../../javax/media/j3d/NodeComponent.html" title="class in javax.media.j3d">NodeComponent</A> originalNodeComponent)</CODE><BR> <B>Deprecated.</B> <I>replaced with duplicateNodeComponent( NodeComponent originalNodeComponent, boolean forceDuplicate)</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/media/j3d/TexCoordGeneration.html" title="class in javax.media.j3d">TexCoordGeneration</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureUnitState.html#getTexCoordGeneration()">getTexCoordGeneration</A></B>()</CODE><BR> Retrieves the current texCoordGeneration object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/media/j3d/Texture.html" title="class in javax.media.j3d">Texture</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureUnitState.html#getTexture()">getTexture</A></B>()</CODE><BR> Retrieves the current texture object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/media/j3d/TextureAttributes.html" title="class in javax.media.j3d">TextureAttributes</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureUnitState.html#getTextureAttributes()">getTextureAttributes</A></B>()</CODE><BR> Retrieves the current textureAttributes object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureUnitState.html#set(javax.media.j3d.Texture, javax.media.j3d.TextureAttributes, javax.media.j3d.TexCoordGeneration)">set</A></B>(<A HREF="../../../javax/media/j3d/Texture.html" title="class in javax.media.j3d">Texture</A> texture, <A HREF="../../../javax/media/j3d/TextureAttributes.html" title="class in javax.media.j3d">TextureAttributes</A> textureAttributes, <A HREF="../../../javax/media/j3d/TexCoordGeneration.html" title="class in javax.media.j3d">TexCoordGeneration</A> texCoordGeneration)</CODE><BR> Sets the texture, texture attributes, and texture coordinate generation components in this TextureUnitState object to the specified component objects.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureUnitState.html#setTexCoordGeneration(javax.media.j3d.TexCoordGeneration)">setTexCoordGeneration</A></B>(<A HREF="../../../javax/media/j3d/TexCoordGeneration.html" title="class in javax.media.j3d">TexCoordGeneration</A> texCoordGeneration)</CODE><BR> Sets the texCoordGeneration object to the specified object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureUnitState.html#setTexture(javax.media.j3d.Texture)">setTexture</A></B>(<A HREF="../../../javax/media/j3d/Texture.html" title="class in javax.media.j3d">Texture</A> texture)</CODE><BR> Sets the texture object to the specified object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/media/j3d/TextureUnitState.html#setTextureAttributes(javax.media.j3d.TextureAttributes)">setTextureAttributes</A></B>(<A HREF="../../../javax/media/j3d/TextureAttributes.html" title="class in javax.media.j3d">TextureAttributes</A> textureAttributes)</CODE><BR> Sets the textureAttributes object to the specified object.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.j3d.NodeComponent"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class javax.media.j3d.<A HREF="../../../javax/media/j3d/NodeComponent.html" title="class in javax.media.j3d">NodeComponent</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/j3d/NodeComponent.html#cloneNodeComponent(boolean)">cloneNodeComponent</A>, <A HREF="../../../javax/media/j3d/NodeComponent.html#duplicateNodeComponent(javax.media.j3d.NodeComponent, boolean)">duplicateNodeComponent</A>, <A HREF="../../../javax/media/j3d/NodeComponent.html#getDuplicateOnCloneTree()">getDuplicateOnCloneTree</A>, <A HREF="../../../javax/media/j3d/NodeComponent.html#setDuplicateOnCloneTree(boolean)">setDuplicateOnCloneTree</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.j3d.SceneGraphObject"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class javax.media.j3d.<A HREF="../../../javax/media/j3d/SceneGraphObject.html" title="class in javax.media.j3d">SceneGraphObject</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/j3d/SceneGraphObject.html#clearCapability(int)">clearCapability</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#clearCapabilityIsFrequent(int)">clearCapabilityIsFrequent</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#duplicateSceneGraphObject(javax.media.j3d.SceneGraphObject)">duplicateSceneGraphObject</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getCapability(int)">getCapability</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getCapabilityIsFrequent(int)">getCapabilityIsFrequent</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getName()">getName</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getUserData()">getUserData</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#isCompiled()">isCompiled</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#isLive()">isLive</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setCapability(int)">setCapability</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setCapabilityIsFrequent(int)">setCapabilityIsFrequent</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setName(java.lang.String)">setName</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setUserData(java.lang.Object)">setUserData</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#toString()">toString</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#updateNodeReferences(javax.media.j3d.NodeReferenceTable)">updateNodeReferences</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="ALLOW_STATE_READ"><!-- --></A><H3>ALLOW_STATE_READ</H3><PRE>public static final int <B>ALLOW_STATE_READ</B></PRE><DL><DD>Specifies that this TextureUnitState object allows reading its texture, texture attribute, or texture coordinate generation component information.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.TextureUnitState.ALLOW_STATE_READ">Constant Field Values</A></DL></DL><HR><A NAME="ALLOW_STATE_WRITE"><!-- --></A><H3>ALLOW_STATE_WRITE</H3><PRE>public static final int <B>ALLOW_STATE_WRITE</B></PRE><DL><DD>Specifies that this TextureUnitState object allows writing its texture, texture attribute, or texture coordinate generation component information.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.media.j3d.TextureUnitState.ALLOW_STATE_WRITE">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="TextureUnitState()"><!-- --></A><H3>TextureUnitState</H3><PRE>public <B>TextureUnitState</B>()</PRE><DL><DD>Constructs a TextureUnitState component object using defaults for all state variables. All component object references are initialized to null.<P></DL><HR><A NAME="TextureUnitState(javax.media.j3d.Texture, javax.media.j3d.TextureAttributes, javax.media.j3d.TexCoordGeneration)"><!-- --></A><H3>TextureUnitState</H3><PRE>public <B>TextureUnitState</B>(<A HREF="../../../javax/media/j3d/Texture.html" title="class in javax.media.j3d">Texture</A> texture, <A HREF="../../../javax/media/j3d/TextureAttributes.html" title="class in javax.media.j3d">TextureAttributes</A> textureAttributes, <A HREF="../../../javax/media/j3d/TexCoordGeneration.html" title="class in javax.media.j3d">TexCoordGeneration</A> texCoordGeneration)</PRE><DL><DD>Constructs a TextureUnitState component object using the specified component objects.<P><DL><DT><B>Parameters:</B><DD><CODE>texture</CODE> - object that specifies the desired texture map and texture parameters<DD><CODE>textureAttributes</CODE> - object that specifies the desired texture attributes<DD><CODE>texCoordGeneration</CODE> - object that specifies the texture coordinate generation parameters</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="set(javax.media.j3d.Texture, javax.media.j3d.TextureAttributes, javax.media.j3d.TexCoordGeneration)"><!-- --></A><H3>set</H3><PRE>public void <B>set</B>(<A HREF="../../../javax/media/j3d/Texture.html" title="class in javax.media.j3d">Texture</A> texture, <A HREF="../../../javax/media/j3d/TextureAttributes.html" title="class in javax.media.j3d">TextureAttributes</A> textureAttributes, <A HREF="../../../javax/media/j3d/TexCoordGeneration.html" title="class in javax.media.j3d">TexCoordGeneration</A> texCoordGeneration)</PRE><DL><DD>Sets the texture, texture attributes, and texture coordinate generation components in this TextureUnitState object to the specified component objects.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>texture</CODE> - object that specifies the desired texture map and texture parameters<DD><CODE>textureAttributes</CODE> - object that specifies the desired texture attributes<DD><CODE>texCoordGeneration</CODE> - object that specifies the texture coordinate generation parameters<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/IllegalSharingException.html" title="class in javax.media.j3d">IllegalSharingException</A></CODE> - if this TextureUnitState is live and the specified texture refers to an ImageComponent2D that is being used by a Canvas3D as an off-screen buffer.<DD><CODE><A HREF="../../../javax/media/j3d/IllegalSharingException.html" title="class in javax.media.j3d">IllegalSharingException</A></CODE> - if this TextureUnitState is being used by an immediate mode context and the specified texture refers to an ImageComponent2D that is being used by a Canvas3D as an off-screen buffer.</DL></DD></DL><HR><A NAME="setTexture(javax.media.j3d.Texture)"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -