KudanAR - iOS  1.6.0
ARPanoNode Class Reference

#import <ARPanoNode.h>

Inherits ARNode.

Instance Methods

(instancetype) - initWithImages:
 
- Instance Methods inherited from ARNode
(void) - addChild:
 
(void) - addChildren:
 
(void) - removeChild:
 
(void) - removeAllChildren
 
(void) - remove
 
(ARNode *) - findChildWithName:
 
(void) - markWorldTransformAsDirty
 
(void) - translateByX:y:z:
 
(void) - translateByX:y:z:transformSpace:
 
(void) - translateByVector:
 
(void) - translateByVector:transformSpace:
 
(void) - scaleByUniform:
 
(void) - scaleByX:y:z:
 
(void) - scaleByVector:
 
(void) - rotateByDegrees:axisX:y:z:
 
(void) - rotateByRadians:axisX:y:z:
 
(void) - rotateByQuaternion:
 
(ARVector3 *) - positionToWorld:
 
(ARVector3 *) - positionToEye:
 
(ARQuaternion *) - orientationToWorld:
 
(ARQuaternion *) - orientationToEye:
 
(CGPoint) - viewPortFromNodePosition:
 
(void) - render
 
(void) - preRender
 
(void) - postRender
 
(void) - addTouchTarget:withAction:
 
(void) - didReceiveTouch
 
(ARVector3 *) - nodeFromViewPort:
 

Additional Inherited Members

- Class Methods inherited from ARNode
(instancetype) + nodeWithName:
 
- Protected Types inherited from ARNode
enum  TransformSpace { ARNodeTransformSpaceLocal, ARNodeTransformSpaceParent, ARNodeTransformSpaceWorld }
 
- Properties inherited from ARNode
NSString * name
 
ARNodeparent
 
NSArray< ARNode * > * children
 
NSArray * descendants
 
ARVector3position
 
ARVector3scale
 
ARQuaternionorientation
 
ARMatrix4localTransform
 
ARMatrix4worldTransform
 
ARMatrix4fullTransform
 
ARQuaternionfullOrientation
 
ARQuaternionworldOrientation
 
ARVector3worldScale
 
ARVector3worldPosition
 
ARVector3fullPosition
 
ARNodeworld
 
NSUInteger childCount
 
BOOL visible
 

Detailed Description

This node represents a cube panorama that can be added to the gyro controller. By moving the device around, it is possible to look around a 360 image. The node is created by using a taking a set of images and arranging them in a cube formation.

Method Documentation

◆ initWithImages:

- (instancetype) initWithImages: (NSArray *)  images

Initialises an instance of the ARPanoNode and sets up a cube of images around the node. The set of image names used must be arranged in the correct order, or they will be out of place. The positions of the images cannot be altered once they have been loaded. The array of images names should be arranged as follows: Element 0 - Front. Element 1 - Back. Element 2 - Left. Element 3 - Right. Element 4 - Top. Element 5 - Bottom.

Parameters
imagesNSArray of 6 image names or paths to the image.
Returns
ARPanoNode

The documentation for this class was generated from the following files: