Package com.xith3d.scenegraph

Examples of com.xith3d.scenegraph.Transform3D


  }
 

  protected void createPeer(Object owner){
     
    transform=new Transform3D();
    tempTransform=new Transform3D();

    internalMakePeer(owner);
   
    peerWindow=canvasPeer.getWindow();
    if (peerWindow!=null) {
View Full Code Here


      protected Transform3D transform;
      protected Transform3D tempTransform;

        public ViewTransformator() {
            super();
          transform = new Transform3D();
          tempTransform = new Transform3D();
        updateZoomMatrix();
        updateTranslateMatrix();
        applyTransform();
        }
View Full Code Here

        break;
    }

    // Composed transform
    if ((transformRoot==this) && (transformChildren.size()!=0)){
      Transform3D composedTrans = new Transform3D();
     
      for(int i=transformChildren.size()-1; i>=0; i--){
        ((TransformData)transformChildren.get(i)).updateTransform();
        composedTrans.mul (((TransformDataXith3d)transformChildren.get(i)).getTransform());
      }
      composedTrans.mul(trans);
      group.setTransform(composedTrans);

     
      // Single transform
    }else{
View Full Code Here

   /* (non-Javadoc)
   * @see jsynoptic3d.data.TransformData#init(int)
   */
  protected void init(int preferredKind, boolean fromNode){
    if(fromNode){
      Transform3D t = group.getTransform();
      if(t!=null){
        trans.set(t);
      }
      else{
        trans.setIdentity();
View Full Code Here

    }
  }

  public Object clone() throws CloneNotSupportedException{
    TransformDataXith3d res=(TransformDataXith3d)super.clone();
    res.trans=new Transform3D();
    res.v3=new Vector3f();
    res.m3=new Matrix3f();
    res.m4=new Matrix4f();
    res.q=new Quat4f();   
    return res;
View Full Code Here

TOP

Related Classes of com.xith3d.scenegraph.Transform3D

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.