📄 qtvrinstance.html
字号:
public <B>QTVRInstance</B>(<A HREF="../../quicktime/std/movies/Track.html">Track</A> qtvrTrack, <A HREF="../../quicktime/std/movies/MovieController.html">MovieController</A> mc) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>You can use the QTVRGetQTVRInstance function to get an instance of a QuickTime VR movie. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.35.htm#pgfId=46308">QuickTime::QTVRGetQTVRInstance</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>qtvrTrack</CODE> - A QTVR track contained in a QuickTime movie. You can obtain a reference to this track bycalling QTVRGetQTVRTrack<DD><CODE>mc</CODE> - A movie controller that is associated with the new QuickTime VR movie</DL></DD></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="getVRWorld()"><!-- --></A><H3>getVRWorld</H3><PRE>public <A HREF="../../quicktime/std/movies/AtomContainer.html">AtomContainer</A> <B>getVRWorld</B>() throws <A HREF="../../quicktime/vr/QTVRException.html">QTVRException</A></PRE><DL><DD>The QTVRGetVRWorld function returns an atom container that contains general scene information about the QuickTime VR movie specified, as well as a list of all the nodes in that movie. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.37.htm#pgfId=46618">QuickTime::QTVRGetVRWorld</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the VRWorld AtomContainer</DL></DD></DL><HR><A NAME="getNodeInfo(int)"><!-- --></A><H3>getNodeInfo</H3><PRE>public <A HREF="../../quicktime/std/movies/AtomContainer.html">AtomContainer</A> <B>getNodeInfo</B>(int nodeID) throws <A HREF="../../quicktime/vr/QTVRException.html">QTVRException</A></PRE><DL><DD>You can use the QTVRGetNodeInfo function to get the node information atom container that describes a node and all the hot spots in the node. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.37.htm#pgfId=72191">QuickTime::QTVRGetNodeInfo</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>nodeID</CODE> - Set this parameter to kQTVRCurrentNode to receive informationabout the current node<DT><B>Returns:</B><DD>an atom container that contains information about thespecified node.</DL></DD></DL><HR><A NAME="getCurrentNodeID()"><!-- --></A><H3>getCurrentNodeID</H3><PRE>public int <B>getCurrentNodeID</B>()</PRE><DL><DD>You can use the QTVRGetCurrentNodeID function to get the current node of a movie. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.37.htm#pgfId=46718">QuickTime::QTVRGetCurrentNodeID</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the ID of the current node of the specified movie.</DL></DD></DL><HR><A NAME="getNodeType(int)"><!-- --></A><H3>getNodeType</H3><PRE>public int <B>getNodeType</B>(int nodeID)</PRE><DL><DD>You can use the QTVRGetNodeType function to get the OSType of a movie node. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.37.htm#pgfId=46727">QuickTime::QTVRGetNodeType</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>nodeID</CODE> - A node ID. Pass kQTVRCurrentNode for the current node.<DT><B>Returns:</B><DD>the type of the specified node.</DL></DD></DL><HR><A NAME="triggerHotSpot(int, quicktime.std.movies.AtomContainer, quicktime.std.movies.Atom)"><!-- --></A><H3>triggerHotSpot</H3><PRE>public void <B>triggerHotSpot</B>(int hotSpotID, <A HREF="../../quicktime/std/movies/AtomContainer.html">AtomContainer</A> nodeInfo, <A HREF="../../quicktime/std/movies/Atom.html">Atom</A> selectedAtom) throws <A HREF="../../quicktime/vr/QTVRException.html">QTVRException</A></PRE><DL><DD>You can use the QTVRTriggerHotSpot function to trigger a hot spot. Usually, you need only specifythe qtvr instance and the hot spot ID. You can pass zero for the nodeInfo andselectedAtom parameters. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.38.htm#pgfId=78052">QuickTime::QTVRTriggerHotSpot</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>hotSpotID</CODE> - A hot spot ID.<DD><CODE>nodeInfo</CODE> - A node information atom container (obtained from a previouscall to QTVRGetNodeInfo). You can pass the value 0 in thisparameter to have the QuickTime VR Manager determine theappropriate node information atom container.<DD><CODE>selectedAtom</CODE> - The atom of the hot spot to trigger. You can pass the value 0 inthis parameter to have the QuickTime VR Manager determinethe appropriate hot spot atom.</DL></DD></DL><HR><A NAME="enableHotSpot(int, int, boolean)"><!-- --></A><H3>enableHotSpot</H3><PRE>public void <B>enableHotSpot</B>(int enableFlag, int hotSpotValue, boolean enable) throws <A HREF="../../quicktime/vr/QTVRException.html">QTVRException</A></PRE><DL><DD>You can use the QTVREnableHotSpot function to enable or disable one or more hot spots. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.38.htm#pgfId=39439">QuickTime::QTVREnableHotSpot</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>enableFlag</CODE> - The kind of hot spot or hot spots to enable or disable.<DD><CODE>hotSpotValue</CODE> - The desired hot spot or spots, relative to the specified enabled flag.<DD><CODE>enable</CODE> - A Boolean value that indicates whether the specified hot spots are to be enabled (true) or disabled (false).</DL></DD></DL><HR><A NAME="update(int)"><!-- --></A><H3>update</H3><PRE>public void <B>update</B>(int imagingMode) throws <A HREF="../../quicktime/vr/QTVRException.html">QTVRException</A></PRE><DL><DD>You can use the QTVRUpdate function to force an immediate update of a QuickTime VR movie image. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.3c.htm#pgfId=41627">QuickTime::QTVRUpdate</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>imagingMode</CODE> - An imaging mode. You can specifythe kQTVRCurrentMode imaging mode to use the currentimaging mode.</DL></DD></DL><HR><A NAME="goToNodeID(int)"><!-- --></A><H3>goToNodeID</H3><PRE>public void <B>goToNodeID</B>(int nodeID) throws <A HREF="../../quicktime/vr/QTVRException.html">QTVRException</A></PRE><DL><DD>You can use the QTVRGoToNodeID function to set the current node of a movie. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.37.htm#pgfId=46673">QuickTime::QTVRGoToNodeID</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>nodeID</CODE> - The ID of the node you want to be the current node.</DL></DD></DL><HR><A NAME="nudge(int)"><!-- --></A><H3>nudge</H3><PRE>public void <B>nudge</B>(int direction) throws <A HREF="../../quicktime/vr/QTVRException.html">QTVRException</A></PRE><DL><DD>You can use the QTVRNudge function to turn one step in a particular direction and display the new view. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.36.htm#pgfId=62810">QuickTime::QTVRNudge</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>direction</CODE> - The direction of the nudge.</DL></DD></DL><HR><A NAME="getPanAngle()"><!-- --></A><H3>getPanAngle</H3><PRE>public float <B>getPanAngle</B>()</PRE><DL><DD>You can use the QTVRGetPanAngle function to get the pan angle of a QuickTime VR movie. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.36.htm#pgfId=38096">QuickTime::QTVRGetPanAngle</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a floating-point value that represents the current pan angle of the specified movie.</DL></DD></DL><HR><A NAME="setPanAngle(float)"><!-- --></A><H3>setPanAngle</H3><PRE>public void <B>setPanAngle</B>(float panAngle) throws <A HREF="../../quicktime/vr/QTVRException.html">QTVRException</A></PRE><DL><DD>You can use the QTVRSetPanAngle function to set the pan angle of a QuickTime VR movie. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.36.htm#pgfId=38156">QuickTime::QTVRSetPanAngle</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>panAngle</CODE> - The desired pan angle of the specified movie.</DL></DD></DL><HR><A NAME="getTiltAngle()"><!-- --></A><H3>getTiltAngle</H3><PRE>public float <B>getTiltAngle</B>()</PRE><DL><DD>You can use the QTVRGetTiltAngle function to get the tilt angle of a QuickTime VR movie. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.36.htm#pgfId=38225">QuickTime::QTVRGetTiltAngle</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>a floating-point value that represents the current tilt angle of the specified movie.</DL></DD></DL><HR><A NAME="setTiltAngle(float)"><!-- --></A><H3>setTiltAngle</H3><PRE>public void <B>setTiltAngle</B>(float tiltAngle) throws <A HREF="../../quicktime/vr/QTVRException.html">QTVRException</A></PRE><DL><DD>You can use the QTVRSetTiltAngle function to set the tilt angle of a QuickTime VR movie. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.36.htm#pgfId=38285">QuickTime::QTVRSetTiltAngle</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tiltAngle</CODE> - The desired tilt angle of the specified movie.</DL></DD></DL><HR><A NAME="getFieldOfView()"><!-- --></A><H3>getFieldOfView</H3><PRE>public float <B>getFieldOfView</B>()</PRE><DL><DD>You can use the QTVRGetFieldOfView function to get the vertical field of view of a QuickTime VR movie. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/VR/tp_qt3ref_vrmanagr.36.htm#pgfId=72875">QuickTime::QTVRGetFieldOfView</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current vertical field of view of the specified movie.</DL></DD></DL><HR><A NAME="setFieldOfView(float)"><!-- --></A><H3>setFieldOfView</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -