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.
-
– run
Start rendering the view
-
– halt
Stop rendering the view
-
– clear
Clear 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
-
– getRotationX
Returns the current relative rotation around the X-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
-
– getRotationY
Returns the current relative rotation around the Y-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
-
– getRotationZ
Returns 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)clear
Discussion
Clear the current video frame (if any) being displayed
Declared In
PFView.h
displayAsset:
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 *)asset
Parameters
- 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.h
getRotationX
Returns the current relative rotation around the X-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
- (float)getRotationX
Return 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.h
getRotationY
Returns the current relative rotation around the Y-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
- (float)getRotationY
Return 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.h
getRotationZ
Returns the current relative rotation around the Z-axis. This currently does not include PF_NAVIGATION_MOTION based navigation.
- (float)getRotationZ
Return 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.h
injectImage:
Injects a panoramic image into the view to be displayed. Resolution and format depend on the specific device.
- (void)injectImage:(UIImage *)image
Parameters
- 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.h
setBlindSpotImage:
Set the optional image for the blindspot. Pass nil or PF_BLINDSPOT_NONE for no blindspot.
- (void)setBlindSpotImage:(NSString *)resourceImageName
Parameters
- 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.h
setBlindSpotLocation:
Set the location for the blindspot image.
- (void)setBlindSpotLocation:(enum PFBLINDSPOTLOCATION)location
Parameters
- location
The location of the blindspot image.
Discussion
Set the location for the blindspot image.
Declared In
PFView.h
setFieldOfView:
Set the field of view in degrees
- (void)setFieldOfView:(float)fov
Parameters
- 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.h
setInterfaceOrientation:
Set the current user interface orientation in order to let the view track touch events properly
- (void)setInterfaceOrientation:(UIInterfaceOrientation)orientation
Parameters
- 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.h
setNavigationMode:
Set view orientation input to motion or touch input.
- (void)setNavigationMode:(enum PFNAVIGATIONMODE)mode
Parameters
- 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.h
setRotationX:
Set the current relative view rotation around the X-axis.
- (void)setRotationX:(float)rx
Parameters
- rx
The rotation around the x-axis in degrees
Discussion
Set the current relative view rotation around the X-axis.
Declared In
PFView.h