KudanAR - Android  1.6.0
ARImageNode Class Reference

Inherits ARMeshNode.

Inherited by eu.kudan.kudan.ARWatermark.

Public Member Functions

 ARImageNode (String assetName)
 
ARImageNode initWithPath (String filePath)
 
 ARImageNode (ARTexture2D texture)
 
void setTexture (ARTexture2D texture)
 
ARTexture2D getTexture ()
 
- 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

A single mesh node used for rendering images. This displays imported images in the AR world.

Constructor & Destructor Documentation

◆ ARImageNode() [1/2]

ARImageNode.ARImageNode ( String  assetName)

Initialise an ARImageNode with an image file in the app bundle.

Example of use:

ARImageNode imageNode = new ARImageNode("example.jpg");
Parameters
assetNameThe filename + extension in the app bundle to initialise with.

◆ ARImageNode() [2/2]

ARImageNode.ARImageNode ( ARTexture2D  texture)

Initialise an ARImageNode with an ARTexture2D.

Parameters
textureThe ARTexture2D to initialise with.

Member Function Documentation

◆ getTexture()

ARTexture2D ARImageNode.getTexture ( )

Returns the ARTexture2D used to render the image node.

Example of use:

ARTexture2D texture = imageNode.getTexture();
Returns
The ARImageNode's texture.

◆ initWithPath()

ARImageNode ARImageNode.initWithPath ( String  filePath)

Initialise an ARImageNode with a full file path to an image file.

Example of use:

ARImageNode imageNode = new ARImageNode();
imageNode = imageNode.initWithPath("/mnt/sdcard/images/example.jpg");
Parameters
filePathThe full file path, including all folders and file extension.

◆ setTexture()

void ARImageNode.setTexture ( ARTexture2D  texture)

Set an ARImageNodes texture.

Parameters
texture

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