📄 viewingplatform.html
字号:
<TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html#getViewers()">getViewers</A></B>()</CODE><BR> Returns the Viewers attached to this ViewingPlatform</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/media/j3d/ViewPlatform.html" title="class in javax.media.j3d">ViewPlatform</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html#getViewPlatform()">getViewPlatform</A></B>()</CODE><BR> Returns the ViewPlatform node for this ViewingPlatform object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../com/sun/j3d/utils/behaviors/vp/ViewPlatformBehavior.html" title="class in com.sun.j3d.utils.behaviors.vp">ViewPlatformBehavior</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html#getViewPlatformBehavior()">getViewPlatformBehavior</A></B>()</CODE><BR> Returns the ViewPlatformBehavior</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../../javax/media/j3d/TransformGroup.html" title="class in javax.media.j3d">TransformGroup</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html#getViewPlatformTransform()">getViewPlatformTransform</A></B>()</CODE><BR> Returns a reference to the "bottom most" transform in the MultiTransformGroup that is above the ViewPlatform node.</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="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html#setNominalViewingTransform()">setNominalViewingTransform</A></B>()</CODE><BR> Sets the nominal viewing distance in the ViewPlatform transform based on the current field of view.</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="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html#setPlatformGeometry(com.sun.j3d.utils.universe.PlatformGeometry)">setPlatformGeometry</A></B>(<A HREF="../../../../../com/sun/j3d/utils/universe/PlatformGeometry.html" title="class in com.sun.j3d.utils.universe">PlatformGeometry</A> pg)</CODE><BR> Assigns the geometry to associate with the ViewingPlatform.</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="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html#setUniverse(com.sun.j3d.utils.universe.SimpleUniverse)">setUniverse</A></B>(<A HREF="../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html" title="class in com.sun.j3d.utils.universe">SimpleUniverse</A> universe)</CODE><BR> Sets the Universe to which this ViewingPlatform is attached</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="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html#setViewPlatform(javax.media.j3d.ViewPlatform)">setViewPlatform</A></B>(<A HREF="../../../../../javax/media/j3d/ViewPlatform.html" title="class in javax.media.j3d">ViewPlatform</A> vp)</CODE><BR> Sets the ViewPlatform node for this ViewingPlatform 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="../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html#setViewPlatformBehavior(com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior)">setViewPlatformBehavior</A></B>(<A HREF="../../../../../com/sun/j3d/utils/behaviors/vp/ViewPlatformBehavior.html" title="class in com.sun.j3d.utils.behaviors.vp">ViewPlatformBehavior</A> behavior)</CODE><BR> Sets the ViewPlatformBehavior which will operate on the ViewPlatform transform (the TransformGroup returned by ViewingPlatform.getViewPlatformTransform()).</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.j3d.BranchGroup"><!-- --></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/BranchGroup.html" title="class in javax.media.j3d">BranchGroup</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../javax/media/j3d/BranchGroup.html#cloneNode(boolean)">cloneNode</A>, <A HREF="../../../../../javax/media/j3d/BranchGroup.html#compile()">compile</A>, <A HREF="../../../../../javax/media/j3d/BranchGroup.html#detach()">detach</A>, <A HREF="../../../../../javax/media/j3d/BranchGroup.html#pickAll(int, int, javax.media.j3d.PickShape)">pickAll</A>, <A HREF="../../../../../javax/media/j3d/BranchGroup.html#pickAll(javax.media.j3d.PickShape)">pickAll</A>, <A HREF="../../../../../javax/media/j3d/BranchGroup.html#pickAllSorted(int, int, javax.media.j3d.PickShape)">pickAllSorted</A>, <A HREF="../../../../../javax/media/j3d/BranchGroup.html#pickAllSorted(javax.media.j3d.PickShape)">pickAllSorted</A>, <A HREF="../../../../../javax/media/j3d/BranchGroup.html#pickAny(int, int, javax.media.j3d.PickShape)">pickAny</A>, <A HREF="../../../../../javax/media/j3d/BranchGroup.html#pickAny(javax.media.j3d.PickShape)">pickAny</A>, <A HREF="../../../../../javax/media/j3d/BranchGroup.html#pickClosest(int, int, javax.media.j3d.PickShape)">pickClosest</A>, <A HREF="../../../../../javax/media/j3d/BranchGroup.html#pickClosest(javax.media.j3d.PickShape)">pickClosest</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.j3d.Group"><!-- --></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/Group.html" title="class in javax.media.j3d">Group</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../javax/media/j3d/Group.html#addChild(javax.media.j3d.Node)">addChild</A>, <A HREF="../../../../../javax/media/j3d/Group.html#getAllChildren()">getAllChildren</A>, <A HREF="../../../../../javax/media/j3d/Group.html#getAlternateCollisionTarget()">getAlternateCollisionTarget</A>, <A HREF="../../../../../javax/media/j3d/Group.html#getChild(int)">getChild</A>, <A HREF="../../../../../javax/media/j3d/Group.html#getCollisionBounds()">getCollisionBounds</A>, <A HREF="../../../../../javax/media/j3d/Group.html#indexOfChild(javax.media.j3d.Node)">indexOfChild</A>, <A HREF="../../../../../javax/media/j3d/Group.html#insertChild(javax.media.j3d.Node, int)">insertChild</A>, <A HREF="../../../../../javax/media/j3d/Group.html#moveTo(javax.media.j3d.BranchGroup)">moveTo</A>, <A HREF="../../../../../javax/media/j3d/Group.html#numChildren()">numChildren</A>, <A HREF="../../../../../javax/media/j3d/Group.html#removeAllChildren()">removeAllChildren</A>, <A HREF="../../../../../javax/media/j3d/Group.html#removeChild(int)">removeChild</A>, <A HREF="../../../../../javax/media/j3d/Group.html#removeChild(javax.media.j3d.Node)">removeChild</A>, <A HREF="../../../../../javax/media/j3d/Group.html#setAlternateCollisionTarget(boolean)">setAlternateCollisionTarget</A>, <A HREF="../../../../../javax/media/j3d/Group.html#setChild(javax.media.j3d.Node, int)">setChild</A>, <A HREF="../../../../../javax/media/j3d/Group.html#setCollisionBounds(javax.media.j3d.Bounds)">setCollisionBounds</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.media.j3d.Node"><!-- --></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/Node.html" title="class in javax.media.j3d">Node</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../javax/media/j3d/Node.html#cloneTree()">cloneTree</A>, <A HREF="../../../../../javax/media/j3d/Node.html#cloneTree(boolean)">cloneTree</A>, <A HREF="../../../../../javax/media/j3d/Node.html#cloneTree(boolean, boolean)">cloneTree</A>, <A HREF="../../../../../javax/media/j3d/Node.html#cloneTree(javax.media.j3d.NodeReferenceTable)">cloneTree</A>, <A HREF="../../../../../javax/media/j3d/Node.html#cloneTree(javax.media.j3d.NodeReferenceTable, boolean)">cloneTree</A>, <A HREF="../../../../../javax/media/j3d/Node.html#cloneTree(javax.media.j3d.NodeReferenceTable, boolean, boolean)">cloneTree</A>, <A HREF="../../../../../javax/media/j3d/Node.html#duplicateNode(javax.media.j3d.Node, boolean)">duplicateNode</A>, <A HREF="../../../../../javax/media/j3d/Node.html#getBounds()">getBounds</A>, <A HREF="../../../../../javax/media/j3d/Node.html#getBoundsAutoCompute()">getBoundsAutoCompute</A>, <A HREF="../../../../../javax/media/j3d/Node.html#getCollidable()">getCollidable</A>, <A HREF="../../../../../javax/media/j3d/Node.html#getLocale()">getLocale</A>, <A HREF="../../../../../javax/media/j3d/Node.html#getLocalToVworld(javax.media.j3d.SceneGraphPath, javax.media.j3d.Transform3D)">getLocalToVworld</A>, <A HREF="../../../../../javax/media/j3d/Node.html#getLocalToVworld(javax.media.j3d.Transform3D)">getLocalToVworld</A>, <A HREF="../../../../../javax/media/j3d/Node.html#getParent()">getParent</A>, <A HREF="../../../../../javax/media/j3d/Node.html#getPickable()">getPickable</A>, <A HREF="../../../../../javax/media/j3d/Node.html#setBounds(javax.media.j3d.Bounds)">setBounds</A>, <A HREF="../../../../../javax/media/j3d/Node.html#setBoundsAutoCompute(boolean)">setBoundsAutoCompute</A>, <A HREF="../../../../../javax/media/j3d/Node.html#setCollidable(boolean)">setCollidable</A>, <A HREF="../../../../../javax/media/j3d/Node.html#setPickable(boolean)">setPickable</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="viewPlatform"><!-- --></A><H3>viewPlatform</H3><PRE>protected <A HREF="../../../../../javax/media/j3d/ViewPlatform.html" title="class in javax.media.j3d">ViewPlatform</A> <B>viewPlatform</B></PRE><DL><DD>Cached ViewPlatform associated with this ViewingPlatform object.<P><DL></DL></DL><HR><A NAME="mtg"><!-- --></A><H3>mtg</H3><PRE>protected <A HREF="../../../../../com/sun/j3d/utils/universe/MultiTransformGroup.html" title="class in com.sun.j3d.utils.universe">MultiTransformGroup</A> <B>mtg</B></PRE><DL><DD>MultiTransformGroup that holds all TransformGroups between the BranchGroup and the View object.<P><DL></DL></DL><HR><A NAME="platformGeometryRoot"><!-- --></A><H3>platformGeometryRoot</H3><PRE>protected <A HREF="../../../../../javax/media/j3d/BranchGroup.html" title="class in javax.media.j3d">BranchGroup</A> <B>platformGeometryRoot</B></PRE><DL><DD>Used to keep track of added geometry. When geometry is added to the view platform, an addChild to this BranchGroup is performed.<P><DL></DL></DL><HR><A NAME="avatarRoot"><!-- --></A><H3>avatarRoot</H3><PRE>protected <A HREF="../../../../../javax/media/j3d/BranchGroup.html" title="class in javax.media.j3d">BranchGroup</A> <B>avatarRoot</B></PRE><DL><DD>Used to keep track of added geometry. When geometry is added for an avatar, an addChild to this BranchGroup is performed.<P><DL></DL></DL><HR><A NAME="platformGeometry"><!-- --></A><H3>platformGeometry</H3><PRE>protected <A HREF="../../../../../com/sun/j3d/utils/universe/PlatformGeometry.html" title="class in com.sun.j3d.utils.universe">PlatformGeometry</A> <B>platformGeometry</B></PRE><DL><DD>Cached PlatformGeometry object.<P><DL></DL></DL><HR><A NAME="viewerList"><!-- --></A><H3>viewerList</H3><PRE>protected java.util.Hashtable <B>viewerList</B></PRE><DL><DD>Table of the Viewer objects.<P><DL></DL></DL><HR><A NAME="behaviors"><!-- --></A><H3>behaviors</H3><PRE>protected <A HREF="../../../../../javax/media/j3d/BranchGroup.html" title="class in javax.media.j3d">BranchGroup</A> <B>behaviors</B></PRE><DL><DD>Used to keep track of behaviors.<P><DL><DT><B>Since:</B></DT> <DD>Java 3D 1.2.1</DD></DL></DL><HR><A NAME="universe"><!-- --></A><H3>universe</H3><PRE>protected <A HREF="../../../../../com/sun/j3d/utils/universe/SimpleUniverse.html" title="class in com.sun.j3d.utils.universe">SimpleUniverse</A> <B>universe</B></PRE><DL><DD>The universe to which this viewing platform is attached<P><DL><DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></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="ViewingPlatform()"><!-- --></A><H3>ViewingPlatform</H3><PRE>public <B>ViewingPlatform</B>()</PRE><DL><DD>Creates a default ViewingPlatform object. This consists of a MultiTransfromGroup node with one transform and a ViewPlatform object. The ViewPlatform is positioned at (0.0, 0.0, 0.0).<P></DL><HR><A NAME="ViewingPlatform(int)"><!-- --></A><H3>ViewingPlatform</H3><PRE>public <B>ViewingPlatform</B>(int numTransforms)</PRE><DL><DD>Creates the ViewingPlatform object. This consists of a MultiTransfromGroup node with the specified number of transforms (all initialized to the identity transform). and a ViewPlatform object.<P><DL><DT><B>Parameters:</B><DD><CODE>numTransforms</CODE> - The number of transforms the MultiTransformGroup node should contain. If this number is less than 1, 1 is assumed.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -