![]() |
KudanAR - Android
|
Inheritance diagram for ARNode:Public Member Functions | |
| ARNode () | |
| ARNode (String name) | |
| void | remove () |
| void | removeAllChildren () |
| void | addChild (ARNode child) |
| ARNode | getParent () |
| void | setParent (ARNode parent) |
| List< ARNode > | getChildren () |
| 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 () |
| Matrix4f | getLocalTransform () |
| Matrix4f | getWorldTransform () |
| void | render () |
| 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) |
An ARNode represents the base object of the scene-graph. It is responsible for the spatial layout of content, and is the node type from which all other nodes derive.
|
inline |
|
inline |
Add a node as a child of this node. Any transformations applied to a node are inherited by its children.
| child | The node to be added. |
|
inline |
Adds a list of nodes as children of this node.
| children | The list of nodes to be added as children. |
|
inline |
Find a child of this node with the given name. If there are multiple child nodes with the same name, any nodes after the first cannot be found, as this method will always return the first match. In order to be able to find all nodes, they must all have unique names.
| name | The name of the node to search for. |
|
inline |
Returns a list containing all direct child nodes of this node. This only returns nodes added to this node as children. Any nodes added to those nodes will not be listed here.
|
inline |
Gets the full position of the node in eye space.
|
inline |
Gets the full transformation of this node in eye space.
|
inline |
Gets the nodes transformation from its parent node.
|
inline |
Gets the name of this node.
|
inline |
Returns the nodes local orientation as a quaternion;
|
inline |
Returns this node's parent node. If its parent is a root node, this returns null.
|
inline |
Returns the position of this node relative to its parent in a vector.
|
inline |
Gets the scale of this node, relative to its parent.
|
inline |
Gets whether or not this node and all of its child nodes should be drawn. If false, this node and its children will not render, even if the child's visibility is set to true.
|
inline |
Returns the world node this node descends from.
|
inline |
Gets the orientation of this node in the space of the nearest AR world this node descends from.
|
inline |
Gets the position of this node in the space of the nearest ARWorld this node descends from.
|
inline |
Gets the scale of this node in the space of the nearest ARWorld this node descends from.
|
inline |
Gets the nodes transformation from the nodes nearest world.
|
inline |
ARRendererListener interface method. Called after each frame is drawn.
|
inline |
ARRendererListener interface method. Called before each frame is drawn.
|
inline |
Remove this node from its parent node.
|
inline |
Remove all children from this node.
|
inline |
Draws ARNode.
|
inline |
Rotate this node by the given number of degrees around the noted axes.
Example of use:
node.rotateByDegrees(90, 1, 0, 1);
| angle | The angle, in degrees, to rotate by. |
| x | Whether or not to rotate about this node's X axis. 0 for no, 1 for yes. |
| y | Whether or not to rotate about this node's X axis. 0 for no, 1 for yes. |
| z | Whether or not to rotate about this node's X axis. 0 for no, 1 for yes. |
|
inline |
Rotate this node by multiplying its orientation by a quaternion.
| quaternion | The quaternion to rotate this node with. |
|
inline |
Rotates ARNode using a 4 floats representing a quaternion.
| angle | Angle of rotation in radians. |
| x | Rotation around the x axis. |
| y | Rotation around the y axis. |
| z | Rotation around the z axis. |
|
inline |
Scale this node separately along each axis. Scale can be non-uniform.
| x | The amount to scale in the X-axis. |
| y | The amount to scale in the Y-axis. |
| z | The amount to scale in the Z-axis. |
|
inline |
Scale this node uniformly across each axis. This does not set the scale, but rather adds to the existing scale by the given amount. For example, if you scale a node by 2, then by 4, its overall scale will be 8 times bigger. Scaling occurs in the node's local space.
Example of use:
node.scaleByUniform(2);
| scale | The factor to scale by. |
|
inline |
Scales ARNode using a Vector3f.
| scale | as a Vector3f |
|
inline |
Sets the name of this node. The name should be unique so that the tracker can find it when using findChildByName.
| name | The name to assign to this node. |
|
inline |
Sets node's orientation relative to its parent using a quaternion.
| orientation |
|
inline |
Sets the node's orientation relative to its parent using 4 floats. This directly sets the quaternion representation of the node's orientation. This method is not recommended unless you have a thorough understanding of quaternions.
| x | The X component of the orientation. |
| y | The Y component of the orientation. |
| z | The Z component of the orientation. |
| w | The W component of the orientation. |
|
inline |
Sets this node's parent node.
| parent | The node to assign as this node's parent. |
|
inline |
Sets the node's position relative to its parent using a vector.
| position | The position to give this node. |
|
inline |
Set nodes position relative to their parent using three floats.
| x | The X component of the position. |
| y | The Y component of the position. |
| z | The Z component of the position. |
|
inline |
Sets the scale of the node, relative to its parent, using the given vector.
| scale | The scale to give this node, represented as a vector. |
|
inline |
Sets the scale of a node using the provided floats.
| x | The scale to give this node in its local X-axis. |
| y | The scale to give this node in its local Y-axis. |
| z | The scale to give this node in its local Z-axis. |
|
inline |
Translates the position of this node in its own local space by the given number of units in each axis. This simply adds the given 3 values to each corresponding component of the node's position. It does not set the position of the node directly.
| x | The number of units to translate along the X-axis. |
| y | The number of units to translate along the Y-axis. |
| z | The number of units to translate along the Z-axis. |
|
inline |
Translates ARNode using a Vector3f.
| translation |