All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.vr.QTVRInstance

java.lang.Object
   |
   +----quicktime.QTObject
           |
           +----quicktime.vr.QTVRInstance

public final class QTVRInstance
extends QTObject
implements QuickTimeLib, QuickTimeVRLib
The QTVRInstance is used for making QTVR calls

If an application installs any of the QTVR callbacks, then it must remove these callbacks when it has finished with them (or with the QTVRInstance itself) to allow the native structures used to be properly disposed.


Constructor Index

 o QTVRInstance(Track, MovieController)
You can use the QTVRGetQTVRInstance function to get an instance of a QuickTime VR movie.

Method Index

 o callInterceptedProc(QTVRInterceptRecord)
This method is used by the QTVRInterceptor execute method to call the QTVR default proc for the selector that was intercepted.
 o columnToPan(int)
You can use QTVRColumnToPan to get the pan angle that corresponds to a column number in the object image array.
 o enableHotSpot(int, int, boolean)
You can use the QTVREnableHotSpot function to enable or disable one or more hot spots.
 o getAngularUnits()
You can use QTVRGetAngularUnits to get the type of unit currently used when specifying angles.
 o getConstraints_max(int)
You can use the QTVRGetConstraints function to get the current constraints of a movie.
 o getConstraints_min(int)
You can use the QTVRGetConstraints function to get the current constraints of a movie.
 o getCurrentNodeID()
You can use the QTVRGetCurrentNodeID function to get the current node of a movie.
 o getFieldOfView()
You can use the QTVRGetFieldOfView function to get the vertical field of view of a QuickTime VR movie.
 o getHotSpotType(int)
This method gets the type of a hot spot whose ID you specify.
 o getImagingProperty(int, int)
You can use the QTVRGetImagingProperty function to get the current value of an imaging property of a movie.
 o getNodeInfo(int)
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.
 o getNodeType(int)
You can use the QTVRGetNodeType function to get the OSType of a movie node.
 o getPanAngle()
You can use the QTVRGetPanAngle function to get the pan angle of a QuickTime VR movie.
 o getTiltAngle()
You can use the QTVRGetTiltAngle function to get the tilt angle of a QuickTime VR movie.
 o getViewCenter()
The getViewCenter method returns, in the QDPoint class, the x and y coordinates of the current view center of the QuickTime VR movie specified by the QTVRInstance you call this on.
 o getVRWorld()
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.
 o goToNodeID(int)
You can use the QTVRGoToNodeID function to set the current node of a movie.
 o installInterceptProc(int, QTVRInterceptor, int)
You can use the QTVRInstallInterceptProc function to install or remove an intercept procedure for a QuickTime VR Manager function

QuickTime::QTVRInstallInterceptProc

 o nudge(int)
You can use the QTVRNudge function to turn one step in a particular direction and display the new view.
 o panToColumn(float)
You can use QTVRPanToColumn to get the column number in the object image array that corresponds to a pan angle.
 o ptToPanAngle(QDPoint)
You can use QTVRPtToAngles to get the pan angle of a point.
 o ptToTiltAngle(QDPoint)
You can use QTVRPtToAngles to get the tilt angle of a point.
 o removeEnteringNodeProc()
You can use the QTVRSetEnteringNodeProc function to remove a node-entering procedure.
 o removeInterceptProc(int)
You can use the QTVRInstallInterceptProc function to install or remove an intercept procedure for a QuickTime VR Manager function

QuickTime::QTVRInstallInterceptProc

 o removeLeavingNodeProc()
You can use the QTVRSetLeavingNodeProc function to remove a node-leaving procedure.
 o removeMouseOverHotSpotProc()
You can use the QTVRSetMouseOverHotSpotProc function to remove a mouse over hot spot procedure.
 o removePrescreenImagingCompleteProc()
You can use the QTVRSetPrescreenImagingCompleteProc function to remove a prescreen imaging complete proc.
 o rowToTilt(int)
You can use QTVRRowToTilt to get the tilt angle that corresponds to a row number in the object image array.
 o setAngularUnits(int)
You can use QTVRSetAngularUnits to set the type of unit used when specifying angles.
 o setConstraints(int, float, float)
You can use the QTVRSetConstraints function to set the constraints of a movie.
 o setEnteringNodeProc(QTVREnteringNode, int)
You can use the QTVRSetEnteringNodeProc function to install or remove a node-entering procedure.
 o setFieldOfView(float)
