KudanAR - Android  1.6.0
ARVideoNode Class Reference

Inherits ARMeshNode.

Public Member Functions

ARVideoTexture getVideoTexture ()
 
void setVideoTexture (ARVideoTexture videoTexture)
 
 ARVideoNode (ARVideoTexture videoTexture)
 
 ARVideoNode ()
 
void initWithPackagedFile (String asset)
 
void initFromPath (String path)
 
- Public Member Functions inherited from ARMeshNode
 ARMeshNode ()
 
Vector3f getCaptureColour ()
 
ARMesh getMesh ()
 
void setMesh (ARMesh mesh)
 
ARMaterial getMaterial ()
 
void setMaterial (ARMaterial material)
 
void render ()
 
Vector3f getLightDirection ()
 
void setLightDirection (Vector3f mLightVector)
 
- Public Member Functions inherited from ARNode
 ARNode ()
 
 ARNode (String name)
 
void remove ()
 
void removeAllChildren ()
 
void addChild (ARNode child)
 
ARNode getParent ()
 
void setParent (ARNode parent)
 
List< ARNodegetChildren ()
 
ARNode getWorld ()
 
Vector3f getPosition ()
 
void setPosition (Vector3f position)
 
void setPosition (float x, float y, float z)
 
void translateBy (float x, float y, float z)
 
void scaleBy (float x, float y, float z)
 
Vector3f getScale ()
 
void setScale (Vector3f scale)
 
void setScale (float x, float y, float z)
 
void scaleByUniform (float scale)
 
Quaternion getOrientation ()
 
void setOrientation (Quaternion orientation)
 
void setOrientation (float x, float y, float z, float w)
 
void rotateByQuaternion (Quaternion quaternion)
 
void rotateByDegrees (float angle, float x, float y, float z)
 
Matrix4f getFullTransform ()
 
Vector3f getFullScale ()
 
Quaternion getFullOrientation ()
 
Matrix4f getLocalTransform ()
 
Matrix4f getWorldTransform ()
 
boolean getVisible ()
 
void setVisible (boolean visible)
 
Quaternion getWorldOrientation ()
 
Vector3f getWorldScale ()
 
Vector3f getWorldPosition ()
 
Vector3f getFullPosition ()
 
String getName ()
 
void setName (String name)
 
void preRender ()
 
void postRender ()
 
ARNode findChildByName (String name)
 
void addChildren (List< ARNode > children)
 
void translateByVector (Vector3f translation)
 
void scaleByVector (Vector3f scale)
 
void rotateByRadians (float angle, float x, float y, float z)
 

Additional Inherited Members

- Protected Member Functions inherited from ARMeshNode
void glDraw ()
 

Detailed Description

An ARVideoNode is a subclass of AMeshNode that is used to render video content.

Constructor & Destructor Documentation

◆ ARVideoNode() [1/2]

ARVideoNode.ARVideoNode ( ARVideoTexture  videoTexture)

Initialise an ARVideoNode using a video texture. This is useful for when your video and audio are in separate files.

Example of use:

ARVideoNode videoNode = new ARVideoNode(videoTexture);
Parameters
videoTextureThe video texture to initialise with.

◆ ARVideoNode() [2/2]

ARVideoNode.ARVideoNode ( )

Initialises an empty ARVideoNode to be assigned values later.

Member Function Documentation

◆ getVideoTexture()

ARVideoTexture ARVideoNode.getVideoTexture ( )

Returns the video texture associated with the node.

Returns
The ARVideoTexture associated with the node.

◆ initFromPath()

void ARVideoNode.initFromPath ( String  path)

Initialise an ARVideoNode using a video file loaded from a full file path.

Example of use:

ARVideoNode videoNode = new ARVideoNode();
videoNode.initFromPath("/mnt/sdcard/videos/example.mp4");
Parameters
pathThe full file path to the video file, including all folders and extension.
Returns
An initialised ARVideoNode.

◆ initWithPackagedFile()

void ARVideoNode.initWithPackagedFile ( String  asset)

Initialise an ARVideoNode using a video file in the app package.

Exmaple of use:

ARVideoNode videoNode = new ARVideoNode();
videoNode.initWithPackagedFile("example.mp4");
Parameters
assetThe name of the asset to load into this node.
Returns
An initialised ARVideoNode.

◆ setVideoTexture()

void ARVideoNode.setVideoTexture ( ARVideoTexture  videoTexture)

Sets the video texture of this video node.

Parameters
videoTextureThe ARVideoTexture to assign to this node.

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