Class tQuery.Object3D

include THREE.Object3D

Class Summary
Constructor Attributes Constructor Name and Description
 
tQuery.Object3D(object, rootnode)
Handle object3D

Method Summary

Class Detail

tQuery.Object3D(object, rootnode)
Handle object3D
Parameters:
object
{THREE.Object3D} rootnode
Returns:
{tQuery.*} the tQuery object created

Method Detail

  • {tQuery.Object3D} add(target)
    add all matched elements to a world
    Parameters:
    {tQuery.Object3D} target
    object to which add it
    Returns:
    {tQuery.Object3D} chained API
  • {tQuery.Object3D} addClass(className)
    add a class to all matched elements
    Parameters:
    {string} className
    the name of the class to add
    Returns:
    {tQuery.Object3D} chained API
  • {tQuery.Object3D} addTo(target)
    add all matched elements to a world
    Parameters:
    {tQuery.World or tQuery.Object3D} target
    object to which add it
    Returns:
    {tQuery.Object3D} chained API
  • clone()
    Clone a Object3D
  • {tQuery.Object3D} detach()
    remove an element from the parent to which it is attached
    Returns:
    {tQuery.Object3D} chained API
  • {tQuery.Geometry} geometry(value)
    get geometry. TODO this should be move in tQuery.Mesh
    Parameters:
    value
    Returns:
    {tQuery.Geometry} return the geometries from the tQuery.Object3D
  • {tQuery.Object3D} hasClass(className)
    return true if any of the matched elements has this class
    Parameters:
    {string} className
    the name of the class
    Returns:
    {tQuery.Object3D} true if any of the matched elements has this class, false overwise
  • id(value)
    Getter/Setter for the id of the matched elements
    Parameters:
    value
  • {tQuery.Material} material()
    get material. TODO this should be move in tQuery.Mesh
    Returns:
    {tQuery.Material} return the materials from the tQuery.Object3D
  • {tQuery.Object3D} remove(object3d)
    remove all matched elements from a world
    Parameters:
    {tQuery.Object3D} object3d
    the object to add in this object
    Returns:
    {tQuery.Object3D} chained API
  • {tQuery.Object3D} removeClass(className)
    remove a class to all matched elements
    Parameters:
    {string} className
    the name of the class to remove
    Returns:
    {tQuery.Object3D} chained API
  • {tQuery.Object3D} removeFrom(target)
    remove all matched elements from a world
    Parameters:
    {tQuery.World or tQuery.Object3D} target
    object to which add it
    Returns:
    {tQuery.Object3D} chained API
  • {tQuery.Object3D} traverseHierarchy(callback)
    Traverse the hierarchy of Object3D.
    Parameters:
    callback
    Returns:
    {tQuery.Object3D} return the tQuery.Object3D itself