You can use the QTVRSetFieldOfView function to set the vertical field of view of a QuickTime VR movie.
 o setImagingProperty(int, int, int)
You can use the QTVRSetImagingProperty function to set the current value of an imaging property of a movie.
 o setLeavingNodeProc(QTVRLeavingNode, int)
You can use the QTVRSetLeavingNodeProc function to install or remove a node-leaving procedure.
 o setMouseOverHotSpotProc(QTVRMouseOverHotSpot, int)
You can use the QTVRSetMouseOverHotSpotProc function to install or remove a mouse over hot spot procedure

QuickTime::QTVRSetMouseOverHotSpotProc

 o setPanAngle(float)
You can use the QTVRSetPanAngle function to set the pan angle of a QuickTime VR movie.
 o setPrescreenImagingCompleteProc(QTVRImagingComplete, int)
This method installs a callback that is invoked every time a QTVRInstance is drawn.
 o setTiltAngle(float)
You can use the QTVRSetTiltAngle function to set the tilt angle of a QuickTime VR movie.
 o setViewCenter(QDPoint)
The setViewCenter method sets the view center of the QuickTime VR movie specified by the qtvr parameter to the fixed point specified by the viewCenter parameter.
 o showDefaultView()
The showDefaultView method sets the default values of the pan angle, tilt angle, field of view, view center (for object nodes), default state, mouse-down state, and all applicable animation and control settings for the node specified by the QTVRInstance you call this on.
 o tiltToRow(float)
You can use QTVRTiltToRow to get the row number in the object image array that corresponds to a tilt angle.
 o triggerHotSpot(int, AtomContainer, Atom)
You can use the QTVRTriggerHotSpot function to trigger a hot spot.
 o update(int)
You can use the QTVRUpdate function to force an immediate update of a QuickTime VR movie image.
 o wrapAndConstrain(int, float)
You can use QTVRWrapAndConstrain to preflight a change in the viewing or control characteristics of an object or panoramic node.

Constructors

 o QTVRInstance
 public QTVRInstance(Track qtvrTrack,
                     MovieController mc) throws QTException
You can use the QTVRGetQTVRInstance function to get an instance of a QuickTime VR movie.

QuickTime::QTVRGetQTVRInstance

Parameters:
qtvrTrack - A QTVR track contained in a QuickTime movie. You can obtain a reference to this track by calling QTVRGetQTVRTrack
mc - A movie controller that is associated with the new QuickTime VR movie

Methods

 o getVRWorld
 public AtomContainer getVRWorld() throws QTVRException
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.

QuickTime::QTVRGetVRWorld

Returns:
the VRWorld AtomContainer
 o getNodeInfo
 public AtomContainer getNodeInfo(int nodeID) throws QTVRException
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.

QuickTime::QTVRGetNodeInfo

Parameters:
nodeID - Set this parameter to kQTVRCurrentNode to receive information about the current node
Returns:
an atom container that contains information about the specified node.
 o getCurrentNodeID
 public int getCurrentNodeID()
You can use the QTVRGetCurrentNodeID function to get the current node of a movie.

QuickTime::QTVRGetCurrentNodeID

Returns:
the ID of the current node of the specified movie.
 o getNodeType
 public int getNodeType(int nodeID)
You can use the QTVRGetNodeType function to get the OSType of a movie node.

QuickTime::QTVRGetNodeType

Parameters:
nodeID - A node ID. Pass kQTVRCurrentNode for the current node.
Returns:
the type of the specified node.
 o triggerHotSpot
 public void triggerHotSpot(int hotSpotID,
                            AtomContainer nodeInfo,
                            Atom selectedAtom) throws QTVRException
You can use the QTVRTriggerHotSpot function to trigger a hot spot. Usually, you need only specify the qtvr instance and the hot spot ID. You can pass zero for the nodeInfo and selectedAtom parameters.

QuickTime::QTVRTriggerHotSpot

Parameters:
hotSpotID - A hot spot ID.
nodeInfo - A node information atom container (obtained from a previous call to QTVRGetNodeInfo). You can pass the value 0 in this parameter to have the QuickTime VR Manager determine the appropriate node information atom container.
selectedAtom - The atom of the hot spot to trigger. You can pass the value 0 in this parameter to have the QuickTime VR Manager determine the appropriate hot spot atom.
 o enableHotSpot
 public void enableHotSpot(int enableFlag,
                           int hotSpotValue,
                           boolean enable) throws QTVRException
