Codota Logo
Object3D.addChild
Code IndexAdd Codota to your IDE (free)

How to use
addChild
method
in
org.rajawali3d.Object3D

Best Java code snippets using org.rajawali3d.Object3D.addChild (Showing top 18 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: Rajawali/Rajawali

  public void addChild(DebugObject3D child) {
    super.addChild(child);
    child.setRenderer(mRenderer);
  }
}
origin: Rajawali/Rajawali

/**
 * Add child and set parent reference.
 * WHY DOES OBJECT3D NOT DO THIS?
 * @param parent
 * @param object
 */
private static void addChildSetParent(Object3D parent, Object3D object) {
  try {
    parent.addChild(object);
    mParent.set(object, parent);
  } catch(Exception e) {
    RajLog.e("Reflection error Object3D.mParent");
  }
}
origin: Rajawali/Rajawali

/**
 * Get the parsed object or objects. This is returns each model independent of a scene
 * regardless of if a scene exists or not.
 *
 * @return
 */
@Override
public Object3D getParsedObject() {
  // If only one object
  if (!mAlwaysUseContainer && baseObjects.size() == 1)
    return baseObjects.get(0);
  mRootObject.isContainer(true);
  for (int i = 0, j = baseObjects.size(); i < j; i++)
    mRootObject.addChild(baseObjects.get(i));
  return mRootObject;
}
origin: Rajawali/Rajawali

targetObj.setMaterial(material);
targetObj.setColor(0xff000000 + (int) (Math.random() * 0xffffff));
mRootObject.addChild(targetObj);
origin: Rajawali/Rajawali

o.setRotZ(-o.getRotZ());
mRootObject.addChild(o);
origin: Rajawali/Rajawali

@Override
public Object3D getBaseObject3D() {
  if(finalObject != null)
    return finalObject;
  if(mBaseObjects[0] instanceof SkeletalAnimationChildObject3D)
  {
    SkeletalAnimationObject3D container = new SkeletalAnimationObject3D();
    for(int i = 0; i < mBaseObjects.length; i++)
    {
      SkeletalAnimationChildObject3D child =
        (SkeletalAnimationChildObject3D)mBaseObjects[i];
      child.setSkeleton(container);
      container.addChild(child);
    }
    finalObject = container;
  }
  else if (mBaseObjects.length == 1)
    finalObject = mBaseObjects[0];
  else
  {
    final Object3D container = new Object3D(mLookupName);
    container.isContainer(true);
    for (int i = 0; i < mBaseObjects.length; i++)
      container.addChild(mBaseObjects[i]);
    finalObject = container;
  }
  return finalObject;
}
origin: Rajawali/Rajawali

public Object3D clone(boolean copyMaterial, boolean cloneChildren) {
  final Object3D clone = new Object3D();
  cloneTo(clone, copyMaterial);
  clone.setOrientation(mOrientation);
  clone.setScale(getScale());
  if (cloneChildren) {
    int childCount = this.getNumChildren();
    for (int i = 0; i < childCount; i++) {
      clone.addChild(this.getChildAt(i).clone(copyMaterial, cloneChildren));
    }
  }
  return clone;
}
origin: Rajawali/Rajawali

  mat.addTexture(new Texture("md5tex" + i, identifier));
mRootObject.addChild(o);
origin: Rajawali/Rajawali

ret.addChild(new Line3D(currentLayer.getPoints(), 1f, Color.argb(255, 0x55, 0x11, 0xEF)));
currentLayer = new GCodeLayer();
origin: pondurii/vrVideo

  public void addChild(DebugObject3D child) {
    super.addChild(child);
    child.setRenderer(mRenderer);
  }
}
origin: pondurii/vrVideo

/**
 * Add child and set parent reference.
 * WHY DOES OBJECT3D NOT DO THIS?
 * @param parent
 * @param object
 */
private static void addChildSetParent(Object3D parent, Object3D object) {
  try {
    parent.addChild(object);
    mParent.set(object, parent);
  } catch(Exception e) {
    RajLog.e("Reflection error Object3D.mParent");
  }
}
origin: pondurii/vrVideo

/**
 * Get the parsed object or objects. This is returns each model independent of a scene
 * regardless of if a scene exists or not.
 *
 * @param alwaysUseContainer When false, a single model will be returned as a BaseObject3D. When
 *                           true, or when more than one model exists, the models will be
 *                           returned as children of a container.
 * @return
 */
@Override
public Object3D getParsedObject() {
  // If only one object
  if (!mAlwaysUseContainer && baseObjects.size() == 1)
    return baseObjects.get(0);
  mRootObject.isContainer(true);
  for (int i = 0, j = baseObjects.size(); i < j; i++)
    mRootObject.addChild(baseObjects.get(i));
  return mRootObject;
}
origin: pondurii/vrVideo

targetObj.setMaterial(material);
targetObj.setColor(0xff000000 + (int) (Math.random() * 0xffffff));
mRootObject.addChild(targetObj);
origin: pondurii/vrVideo

o.setRotZ(-o.getRotZ());
mRootObject.addChild(o);
origin: pondurii/vrVideo

@Override
public Object3D getBaseObject3D() {
  if(finalObject != null)
    return finalObject;
  if(mBaseObjects[0] instanceof SkeletalAnimationChildObject3D)
  {
    SkeletalAnimationObject3D container = new SkeletalAnimationObject3D();
    for(int i = 0; i < mBaseObjects.length; i++)
    {
      SkeletalAnimationChildObject3D child =
        (SkeletalAnimationChildObject3D)mBaseObjects[i];
      child.setSkeleton(container);
      container.addChild(child);
    }
    finalObject = container;
  }
  else if (mBaseObjects.length == 1)
    finalObject = mBaseObjects[0];
  else
  {
    final Object3D container = new Object3D(mLookupName);
    container.isContainer(true);
    for (int i = 0; i < mBaseObjects.length; i++)
      container.addChild(mBaseObjects[i]);
    finalObject = container;
  }
  return finalObject;
}
origin: pondurii/vrVideo

public Object3D clone(boolean copyMaterial, boolean cloneChildren) {
  final Object3D clone = new Object3D();
  cloneTo(clone, copyMaterial);
  clone.setOrientation(mOrientation);
  clone.setScale(getScale());
  if (cloneChildren) {
    int childCount = this.getNumChildren();
    for (int i = 0; i < childCount; i++) {
      clone.addChild(this.getChildAt(i).clone(copyMaterial, cloneChildren));
    }
  }
  return clone;
}
origin: pondurii/vrVideo

  mat.addTexture(new Texture("md5tex" + i, identifier));
mRootObject.addChild(o);
origin: pondurii/vrVideo

ret.addChild(new Line3D(currentLayer.getPoints(), 1f, Color.argb(255, 0x55, 0x11, 0xEF)));
currentLayer = new GCodeLayer();
org.rajawali3dObject3DaddChild

Popular methods of Object3D

  • getPosition
  • <init>
  • calculateModelMatrix
  • clone
  • cloneTo
  • destroy
  • getChildAt
  • getGeometry
  • getMaterial
  • getModelMatrix
  • getName
  • getNumChildren
  • getName,
  • getNumChildren,
  • getNumObjects,
  • getNumTriangles,
  • getOrientation,
  • getParent,
  • getRotZ,
  • getScale,
  • getWorldPosition

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getSystemService (Context)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now