PFView Class Reference
| Inherits from | UIView |
| Declared in | PFView.h |
Tasks
-
– setInterfaceOrientation:Set the current user interface orientation in order to let the view track touch events properly
-
– displayAsset:Set the asset to be rendered upon this view. An asset can only be viewed on one PFView object at a time.
-
– injectImage:Injects a panoramic image into the view to be displayed. Resolution and format depend on the specific device.
-
– runStart rendering the view
-
– haltStop rendering the view
-
– clearClear the current video frame (if any) being displayed
-
– setNavigationMode:Set view orientation input to motion or touch input.
-
– setBlindSpotImage:Set the optional image for the blindspot. Pass nil or PF_BLINDSPOT_NONE for no blindspot.
-
– setBlindSpotLocation:Set the location for the blindspot image.
-
– setFieldOfView:Set the field of view in degrees
-
– getRotationXReturns the current relative rotation around the X-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
-
– getRotationYReturns the current relative rotation around the Y-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
-
– getRotationZReturns the current relative rotation around the Z-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
-
– setRotationX:Set the current relative view rotation around the X-axis.
-
– setRotationY:Set the current relative view rotation around the Y-axis
-
– setRotationZ:Set the current relative view rotation around the Z-axis
Instance Methods
clear
Clear the current video frame (if any) being displayed
- (void)clearDiscussion
Clear the current video frame (if any) being displayed
Declared In
PFView.hdisplayAsset:
Set the asset to be rendered upon this view. An asset can only be viewed on one PFView object at a time.
- (void)displayAsset:(PFAsset *)assetParameters
- asset
The PFAsset to be rendered.
Discussion
Set the asset to be rendered upon this view. An asset can only be viewed on one PFView object at a time.
Declared In
PFView.hgetRotationX
Returns the current relative rotation around the X-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
- (float)getRotationXReturn Value
The rotation in degrees
Discussion
Returns the current relative rotation around the X-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
Declared In
PFView.hgetRotationY
Returns the current relative rotation around the Y-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
- (float)getRotationYReturn Value
The rotation in degrees
Discussion
Returns the current relative rotation around the Y-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
Declared In
PFView.hgetRotationZ
Returns the current relative rotation around the Z-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
- (float)getRotationZReturn Value
The rotation in degrees
Discussion
Returns the current relative rotation around the Z-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
Declared In
PFView.hinjectImage:
Injects a panoramic image into the view to be displayed. Resolution and format depend on the specific device.
- (void)injectImage:(UIImage *)imageParameters
- image
The UIImage to be injected.
Discussion
Injects a panoramic image into the view to be displayed. Resolution and format depend on the specific device.
Declared In
PFView.hsetBlindSpotImage:
Set the optional image for the blindspot. Pass nil or PF_BLINDSPOT_NONE for no blindspot.
- (void)setBlindSpotImage:(NSString *)resourceImageNameParameters
- resourceImageName
The name of the PNG image file as included in the project resources
Discussion
Set the optional image for the blindspot. Pass nil or PF_BLINDSPOT_NONE for no blindspot.
Declared In
PFView.hsetBlindSpotLocation:
Set the location for the blindspot image.
- (void)setBlindSpotLocation:(enum PFBLINDSPOTLOCATION)locationParameters
- location
The location of the blindspot image.
Discussion
Set the location for the blindspot image.
Declared In
PFView.hsetFieldOfView:
Set the field of view in degrees
- (void)setFieldOfView:(float)fovParameters
- fov
Set the field of view for the 3D view. This defaults to 75.0
Discussion
Set the field of view in degrees
Declared In
PFView.hsetInterfaceOrientation:
Set the current user interface orientation in order to let the view track touch events properly
- (void)setInterfaceOrientation:(UIInterfaceOrientation)orientationParameters
- orientation
The current or desired UIInterfaceOrientation
Discussion
Set the current user interface orientation in order to let the view track touch events properly
Declared In
PFView.hsetNavigationMode:
Set view orientation input to motion or touch input.
- (void)setNavigationMode:(enum PFNAVIGATIONMODE)modeParameters
- mode
Set the navigation mode to either PF_NAVIGATION_MOTION or PF_NAVIGATION_TOUCH.
Discussion
Set view orientation input to motion or touch input.
Declared In
PFView.hsetRotationX:
Set the current relative view rotation around the X-axis.
- (void)setRotationX:(float)rxParameters
- rx
The rotation around the x-axis in degrees
Discussion
Set the current relative view rotation around the X-axis.
Declared In
PFView.h