You can use the QTVREnableHotSpot function to enable or disable one or more hot spots.

QuickTime::QTVREnableHotSpot

Parameters:
enableFlag - The kind of hot spot or hot spots to enable or disable.
hotSpotValue - The desired hot spot or spots, relative to the specified enabled flag.
enable - A Boolean value that indicates whether the specified hot spots are to be enabled (true) or disabled (false).
 o update
 public void update(int imagingMode) throws QTVRException
You can use the QTVRUpdate function to force an immediate update of a QuickTime VR movie image.

QuickTime::QTVRUpdate

Parameters:
imagingMode - An imaging mode. You can specify the kQTVRCurrentMode imaging mode to use the current imaging mode.
 o goToNodeID
 public void goToNodeID(int nodeID) throws QTVRException
You can use the QTVRGoToNodeID function to set the current node of a movie.

QuickTime::QTVRGoToNodeID

Parameters:
nodeID - The ID of the node you want to be the current node.
 o nudge
 public void nudge(int direction) throws QTVRException
You can use the QTVRNudge function to turn one step in a particular direction and display the new view.

QuickTime::QTVRNudge

Parameters:
direction - The direction of the nudge.
 o getPanAngle
 public float getPanAngle()
You can use the QTVRGetPanAngle function to get the pan angle of a QuickTime VR movie.

QuickTime::QTVRGetPanAngle

Returns:
a floating-point value that represents the current pan angle of the specified movie.
 o setPanAngle
 public void setPanAngle(float panAngle) throws QTVRException
You can use the QTVRSetPanAngle function to set the pan angle of a QuickTime VR movie.

QuickTime::QTVRSetPanAngle

Parameters:
panAngle - The desired pan angle of the specified movie.
 o getTiltAngle
 public float getTiltAngle()
You can use the QTVRGetTiltAngle function to get the tilt angle of a QuickTime VR movie.

QuickTime::QTVRGetTiltAngle

Returns:
a floating-point value that represents the current tilt angle of the specified movie.
 o setTiltAngle
 public void setTiltAngle(float tiltAngle) throws QTVRException
You can use the QTVRSetTiltAngle function to set the tilt angle of a QuickTime VR movie.

QuickTime::QTVRSetTiltAngle

Parameters:
tiltAngle - The desired tilt angle of the specified movie.
 o getFieldOfView
 public float getFieldOfView()
You can use the QTVRGetFieldOfView function to get the vertical field of view of a QuickTime VR movie.

QuickTime::QTVRGetFieldOfView

Returns:
the current vertical field of view of the specified movie.
 o setFieldOfView
 public void setFieldOfView(float fieldOfView) throws QTVRException
You can use the QTVRSetFieldOfView function to set the vertical field of view of a QuickTime VR movie.

QuickTime::QTVRSetFieldOfView

Parameters:
fieldOfView - The desired vertical field of view for the specified movie.
 o getConstraints_min
 public float getConstraints_min(int kind) throws QTVRException
You can use the QTVRGetConstraints function to get the current constraints of a movie.

QuickTime::QTVRGetConstraints

Parameters:
kind - The type of constraints to be returned.
 o getConstraints_max
 public float getConstraints_max(int kind) throws QTVRException
You can use the QTVRGetConstraints function to get the current constraints of a movie.

QuickTime::QTVRGetConstraints

Parameters:
kind - The type of constraints to be returned.
 o setConstraints
 public void setConstraints(int kind,
                            float minValue,
                            float maxValue) throws QTVRException
You can use the QTVRSetConstraints function to set the constraints of a movie.

QuickTime::QTVRSetConstraints

Parameters:
kind - The type of constraint to set..
minValue - A floating-point value that contains the desired minimum constraint of the specified type.
maxValue - A floating-point value that contains the desired maximum constraint of the specified type.
 o setImagingProperty
 public void setImagingProperty(int imagingMode,
                                int imagingProperty,
                                int propertyValue) throws QTVRException
You can use the QTVRSetImagingProperty function to set the current value of an imaging property of a movie.

QuickTime::QTVRSetImagingProperty

Parameters:
imagingMode - an imaging mode.
imagingProperty - an imaging property.
propertyValue - sets the current value of the specified imaging property for the specified mode.
 o getImagingProperty
 public int getImagingProperty(int imagingMode,
                               int imagingProperty) throws QTVRException
