All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.vr.QTVRInterceptRecord
java.lang.Object
|
+----quicktime.QTObject
|
+----quicktime.util.QTPointerRef
|
+----quicktime.vr.QTVRInterceptRecord
- public class QTVRInterceptRecord
- extends QTPointerRef
- implements PrimitivesLib
The QTVRInterceptRecord is passed to the QTVRInterceptor's exeucte method by QuickTime.
The application can look at the about to occur change in the VR movie through the
parameters of this record and can in turn call the VR interceptor method itself with
any particular changes it wants to make, passing the QTVRInterceptor record to
this method.
-
getAngle()
- Returns the pan or tilt angle, depending on the selector.
-
getFieldOfView()
- Returns the field of view for the kQTVRSetFieldOfViewSelector.
-
getHotSpotID()
- Gets the hot spot ID.
-
getHotSpotType()
- Gets the hot spot type.
-
getParamCount()
- This returns the number of parameters in a particular instance.
-
getSelector()
- This returns the selector which will in turn describe the parameters
that this record will contain.
-
getViewCenter()
- Returns the field of view for the kQTVRSetViewCenterSelector.
-
setAngle(float)
- Sets the pan or tilt angle, depending on the selector.
-
setFieldOfView(float)
- Sets the field of view for the kQTVRSetFieldOfViewSelector.
-
setHotSpotID(int)
- Sets the hot spot ID.
-
setHotSpotType(int)
- Sets the hot spot type.
-
setViewCenter(QDPoint)
- Sets the field of view for the kQTVRSetViewCenterSelector.
-
toString()
- Returns a String representation of this object.
getSelector
public final int getSelector()
- This returns the selector which will in turn describe the parameters
that this record will contain. This is a read only field.
- Returns:
- an int
getParamCount
public final int getParamCount()
- This returns the number of parameters in a particular instance.
The number of parameters are dependent on the given selector.
This is a read only field.
- Returns:
- an int
getAngle
public float getAngle() throws QTException
- Returns the pan or tilt angle, depending on the selector.
If the selector is not kQTVRSetPanAngleSelector or kQTVRSetTiltAngleSelector
a paramError QTException is thrown.
- Returns:
- the angle in Radians.
setAngle
public void setAngle(float angle) throws QTException
- Sets the pan or tilt angle, depending on the selector.
If the selector is not kQTVRSetPanAngleSelector or kQTVRSetTiltAngleSelector
a paramError QTException is thrown.
- Parameters:
- angle - the angle in Radians.
getFieldOfView
public float getFieldOfView() throws QTException
- Returns the field of view for the kQTVRSetFieldOfViewSelector.
If the selector is not kQTVRSetFieldOfViewSelector
a paramError QTException is thrown.
- Returns:
- the field of view
setFieldOfView
public void setFieldOfView(float fieldOfView) throws QTException
- Sets the field of view for the kQTVRSetFieldOfViewSelector.
If the selector is not kQTVRSetFieldOfViewSelector
a paramError QTException is thrown.
- Parameters:
- fieldOfView - the field of view
getViewCenter
public QDPoint getViewCenter() throws QTException
- Returns the field of view for the kQTVRSetViewCenterSelector.
If the selector is not kQTVRSetViewCenterSelector
a paramError QTException is thrown.
- Returns:
- the current view center
setViewCenter
public void setViewCenter(QDPoint viewCenter) throws QTException
- Sets the field of view for the kQTVRSetViewCenterSelector.
If the selector is not kQTVRSetViewCenterSelector
a paramError QTException is thrown.
- Parameters:
- viewCenter - the new view center
getHotSpotID
public int getHotSpotID() throws QTException
- Gets the hot spot ID.
If the selector is not kQTVRTriggerHotSpotSelector or kQTVRGetHotSpotTypeSelector
a paramError QTException is thrown.
- Returns:
- the hot spot ID
setHotSpotID
public void setHotSpotID(int hotSpotID) throws QTException
- Sets the hot spot ID.
If the selector is not kQTVRTriggerHotSpotSelector or kQTVRGetHotSpotTypeSelector
a paramError QTException is thrown.
- Parameters:
- hotSpotID - the new hot spot ID
getHotSpotType
public int getHotSpotType() throws QTException
- Gets the hot spot type.
If the selector is not kQTVRGetHotSpotTypeSelector
a paramError QTException is thrown.
- Returns:
- the hot spot type
setHotSpotType
public void setHotSpotType(int hotSpotType) throws QTException
- Sets the hot spot type.
If the selector is not kQTVRGetHotSpotTypeSelector
a paramError QTException is thrown.
- Parameters:
- hotSpotType - the new hot spot type
toString
public String toString()
- Returns a String representation of this object.
- Returns:
- a String
- Overrides:
- toString in class QTPointerRef
All Packages Class Hierarchy This Package Previous Next Index