📄 primitive.html
字号:
<HR><A NAME="setNumTriangles(int)"><!-- --></A><H3>setNumTriangles</H3><PRE>public void <B>setNumTriangles</B>(int num)</PRE><DL><DD><B>Deprecated.</B> <I>The number of triangles is an immutable attribute.</I><P><DD><DL></DL></DD></DL><HR><A NAME="getNumVertices()"><!-- --></A><H3>getNumVertices</H3><PRE>public int <B>getNumVertices</B>()</PRE><DL><DD>Returns the total number of vertices in this primitive.<P><DD><DL><DT><B>Returns:</B><DD>the total number of vertices in this primitive</DL></DD></DL><HR><A NAME="setNumVertices(int)"><!-- --></A><H3>setNumVertices</H3><PRE>public void <B>setNumVertices</B>(int num)</PRE><DL><DD><B>Deprecated.</B> <I>The number of vertices is an immutable attribute.</I><P><DD><DL></DL></DD></DL><HR><A NAME="getPrimitiveFlags()"><!-- --></A><H3>getPrimitiveFlags</H3><PRE>public int <B>getPrimitiveFlags</B>()</PRE><DL><DD>Returns the flags of primitive (generate normal, textures, caching, etc).<P><DD><DL></DL></DD></DL><HR><A NAME="setPrimitiveFlags(int)"><!-- --></A><H3>setPrimitiveFlags</H3><PRE>public void <B>setPrimitiveFlags</B>(int fl)</PRE><DL><DD><B>Deprecated.</B> <I>The primitive flags must be set at construction time via one of the subclass constructors.</I><P><DD><DL></DL></DD></DL><HR><A NAME="getShape(int)"><!-- --></A><H3>getShape</H3><PRE>public abstract <A HREF="../../../../../javax/media/j3d/Shape3D.html" title="class in javax.media.j3d">Shape3D</A> <B>getShape</B>(int partid)</PRE><DL><DD>Obtains a shape node of a subpart of the primitive.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>partid</CODE> - identifier for a given subpart of the primitive.</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>Gets the appearance of the primitive (defaults to first subpart).<P><DD><DL></DL></DD></DL><HR><A NAME="getAppearance(int)"><!-- --></A><H3>getAppearance</H3><PRE>public abstract <A HREF="../../../../../javax/media/j3d/Appearance.html" title="class in javax.media.j3d">Appearance</A> <B>getAppearance</B>(int partId)</PRE><DL><DD>Gets the appearance of the specified part of the primitive.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>partId</CODE> - identifier for a given subpart of the primitive<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></DT> <DD>Java 3D 1.2.1</DD></DL></DD></DL><HR><A NAME="setAppearance(int, javax.media.j3d.Appearance)"><!-- --></A><H3>setAppearance</H3><PRE>public void <B>setAppearance</B>(int partid, <A HREF="../../../../../javax/media/j3d/Appearance.html" title="class in javax.media.j3d">Appearance</A> ap)</PRE><DL><DD>Sets the appearance of a subpart given a partid.<P><DD><DL></DL></DD></DL><HR><A NAME="setAppearance(javax.media.j3d.Appearance)"><!-- --></A><H3>setAppearance</H3><PRE>public abstract void <B>setAppearance</B>(<A HREF="../../../../../javax/media/j3d/Appearance.html" title="class in javax.media.j3d">Appearance</A> ap)</PRE><DL><DD>Sets the main appearance of the primitive (all subparts) to same appearance.<P><DD><DL></DL></DD></DL><HR><A NAME="setAppearance()"><!-- --></A><H3>setAppearance</H3><PRE>public void <B>setAppearance</B>()</PRE><DL><DD>Sets the main appearance of the primitive (all subparts) to a default white appearance.<P><DD><DL></DL></DD></DL><HR><A NAME="cacheGeometry(int, float, float, float, int, int, int, com.sun.j3d.utils.geometry.GeomBuffer)"><!-- --></A><H3>cacheGeometry</H3><PRE>protected void <B>cacheGeometry</B>(int kind, float a, float b, float c, int d, int e, int flags, com.sun.j3d.utils.geometry.GeomBuffer geo)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getCachedGeometry(int, float, float, float, int, int, int)"><!-- --></A><H3>getCachedGeometry</H3><PRE>protected com.sun.j3d.utils.geometry.GeomBuffer <B>getCachedGeometry</B>(int kind, float a, float b, float c, int d, int e, int flags)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="clearGeometryCache()"><!-- --></A><H3>clearGeometryCache</H3><PRE>public static void <B>clearGeometryCache</B>()</PRE><DL><DD>Clear the shared geometry cache for all Primitive types. Existing Shapes with shared geometry will continue to share the geometry. New Primitives will create new shared geometry.<P><DD><DL><DT><B>Since:</B></DT> <DD>Java 3D 1.3.2</DD></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="../../../../../com/sun/j3d/utils/geometry/NormalGenerator.html" title="class in com.sun.j3d.utils.geometry"><B>PREV CLASS</B></A> <A HREF="../../../../../com/sun/j3d/utils/geometry/Sphere.html" title="class in com.sun.j3d.utils.geometry"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/sun/j3d/utils/geometry/Primitive.html" target="_top"><B>FRAMES</B></A> <A HREF="Primitive.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 + -