You can use the QTVRGetImagingProperty function to get the current value of an imaging property of a movie.

QuickTime::QTVRGetImagingProperty

Parameters:
imagingMode - an imaging mode.
imagingProperty - an imaging property.
Returns:
the current value of the specified imaging property for the specified mode.
 o getAngularUnits
 public int getAngularUnits()
You can use QTVRGetAngularUnits to get the type of unit currently used when specifying angles.

QuickTime::QTVRGetAngularUnits

Returns:
a constant that indicates the type of angular units currently in use
 o setAngularUnits
 public void setAngularUnits(int units) throws QTVRException
You can use QTVRSetAngularUnits to set the type of unit used when specifying angles.

QuickTime::QTVRSetAngularUnits

Parameters:
units - A constant that indicates the type of angular units to use.
 o ptToPanAngle
 public float ptToPanAngle(QDPoint pt) throws QTVRException
You can use QTVRPtToAngles to get the pan angle of a point.

QuickTime::QTVRPtToAngles

Parameters:
pt - A point, in the local coordinates of the graphics world of the specified movie.
 o ptToTiltAngle
 public float ptToTiltAngle(QDPoint pt) throws QTVRException
You can use QTVRPtToAngles to get the tilt angle of a point.

QuickTime::QTVRPtToAngles

Parameters:
pt - A point, in the local coordinates of the graphics world of the specified movie.
 o panToColumn
 public int panToColumn(float panAngle)
You can use QTVRPanToColumn to get the column number in the object image array that corresponds to a pan angle.

QuickTime::QTVRPanToColumn

Parameters:
panAngle - a pan angle.
Returns:
the column number in the object image array that corresponds to the specified pan angle.
 o columnToPan
 public float columnToPan(int column)
You can use QTVRColumnToPan to get the pan angle that corresponds to a column number in the object image array.

QuickTime::QTVRColumnToPan

Parameters:
column - A column number.
Returns:
the pan angle that corresponds to the specified column number in the object image array.
 o tiltToRow
 public int tiltToRow(float tiltAngle)
You can use QTVRTiltToRow to get the row number in the object image array that corresponds to a tilt angle.

QuickTime::QTVRTiltToRow

Parameters:
tiltAngle - a tilt angle.
Returns:
The row number in the object image array that corresponds to the specified tilt angle.
 o rowToTilt
 public float rowToTilt(int row)
You can use QTVRRowToTilt to get the tilt angle that corresponds to a row number in the object image array.

QuickTime::QTVRRowToTilt

Parameters:
row - a row number.
Returns:
the tilt angle that corresponds to the specified row number in the object image array.
 o wrapAndConstrain
 public float wrapAndConstrain(int kind,
                               float value) throws QTVRException
You can use QTVRWrapAndConstrain to preflight a change in the viewing or control characteristics of an object or panoramic node.

QuickTime::QTVRWrapAndConstrain

Parameters:
kind - a constraint type. See "Constraint Types" for a description of the available constraint types.
value - the desired value of the specified viewing characteristic.
 o setEnteringNodeProc
 public void setEnteringNodeProc(QTVREnteringNode enteringNodeProc,
                                 int flags) throws QTVRException
You can use the QTVRSetEnteringNodeProc function to install or remove a node-entering procedure.

QuickTime::QTVRSetEnteringNodeProc

Parameters:
enteringNodeProc - an instance of the QTVREnteringNode object that will be called or null to remove the callback.
flags - the flags
See Also:
QTCallBack
 o removeEnteringNodeProc
 public void removeEnteringNodeProc()
You can use the QTVRSetEnteringNodeProc function to remove a node-entering procedure.

QuickTime::QTVRSetEnteringNodeProc

 o setLeavingNodeProc
 public void setLeavingNodeProc(QTVRLeavingNode leavingNodeProc,
                                int flags) throws QTVRException
You can use the QTVRSetLeavingNodeProc function to install or remove a node-leaving procedure.

QuickTime::QTVRSetLeavingNodeProc

Parameters:
leavingNodeProc - an instance of the QTVRLeavingNode object that will be called or null to remove the callback.
flags - the flags
See Also:
QTCallBack
 o removeLeavingNodeProc
 public void removeLeavingNodeProc()
You can use the QTVRSetLeavingNodeProc function to remove a node-leaving procedure.

