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

📄 orbitbehavior.html

📁 这是一个JAVA的代码
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.vp.OrbitBehavior.STOP_ZOOM">Constant Field Values</A></DL></DL><HR><A NAME="DISABLE_ROTATE"><!-- --></A><H3>DISABLE_ROTATE</H3><PRE>public static final int <B>DISABLE_ROTATE</B></PRE><DL><DD>Constructor flag to disable rotate<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.vp.OrbitBehavior.DISABLE_ROTATE">Constant Field Values</A></DL></DL><HR><A NAME="DISABLE_TRANSLATE"><!-- --></A><H3>DISABLE_TRANSLATE</H3><PRE>public static final int <B>DISABLE_TRANSLATE</B></PRE><DL><DD>Constructor flag to disable translate<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.vp.OrbitBehavior.DISABLE_TRANSLATE">Constant Field Values</A></DL></DL><HR><A NAME="DISABLE_ZOOM"><!-- --></A><H3>DISABLE_ZOOM</H3><PRE>public static final int <B>DISABLE_ZOOM</B></PRE><DL><DD>Constructor flag to disable zoom<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.vp.OrbitBehavior.DISABLE_ZOOM">Constant Field Values</A></DL></DL><HR><A NAME="PROPORTIONAL_ZOOM"><!-- --></A><H3>PROPORTIONAL_ZOOM</H3><PRE>public static final int <B>PROPORTIONAL_ZOOM</B></PRE><DL><DD>Constructor flag to use proportional zoom, which determines how much you zoom based on view's distance from the center of rotation.  The percentage of distance that the viewer zooms is determined by the zoom factor.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#com.sun.j3d.utils.behaviors.vp.OrbitBehavior.PROPORTIONAL_ZOOM">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="OrbitBehavior()"><!-- --></A><H3>OrbitBehavior</H3><PRE>public <B>OrbitBehavior</B>()</PRE><DL><DD>Parameterless constructor for this behavior.  This is intended for use by ConfiguredUniverse, which requires such a constructor for configurable behaviors.  The Canvas3D used to listen for mouse and mouse motion events is obtained from the superclass setViewingPlatform() method.<P><DT><B>Since:</B><DD>Java 3D 1.3</DD></DD></DL><HR><A NAME="OrbitBehavior(javax.media.j3d.Canvas3D)"><!-- --></A><H3>OrbitBehavior</H3><PRE>public <B>OrbitBehavior</B>(<A HREF="../../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A>&nbsp;c)</PRE><DL><DD>Creates a new OrbitBehavior<P><DT><B>Parameters:</B><DD><CODE>c</CODE> - The Canvas3D to add the behavior to</DL><HR><A NAME="OrbitBehavior(javax.media.j3d.Canvas3D, int)"><!-- --></A><H3>OrbitBehavior</H3><PRE>public <B>OrbitBehavior</B>(<A HREF="../../../../../../javax/media/j3d/Canvas3D.html">Canvas3D</A>&nbsp;c,                     int&nbsp;flags)</PRE><DL><DD>Creates a new OrbitBehavior<P><DT><B>Parameters:</B><DD><CODE>c</CODE> - The Canvas3D to add the behavior to<DD><CODE>flags</CODE> - The option flags</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="processAWTEvents(java.awt.AWTEvent[])"><!-- --></A><H3>processAWTEvents</H3><PRE>protected void <B>processAWTEvents</B>(java.awt.AWTEvent[]&nbsp;events)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../../../com/sun/j3d/utils/behaviors/vp/ViewPlatformAWTBehavior.html">ViewPlatformAWTBehavior</A></CODE></B></DD><DD>This is called once per frame if there are any AWT events to process. The <code>motion</code> variable will be true when the method is called. If it is true when the method returns integrateTransforms will be called immediately. The AWTEvents are presented in the array in the order in which they arrived from AWT.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../com/sun/j3d/utils/behaviors/vp/ViewPlatformAWTBehavior.html#processAWTEvents(java.awt.AWTEvent[])">processAWTEvents</A></CODE> in class <CODE><A HREF="../../../../../../com/sun/j3d/utils/behaviors/vp/ViewPlatformAWTBehavior.html">ViewPlatformAWTBehavior</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="processMouseEvent(java.awt.event.MouseEvent)"><!-- --></A><H3>processMouseEvent</H3><PRE>protected void <B>processMouseEvent</B>(java.awt.event.MouseEvent&nbsp;evt)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setViewingPlatform(com.sun.j3d.utils.universe.ViewingPlatform)"><!-- --></A><H3>setViewingPlatform</H3><PRE>public void <B>setViewingPlatform</B>(<A HREF="../../../../../../com/sun/j3d/utils/universe/ViewingPlatform.html">ViewingPlatform</A>&nbsp;vp)</PRE><DL><DD>Sets the ViewingPlatform for this behavior.  This method is called by the ViewingPlatform. If a sub-calls overrides this method, it must call super.setViewingPlatform(vp). NOTE: Applications should <i>not</i> call this method.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../com/sun/j3d/utils/behaviors/vp/ViewPlatformAWTBehavior.html#setViewingPlatform(com.sun.j3d.utils.universe.ViewingPlatform)">setViewingPlatform</A></CODE> in class <CODE><A HREF="../../../../../../com/sun/j3d/utils/behaviors/vp/ViewPlatformAWTBehavior.html">ViewPlatformAWTBehavior</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vp</CODE> - the target ViewingPlatform for this behavior</DL></DD></DL><HR><A NAME="integrateTransforms()"><!-- --></A><H3>integrateTransforms</H3><PRE>protected void <B>integrateTransforms</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../../../com/sun/j3d/utils/behaviors/vp/ViewPlatformAWTBehavior.html">ViewPlatformAWTBehavior</A></CODE></B></DD><DD>Called once per frame (if the view is moving) to calculate the new view platform transform<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../com/sun/j3d/utils/behaviors/vp/ViewPlatformAWTBehavior.html#integrateTransforms()">integrateTransforms</A></CODE> in class <CODE><A HREF="../../../../../../com/sun/j3d/utils/behaviors/vp/ViewPlatformAWTBehavior.html">ViewPlatformAWTBehavior</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setRotationCenter(javax.vecmath.Point3d)"><!-- --></A><H3>setRotationCenter</H3><PRE>public void <B>setRotationCenter</B>(<A HREF="../../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;center)</PRE><DL><DD>Sets the center around which the View rotates. The default is (0,0,0).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>center</CODE> - The Point3d to set the center of rotation to</DL></DD></DL><HR><A NAME="RotationCenter(java.lang.Object[])"><!-- --></A><H3>RotationCenter</H3><PRE>public void <B>RotationCenter</B>(java.lang.Object[]&nbsp;center)</PRE><DL><DD>Property which sets the center around which the View rotates. Used by ConfiguredUniverse.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>center</CODE> - array of length 1 containing an instance of Point3d<DT><B>Since:</B><DD>Java 3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="getRotationCenter(javax.vecmath.Point3d)"><!-- --></A><H3>getRotationCenter</H3><PRE>public void <B>getRotationCenter</B>(<A HREF="../../../../../../javax/vecmath/Point3d.html">Point3d</A>&nbsp;center)</PRE><DL><DD>Places the value of the center around which the View rotates into the Point3d.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>center</CODE> - The Point3d</DL></DD></DL><HR><A NAME="setRotFactors(double, double)"><!-- --></A><H3>setRotFactors</H3><PRE>public void <B>setRotFactors</B>(double&nbsp;xfactor,                          double&nbsp;yfactor)</PRE><DL><DD>Sets the rotation x and y factors.  The factors are used to determine how many radians to rotate the view for each pixel of mouse movement. The view is rotated factor * 0.01 radians for each pixel of mouse movement.  The default factor is 1.0.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>xfactor</CODE> - The x movement multiplier<DD><CODE>yfactor</CODE> - The y movement multiplier</DL></DD></DL><HR><A NAME="RotFactors(java.lang.Object[])"><!-- --></A><H3>RotFactors</H3><PRE>public void <B>RotFactors</B>(java.lang.Object[]&nbsp;factors)</PRE><DL><DD>Property which sets the rotation x and y factors. Used by ConfiguredUniverse.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>factors</CODE> - array of length 2 containing instances of Double<DT><B>Since:</B><DD>Java 3D 1.3</DD></DD></DL></DD></DL><HR><A NAME="setRotXFactor(double)"><!-- --></A><H3>setRotXFactor</H3><PRE>public void <B>setRotXFactor</B>(double&nbsp;xfactor)</PRE><DL><DD>Sets the rotation x factor.  The factors are used to determine how many radians to rotate the view for each pixel of mouse movement. The view is rotated factor * 0.01 radians for each pixel of mouse movement.  The default factor is 1.0.<P>

⌨️ 快捷键说明

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