KudanAR - iOS  1.6.0
ARAlphaVideoNode Class Reference

#import <ARAlphaVideoNode.h>

Inherits ARMeshNode.

Instance Methods

(instancetype) - initWithVideoTexture:
 
(instancetype) - initWithBundledFile:
 
- 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:
 

Properties

ARVideoTexturevideoTexture
 
- Properties inherited from ARMeshNode
ARMeshmesh
 
ARMaterialmaterial
 
BOOL cull
 
- 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
 

Additional Inherited Members

- Class Methods inherited from ARMeshNode
(instancetype) + testMeshNodeWithRed:green:blue:
 
(instancetype) + testMeshNodeWithTexture:
 
(instancetype) + meshNodeWithTexture:width:height:
 
(instancetype) + meshNodeWithRed:green:blue:width:height:
 
- Class Methods inherited from ARNode
(instancetype) + nodeWithName:
 
- Protected Types inherited from ARNode
enum  TransformSpace { ARNodeTransformSpaceLocal, ARNodeTransformSpaceParent, ARNodeTransformSpaceWorld }
 

Detailed Description

An ARAlphaVideoNode is a subclass of ARMeshNode that renders a supplied alpha video file on a flat mesh in the scene. It can be initialised using either a video file bundled in your app or with an ARVideoTexture containing an Alpha Video.

Method Documentation

◆ initWithBundledFile:

- (instancetype) initWithBundledFile: (NSString *)  file

Initialises an ARAlphaVideoNode using a video file at the specified path.

Example of use:

ARAlphaVideoNode *alphaVideoNode = [[ARAlphaVideoNode alloc] initWithBundledFile:“example.mp4”];
Parameters
fileThe file in the app bundle to initialise with. The file path is relative to the app bundle and includes the file extension.

◆ initWithVideoTexture:

- (instancetype) initWithVideoTexture: (ARVideoTexture *)  NS_DESIGNATED_INITIALIZER

Initialises an ARAlphaVideoNode using an ARVideoTexture.

Example of use:

ARVideoTexture *videoTexture = [[ARVideoTexture alloc] initWithVideoFile:@"video.mp4" audioFile:"audio.aac"];
ARAlphaVideoNode *alphaVideoNode = [[ARAlphaVideoNode alloc] initWithVideoTexture: videoTexture];
Parameters
videoTextureThe ARVideoTexture to initialise the object with.

Property Documentation

◆ videoTexture

- (ARVideoTexture*) videoTexture
readwritenonatomicassign

The ARVideoTexture used by this Alpha Video Node. This is the video that will be played when then node becomes active and visible.


The documentation for this class was generated from the following files:
ARAlphaVideoNode
Definition: ARAlphaVideoNode.h:11
ARAlphaVideoNode::videoTexture
ARVideoTexture * videoTexture
Definition: ARAlphaVideoNode.h:15
ARVideoTexture
Definition: ARVideoTexture.h:9