QuickTime::QTVRSetLeavingNodeProc

 o setMouseOverHotSpotProc
 public void setMouseOverHotSpotProc(QTVRMouseOverHotSpot mouseOverHotSpotProc,
                                     int flags) throws QTVRException
You can use the QTVRSetMouseOverHotSpotProc function to install or remove a mouse over hot spot procedure

QuickTime::QTVRSetMouseOverHotSpotProc

Parameters:
mouseOverHotSpotProc - an instance of the QTVRMouseOverHotSpot object that will be called or null to remove the callback.
flags - the flags
See Also:
QTCallBack
 o removeMouseOverHotSpotProc
 public void removeMouseOverHotSpotProc()
You can use the QTVRSetMouseOverHotSpotProc function to remove a mouse over hot spot procedure.

QuickTime::QTVRSetMouseOverHotSpotProc

 o installInterceptProc
 public void installInterceptProc(int selector,
                                  QTVRInterceptor interceptProc,
                                  int flags) throws QTVRException
You can use the QTVRInstallInterceptProc function to install or remove an intercept procedure for a QuickTime VR Manager function

QuickTime::QTVRInstallInterceptProc

Parameters:
selector - only the non-mouse selectors are supported
interceptProc - the interceptor or null to remove a previously specified callback for the specified selector.
flags - the flags
See Also:
QTCallBack
 o removeInterceptProc
 public void removeInterceptProc(int selector) throws QTVRException
You can use the QTVRInstallInterceptProc function to install or remove an intercept procedure for a QuickTime VR Manager function

QuickTime::QTVRInstallInterceptProc

Parameters:
selector - only the non-mouse selectors are supported
interceptProc - the interceptor or null to remove a previously specified callback for the specified selector.
flags - the flags
See Also:
QTCallBack
 o callInterceptedProc
 public void callInterceptedProc(QTVRInterceptRecord qtvrMsg) throws QTVRException
This method is used by the QTVRInterceptor execute method to call the QTVR default proc for the selector that was intercepted.

QuickTime::QTVRCallInterceptedProc

Parameters:
qtvrMessage - the message as passed to the execute function
See Also:
QTCallBack
 o showDefaultView
 public void showDefaultView() throws QTVRException
The showDefaultView method sets the default values of the pan angle, tilt angle, field of view, view center (for object nodes), default state, mouse-down state, and all applicable animation and control settings for the node specified by the QTVRInstance you call this on.

QuickTime::QTVRShowDefaultView

 o setViewCenter
 public void setViewCenter(QDPoint viewCenter) throws QTVRException
The setViewCenter method sets the view center of the QuickTime VR movie specified by the qtvr parameter to the fixed point specified by the viewCenter parameter.

QuickTime::QTVRSetViewCenter

Parameters:
viewCenter - A QDPoint structure that contains the desired view center of the specified movie.
 o getViewCenter
 public QDPoint getViewCenter() throws QTVRException
The getViewCenter method returns, in the QDPoint class, the x and y coordinates of the current view center of the QuickTime VR movie specified by the QTVRInstance you call this on.

QuickTime::QTVRGetViewCenter

Returns:
the veiw center
 o getHotSpotType
 public int getHotSpotType(int hotSpotID) throws QTVRException
This method gets the type of a hot spot whose ID you specify. In combination with the kQTVRGetHotSpotTypeSelector intercept selector, this allows an application to change a hot spot's type dynamically.

QuickTime::QTVRGetHotSpotType

Parameters:
hotSpotID - a hot spot ID
Returns:
the OSType of the hot spot specified by the hot spot ID.
 o setPrescreenImagingCompleteProc
 public void setPrescreenImagingCompleteProc(QTVRImagingComplete imageCompleteProc,
                                             int flags) throws QTVRException
This method installs a callback that is invoked every time a QTVRInstance is drawn. The application can use this callback to draw onto the QDGraphics that is supplied to the callback.

QuickTime::QTVRSetPrescreenImagingCompleteProc

Parameters:
imagingComplete - the callback object
flags - effect the conditions under which QTVR will invoke the callback
See Also:
QTCallBack
 o removePrescreenImagingCompleteProc
 public void removePrescreenImagingCompleteProc()
You can use the QTVRSetPrescreenImagingCompleteProc function to remove a prescreen imaging complete proc.

QuickTime::QTVRSetPrescreenImagingCompleteProc

See Also:
QTCallBack

All Packages  Class Hierarchy  This Package  Previous  Next  Index